Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
feat: update responsible layout (#1306)
boojack483c1d578200
diff --git a/web/package.json b/web/package.jsonindex 57cf00382..f6adfb678 100644--- a/web/package.json+++ b/web/package.json@@ -26,6 +26,7 @@"react-i18next": "^11.18.6","react-redux": "^8.0.1","react-router-dom": "^6.8.2",+ "react-use": "^17.4.0","semver": "^7.3.8","tailwindcss": "^3.2.4"},diff --git a/web/src/components/Header.tsx b/web/src/components/Header.tsxindex 57fd477ad..bcdc03a97 100644--- a/web/src/components/Header.tsx+++ b/web/src/components/Header.tsx@@ -1,8 +1,8 @@-import { isUndefined } from "lodash-es";import { useEffect } from "react";import { Link } from "react-router-dom";import { useTranslation } from "react-i18next";-import { useLocationStore, useUserStore } from "../store/module";+import { useLayoutStore, useLocationStore, useUserStore } from "../store/module";+import { resolution } from "../utils/layout";import Icon from "./Icon";import showDailyReviewDialog from "./DailyReviewDialog";import showResourcesDialog from "./ResourcesDialog";@@ -10,24 +10,45 @@ import showSettingDialog from "./SettingDialog";import showAskAIDialog from "./AskAIDialog";import showArchivedMemoDialog from "./ArchivedMemoDialog";import UserBanner from "./UserBanner";-import "../less/header.less";const Header = () => {const { t } = useTranslation();const userStore = useUserStore();const locationStore = useLocationStore();- const query = locationStore.state.query;+ const layoutStore = useLayoutStore();+ const showHeader = layoutStore.state.showHeader;useEffect(() => {- toggleHeader(false);- }, [query]);+ const handleWindowResize = () => {+ if (window.innerWidth < resolution.sm) {+ layoutStore.setHeaderStatus(false);+ } else {+ layoutStore.setHeaderStatus(true);+ }+ };+ window.addEventListener("resize", handleWindowResize);+ handleWindowResize();+ }, []);return (- <>- <div className="mask" onClick={() => toggleHeader(false)}></div>- <header className="header-wrapper">+ <div+ className={`fixed sm:sticky top-0 left-0 w-full sm:w-56 h-full flex-shrink-0 pointer-events-none sm:pointer-events-auto z-10 ${+ showHeader && "pointer-events-auto"+ }`}+ >+ <div+ className={`fixed top-0 left-0 w-full h-full bg-black opacity-0 pointer-events-none transition-opacity duration-300 sm:!hidden ${+ showHeader && "opacity-60 pointer-events-auto"+ }`}+ onClick={() => layoutStore.setHeaderStatus(false)}+ ></div>+ <header+ className={`relative w-56 sm:w-full h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 z-30 bg-white dark:bg-zinc-800 sm:bg-transparent sm:shadow-none transition-all duration-300 -translate-x-full sm:translate-x-0 ${+ showHeader && "translate-x-0 shadow-2xl"+ }`}+ ><UserBanner />- <div className="w-full px-2 my-2 mt-4 flex flex-col justify-start items-start shrink-0 space-y-2">+ <div className="w-full px-2 py-2 flex flex-col justify-start items-start shrink-0 space-y-2"><Linkto="/"className="px-4 pr-5 py-2 rounded-lg flex flex-row items-center text-lg dark:text-gray-200 hover:bg-white hover:shadow dark:hover:bg-zinc-700"@@ -77,25 +98,8 @@ const Header = () => {)}</div></header>- </>+ </div>);};-export const toggleHeader = (show?: boolean) => {- const headerEl = document.body.querySelector(".header-wrapper") as HTMLDivElement;- const maskEl = headerEl.previousSibling as HTMLDivElement;-- if (isUndefined(show)) {- show = !headerEl.classList.contains("show");- }-- if (show) {- headerEl.classList.add("show");- maskEl.classList.add("show");- } else {- headerEl.classList.remove("show");- maskEl.classList.remove("show");- }-};-export default Header;diff --git a/web/src/components/HomeSidebar.tsx b/web/src/components/HomeSidebar.tsxindex 1b655edb0..202979860 100644--- a/web/src/components/HomeSidebar.tsx+++ b/web/src/components/HomeSidebar.tsx@@ -1,15 +1,44 @@-import { isUndefined } from "lodash-es";+import { useEffect } from "react";+import { resolution } from "../utils/layout";+import { useLayoutStore } from "../store/module";import ShortcutList from "./ShortcutList";import TagList from "./TagList";import SearchBar from "./SearchBar";import UsageHeatMap from "./UsageHeatMap";-import "../less/home-sidebar.less";const HomeSidebar = () => {+ const layoutStore = useLayoutStore();+ const showHomeSidebar = layoutStore.state.showHomeSidebar;++ useEffect(() => {+ const handleWindowResize = () => {+ if (window.innerWidth < resolution.sm) {+ layoutStore.setHomeSidebarStatus(false);+ } else {+ layoutStore.setHomeSidebarStatus(true);+ }+ };+ window.addEventListener("resize", handleWindowResize);+ handleWindowResize();+ }, []);+return (- <>- <div className="mask" onClick={() => toggleHomeSidebar(false)}></div>- <aside className="home-sidebar-wrapper">+ <div+ className={`fixed sm:sticky top-0 left-0 w-full sm:w-56 h-full flex-shrink-0 pointer-events-none sm:pointer-events-auto z-10 ${+ showHomeSidebar && "pointer-events-auto"+ }`}+ >+ <div+ className={`fixed top-0 left-0 w-full h-full bg-black opacity-0 pointer-events-none transition-opacity duration-300 sm:!hidden ${+ showHomeSidebar && "opacity-60 pointer-events-auto"+ }`}+ onClick={() => layoutStore.setHomeSidebarStatus(false)}+ ></div>+ <aside+ className={`absolute sm:relative top-0 right-0 w-56 pr-2 sm:w-full h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 z-30 bg-white dark:bg-zinc-800 sm:bg-transparent sm:shadow-none transition-all duration-300 translate-x-full sm:translate-x-0 ${+ showHomeSidebar && "!translate-x-0 shadow-2xl"+ }`}+ ><div className="pl-6 pr-4 mb-4 w-full"><SearchBar /></div>@@ -17,29 +46,8 @@ const HomeSidebar = () => {<ShortcutList /><TagList /></aside>- </>+ </div>);};-export const toggleHomeSidebar = (show?: boolean) => {- const sidebarEl = document.body.querySelector(".home-sidebar-wrapper") as HTMLDivElement;- const maskEl = sidebarEl.previousSibling as HTMLDivElement;-- if (isUndefined(show)) {- show = !sidebarEl.classList.contains("show");- }-- if (show) {- sidebarEl.classList.add("show");- maskEl.classList.add("show");-- // auto focus search bar when sidebar is shown- const inputEl = sidebarEl.querySelector("#mobile-search-bar") as HTMLInputElement;- inputEl?.focus();- } else {- sidebarEl.classList.remove("show");- maskEl.classList.remove("show");- }-};-export default HomeSidebar;diff --git a/web/src/components/MobileHeader.tsx b/web/src/components/MobileHeader.tsxindex d1936ebb1..5dd071a1a 100644--- a/web/src/components/MobileHeader.tsx+++ b/web/src/components/MobileHeader.tsx@@ -1,8 +1,6 @@import { useCallback, useEffect, useState } from "react";-import { useLocationStore, useMemoStore, useShortcutStore } from "../store/module";+import { useLayoutStore, useLocationStore, useMemoStore, useShortcutStore } from "../store/module";import Icon from "./Icon";-import { toggleHeader } from "./Header";-import { toggleHomeSidebar } from "./HomeSidebar";let prevRequestTimestamp = Date.now();@@ -10,6 +8,7 @@ const MobileHeader = () => {const locationStore = useLocationStore();const memoStore = useMemoStore();const shortcutStore = useShortcutStore();+ const layoutStore = useLayoutStore();const query = locationStore.state.query;const shortcuts = shortcutStore.state.shortcuts;const [titleText, setTitleText] = useState("MEMOS");@@ -37,11 +36,11 @@ const MobileHeader = () => {}, []);return (- <div className="sticky top-0 pt-4 pb-1 mb-1 backdrop-blur-sm flex sm:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-10">+ <div className="sticky top-0 pt-4 pb-1 mb-1 backdrop-blur-sm flex sm:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-1"><div className="flex flex-row justify-start items-center mr-2 shrink-0 overflow-hidden"><divclassName="flex sm:hidden flex-row justify-center items-center w-6 h-6 mr-1 shrink-0 bg-transparent"- onClick={() => toggleHeader(true)}+ onClick={() => layoutStore.setHeaderStatus(true)}><Icon.Menu className="w-5 h-auto dark:text-gray-200" /></div>@@ -53,7 +52,7 @@ const MobileHeader = () => {</span></div><div className="flex flex-row justify-end items-center pr-1">- <Icon.Search className="w-5 h-auto dark:text-gray-200" onClick={() => toggleHomeSidebar(true)} />+ <Icon.Search className="w-5 h-auto dark:text-gray-200" onClick={() => layoutStore.setHomeSidebarStatus(true)} /></div></div>);diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsxindex d8be5e05b..456d9d70e 100644--- a/web/src/components/SearchBar.tsx+++ b/web/src/components/SearchBar.tsx@@ -1,11 +1,13 @@import { useEffect, useState, useRef } from "react";import useDebounce from "../hooks/useDebounce";-import { useLocationStore, useDialogStore } from "../store/module";+import { useLocationStore, useDialogStore, useLayoutStore } from "../store/module";+import { resolution } from "../utils/layout";import Icon from "./Icon";const SearchBar = () => {const locationStore = useLocationStore();const dialogStore = useDialogStore();+ const layoutStore = useLayoutStore();const [queryText, setQueryText] = useState("");const inputRef = useRef<HTMLInputElement>(null);@@ -35,6 +37,14 @@ const SearchBar = () => {setQueryText(text === undefined ? "" : text);}, [locationStore.state.query.text]);+ useEffect(() => {+ if (layoutStore.state.showHomeSidebar) {+ if (window.innerWidth < resolution.sm) {+ inputRef.current?.focus();+ }+ }+ }, [layoutStore.state.showHomeSidebar]);+useDebounce(() => {locationStore.setTextQuery(queryText.length === 0 ? undefined : queryText);@@ -54,7 +64,6 @@ const SearchBar = () => {<inputclassName="flex ml-2 w-24 grow text-sm outline-none bg-transparent dark:text-gray-200"type="text"- id="mobile-search-bar"placeholder="Search memos"ref={inputRef}value={queryText}diff --git a/web/src/components/UserBanner.tsx b/web/src/components/UserBanner.tsxindex 01f010652..a40638ffb 100644--- a/web/src/components/UserBanner.tsx+++ b/web/src/components/UserBanner.tsx@@ -38,11 +38,11 @@ const UserBanner = () => {};return (- <div className="flex flex-row justify-between items-center relative w-full h-auto px-3 flex-nowrap shrink-0">+ <div className="flex flex-row justify-between items-center relative w-full h-auto px-2 flex-nowrap shrink-0"><DropdownclassName="w-full"trigger={- <div className="px-2 py-1 max-w-full flex flex-row justify-start items-center cursor-pointer rounded hover:shadow hover:bg-white dark:hover:bg-zinc-700">+ <div className="px-3 py-2 max-w-full flex flex-row justify-start items-center cursor-pointer rounded-lg hover:shadow hover:bg-white dark:hover:bg-zinc-700"><UserAvatar avatarUrl={user?.avatarUrl} /><span className="px-1 text-lg font-medium text-slate-800 dark:text-gray-200 shrink truncate">{username}</span>{!isVisitorMode && user?.role === "HOST" ? (diff --git a/web/src/layouts/Root.tsx b/web/src/layouts/Root.tsxindex daf9c994e..8f0a957f6 100644--- a/web/src/layouts/Root.tsx+++ b/web/src/layouts/Root.tsx@@ -1,20 +1,20 @@import { Outlet } from "react-router-dom";-import Header from "../components/Header";import UpdateVersionBanner from "../components/UpdateVersionBanner";+import Header from "../components/Header";function Root() {return (- <section className="w-full h-full overflow-y-auto bg-zinc-100 dark:bg-zinc-800">- <div className="w-full flex flex-col justify-start items-center">+ <div className="w-full min-h-full bg-zinc-100 dark:bg-zinc-800">+ <div className="w-full h-auto flex flex-col justify-start items-center"><UpdateVersionBanner /></div>- <div className="grid grid-cols-1 sm:grid-cols-[14rem_1fr] relative w-full max-w-6xl h-full mx-auto">+ <div className="w-full max-w-6xl mx-auto flex flex-row justify-center items-start"><Header />- <main className="relative w-full h-auto flex flex-col justify-start items-start">+ <main className="w-auto flex-grow flex flex-col justify-start items-start"><Outlet /></main></div>- </section>+ </div>);}diff --git a/web/src/less/header.less b/web/src/less/header.lessdeleted file mode 100644index 2aed91647..000000000--- a/web/src/less/header.less+++ /dev/null@@ -1,15 +0,0 @@-.header-wrapper {- @apply fixed sm:sticky top-0 z-30 sm:z-0 -translate-x-64 sm:translate-x-0 sm:flex flex-col justify-start items-start w-56 h-full py-4 pl-2 bg-white dark:bg-zinc-800 sm:bg-transparent overflow-x-hidden overflow-y-auto transition-transform duration-300 overscroll-contain hide-scrollbar;-- &.show {- @apply translate-x-0 shadow-2xl sm:shadow-none;- }-}--.mask {- @apply fixed top-0 left-0 w-full h-full bg-black opacity-0 transition-opacity duration-300 pointer-events-none z-20 sm:hidden;-- &.show {- @apply opacity-60 pointer-events-auto;- }-}diff --git a/web/src/less/home-sidebar.less b/web/src/less/home-sidebar.lessdeleted file mode 100644index 4cf97bc78..000000000--- a/web/src/less/home-sidebar.less+++ /dev/null@@ -1,15 +0,0 @@-.home-sidebar-wrapper {- @apply flex-shrink-0 fixed sm:sticky top-0 z-30 sm:z-0 translate-x-56 sm:translate-x-0 hidden md:flex flex-col justify-start items-start w-56 py-4 pr-2 md:mr-2 h-full bg-white dark:bg-zinc-800 sm:bg-transparent overflow-x-hidden overflow-y-auto transition-transform duration-300 overscroll-contain hide-scrollbar;-- &.show {- @apply flex translate-x-0 right-0 shadow-2xl sm:shadow-none;- }-}--.mask {- @apply fixed top-0 left-0 w-full h-full bg-black opacity-0 transition-opacity duration-300 pointer-events-none z-20 sm:hidden;-- &.show {- @apply opacity-60 pointer-events-auto;- }-}diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsxindex 2b0935745..21a6a37c5 100644--- a/web/src/pages/Home.tsx+++ b/web/src/pages/Home.tsx@@ -33,7 +33,7 @@ function Home() {}, [user?.setting.locale]);return (- <div className="relative w-full min-h-full flex flex-row justify-start items-start">+ <div className="w-full flex flex-row justify-start items-start"><div className="flex-grow w-auto max-w-2xl px-4 sm:px-2 sm:pt-4"><MobileHeader /><div className="w-full h-auto flex flex-col justify-start items-start bg-zinc-100 dark:bg-zinc-800 rounded-lg">diff --git a/web/src/store/index.ts b/web/src/store/index.tsindex f19af158a..57974f58f 100644--- a/web/src/store/index.ts+++ b/web/src/store/index.ts@@ -9,6 +9,7 @@ import locationReducer from "./reducer/location";import resourceReducer from "./reducer/resource";import dialogReducer from "./reducer/dialog";import tagReducer from "./reducer/tag";+import layoutReducer from "./reducer/layout";const store = configureStore({reducer: {@@ -21,6 +22,7 @@ const store = configureStore({location: locationReducer,resource: resourceReducer,dialog: dialogReducer,+ layout: layoutReducer,},});diff --git a/web/src/store/module/index.ts b/web/src/store/module/index.tsindex 803eb374d..90c0b2f77 100644--- a/web/src/store/module/index.ts+++ b/web/src/store/module/index.ts@@ -7,3 +7,4 @@ export * from "./resource";export * from "./shortcut";export * from "./user";export * from "./dialog";+export * from "./layout";diff --git a/web/src/store/module/layout.ts b/web/src/store/module/layout.tsnew file mode 100644index 000000000..7158a7b16--- /dev/null+++ b/web/src/store/module/layout.ts@@ -0,0 +1,18 @@+import store, { useAppSelector } from "..";+import { setHeaderStatus, setHomeSidebarStatus } from "../reducer/layout";++export const useLayoutStore = () => {+ const state = useAppSelector((state) => state.layout);+ return {+ state,+ getState: () => {+ return store.getState().tag;+ },+ setHeaderStatus: (showHeader: boolean) => {+ store.dispatch(setHeaderStatus(showHeader));+ },+ setHomeSidebarStatus: (showHomeSidebar: boolean) => {+ store.dispatch(setHomeSidebarStatus(showHomeSidebar));+ },+ };+};diff --git a/web/src/store/reducer/layout.ts b/web/src/store/reducer/layout.tsnew file mode 100644index 000000000..7d7e7951e--- /dev/null+++ b/web/src/store/reducer/layout.ts@@ -0,0 +1,32 @@+import { createSlice, PayloadAction } from "@reduxjs/toolkit";++interface State {+ showHeader: boolean;+ showHomeSidebar: boolean;+}++const layoutSlice = createSlice({+ name: "layout",+ initialState: {+ showHeader: false,+ showHomeSidebar: false,+ } as State,+ reducers: {+ setHeaderStatus: (state, action: PayloadAction<boolean>) => {+ return {+ ...state,+ showHeader: action.payload,+ };+ },+ setHomeSidebarStatus: (state, action: PayloadAction<boolean>) => {+ return {+ ...state,+ showHomeSidebar: action.payload,+ };+ },+ },+});++export const { setHeaderStatus, setHomeSidebarStatus } = layoutSlice.actions;++export default layoutSlice.reducer;diff --git a/web/src/utils/layout.ts b/web/src/utils/layout.tsnew file mode 100644index 000000000..d1d7544d0--- /dev/null+++ b/web/src/utils/layout.ts@@ -0,0 +1,7 @@+// resolution is used to define the breakpoints for the media queries.+// It's same as the breakpoints defined in tailwind.config.js+export const resolution = {+ sm: 640,+ md: 768,+ lg: 1024,+};diff --git a/web/yarn.lock b/web/yarn.lockindex dfd790679..494fbf4b3 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -47,6 +47,13 @@dependencies:"@babel/helper-plugin-utils" "^7.18.6"+"@babel/runtime@^7.1.2", "@babel/runtime@^7.19.4":+ version "7.21.0"+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"+ integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==+ dependencies:+ regenerator-runtime "^0.13.11"+"@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.5", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.13", "@babel/runtime@^7.9.2":version "7.20.13"resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.13.tgz#7055ab8a7cff2b8f6058bf6ae45ff84ad2aded4b"@@ -54,13 +61,6 @@dependencies:regenerator-runtime "^0.13.11"-"@babel/runtime@^7.19.4":- version "7.21.0"- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"- integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==- dependencies:- regenerator-runtime "^0.13.11"-"@babel/types@^7.18.6":version "7.20.7"resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f"@@ -561,6 +561,11 @@"@types/react" "*"hoist-non-react-statics "^3.3.0"+"@types/js-cookie@^2.2.6":+ version "2.2.7"+ resolved "https://registry.yarnpkg.com/@types/js-cookie/-/js-cookie-2.2.7.tgz#226a9e31680835a6188e887f3988e60c04d3f6a3"+ integrity sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==+"@types/json-schema@^7.0.9":version "7.0.11"resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"@@ -726,6 +731,11 @@dependencies:"@swc/core" "^1.3.22"+"@xobotyi/scrollbar-width@^1.9.5":+ version "1.9.5"+ resolved "https://registry.yarnpkg.com/@xobotyi/scrollbar-width/-/scrollbar-width-1.9.5.tgz#80224a6919272f405b87913ca13b92929bdf3c4d"+ integrity sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==+acorn-jsx@^5.3.2:version "5.3.2"resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"@@ -1031,7 +1041,7 @@ copy-anything@^2.0.1:dependencies:is-what "^3.14.1"-copy-to-clipboard@^3.3.2:+copy-to-clipboard@^3.3.1, copy-to-clipboard@^3.3.2:version "3.3.3"resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz#55ac43a1db8ae639a4bd99511c148cdd1b83a1b0"integrity sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==@@ -1058,12 +1068,27 @@ cross-spawn@^7.0.2:shebang-command "^2.0.0"which "^2.0.1"+css-in-js-utils@^3.1.0:+ version "3.1.0"+ resolved "https://registry.yarnpkg.com/css-in-js-utils/-/css-in-js-utils-3.1.0.tgz#640ae6a33646d401fc720c54fc61c42cd76ae2bb"+ integrity sha512-fJAcud6B3rRu+KHYk+Bwf+WFL2MDCJJ1XG9x137tJQ0xYxor7XziQtuGFbWNdqrvF4Tk26O3H73nfVqXt/fW1A==+ dependencies:+ hyphenate-style-name "^1.0.3"++css-tree@^1.1.2:+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d"+ integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==+ dependencies:+ mdn-data "2.0.14"+ source-map "^0.6.1"+cssesc@^3.0.0:version "3.0.0"resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==-csstype@^3.0.2, csstype@^3.1.1:+csstype@^3.0.2, csstype@^3.0.6, csstype@^3.1.1:version "3.1.1"resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==@@ -1169,6 +1194,13 @@ error-ex@^1.3.1:dependencies:is-arrayish "^0.2.1"+error-stack-parser@^2.0.6:+ version "2.1.4"+ resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286"+ integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==+ dependencies:+ stackframe "^1.3.4"+es-abstract@^1.19.0, es-abstract@^1.20.4:version "1.21.1"resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.1.tgz#e6105a099967c08377830a0c9cb589d570dd86c6"@@ -1456,6 +1488,21 @@ fast-levenshtein@^2.0.6:resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==+fast-loops@^1.1.3:+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/fast-loops/-/fast-loops-1.1.3.tgz#ce96adb86d07e7bf9b4822ab9c6fac9964981f75"+ integrity sha512-8EZzEP0eKkEEVX+drtd9mtuQ+/QrlfW/5MlwcwK5Nds6EkZ/tRzEexkzUY2mIssnAyVLT+TKHuRXmFNNXYUd6g==++fast-shallow-equal@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/fast-shallow-equal/-/fast-shallow-equal-1.0.0.tgz#d4dcaf6472440dcefa6f88b98e3251e27f25628b"+ integrity sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw==++fastest-stable-stringify@^2.0.2:+ version "2.0.2"+ resolved "https://registry.yarnpkg.com/fastest-stable-stringify/-/fastest-stable-stringify-2.0.2.tgz#3757a6774f6ec8de40c4e86ec28ea02417214c76"+ integrity sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==+fastq@^1.6.0:version "1.15.0"resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a"@@ -1710,6 +1757,11 @@ html-parse-stringify@^3.0.1:dependencies:void-elements "3.1.0"+hyphenate-style-name@^1.0.3:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz#691879af8e220aea5750e8827db4ef62a54e361d"+ integrity sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==+i18next-browser-languagedetector@^7.0.1:version "7.0.1"resolved "https://registry.yarnpkg.com/i18next-browser-languagedetector/-/i18next-browser-languagedetector-7.0.1.tgz#ead34592edc96c6c3a618a51cb57ad027c5b5d87"@@ -1772,6 +1824,14 @@ inherits@2:resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==+inline-style-prefixer@^6.0.0:+ version "6.0.4"+ resolved "https://registry.yarnpkg.com/inline-style-prefixer/-/inline-style-prefixer-6.0.4.tgz#4290ed453ab0e4441583284ad86e41ad88384f44"+ integrity sha512-FwXmZC2zbeeS7NzGjJ6pAiqRhXR0ugUShSNb6GApMl6da0/XGc4MOJsoWAywia52EEWbXNSy0pzkwz/+Y+swSg==+ dependencies:+ css-in-js-utils "^3.1.0"+ fast-loops "^1.1.3"+internal-slot@^1.0.3, internal-slot@^1.0.4:version "1.0.4"resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.4.tgz#8551e7baf74a7a6ba5f749cfb16aa60722f0d6f3"@@ -1927,6 +1987,11 @@ isexe@^2.0.0:resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==+js-cookie@^2.2.1:+ version "2.2.1"+ resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-2.2.1.tgz#69e106dc5d5806894562902aa5baec3744e9b2b8"+ integrity sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==+js-sdsl@^4.1.4:version "4.3.0"resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.3.0.tgz#aeefe32a451f7af88425b11fdb5f58c90ae1d711"@@ -2046,6 +2111,11 @@ make-dir@^2.1.0:pify "^4.0.1"semver "^5.6.0"+ version "2.0.14"+ resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"+ integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==+merge2@^1.3.0, merge2@^1.4.1:version "1.4.1"resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"@@ -2098,6 +2168,20 @@ ms@^2.1.1:resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==+nano-css@^5.3.1:+ version "5.3.5"+ resolved "https://registry.yarnpkg.com/nano-css/-/nano-css-5.3.5.tgz#3075ea29ffdeb0c7cb6d25edb21d8f7fa8e8fe8e"+ integrity sha512-vSB9X12bbNu4ALBu7nigJgRViZ6ja3OU7CeuiV1zMIbXOdmkLahgtPmh3GBOlDxbKY0CitqlPdOReGlBLSp+yg==+ dependencies:+ css-tree "^1.1.2"+ csstype "^3.0.6"+ fastest-stable-stringify "^2.0.2"+ inline-style-prefixer "^6.0.0"+ rtl-css-js "^1.14.0"+ sourcemap-codec "^1.4.8"+ stacktrace-js "^2.0.2"+ stylis "^4.0.6"+nanoid@^3.3.4:version "3.3.4"resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"@@ -2466,6 +2550,31 @@ [email protected]:dependencies:"@remix-run/router" "1.3.3"+react-universal-interface@^0.6.2:+ version "0.6.2"+ resolved "https://registry.yarnpkg.com/react-universal-interface/-/react-universal-interface-0.6.2.tgz#5e8d438a01729a4dbbcbeeceb0b86be146fe2b3b"+ integrity sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==++react-use@^17.4.0:+ version "17.4.0"+ resolved "https://registry.yarnpkg.com/react-use/-/react-use-17.4.0.tgz#cefef258b0a6c534a5c8021c2528ac6e1a4cdc6d"+ integrity sha512-TgbNTCA33Wl7xzIJegn1HndB4qTS9u03QUwyNycUnXaweZkE4Kq2SB+Yoxx8qbshkZGYBDvUXbXWRUmQDcZZ/Q==+ dependencies:+ "@types/js-cookie" "^2.2.6"+ "@xobotyi/scrollbar-width" "^1.9.5"+ copy-to-clipboard "^3.3.1"+ fast-deep-equal "^3.1.3"+ fast-shallow-equal "^1.0.0"+ js-cookie "^2.2.1"+ nano-css "^5.3.1"+ react-universal-interface "^0.6.2"+ resize-observer-polyfill "^1.5.1"+ screenfull "^5.1.0"+ set-harmonic-interval "^1.0.1"+ throttle-debounce "^3.0.1"+ ts-easing "^0.2.0"+ tslib "^2.1.0"+react@^18.2.0:version "18.2.0"resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"@@ -2523,6 +2632,11 @@ reselect@^4.1.7:resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.7.tgz#56480d9ff3d3188970ee2b76527bd94a95567a42"integrity sha512-Zu1xbUt3/OPwsXL46hvOOoQrap2azE7ZQbokq61BQfiXvhewsKDwhMeZjTX9sX0nvw1t/U5Audyn1I9P/m9z0A==+resize-observer-polyfill@^1.5.1:+ version "1.5.1"+ resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464"+ integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==+resolve-from@^4.0.0:version "4.0.0"resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"@@ -2565,6 +2679,13 @@ rollup@^3.7.0:optionalDependencies:fsevents "~2.3.2"+rtl-css-js@^1.14.0:+ version "1.16.1"+ resolved "https://registry.yarnpkg.com/rtl-css-js/-/rtl-css-js-1.16.1.tgz#4b48b4354b0ff917a30488d95100fbf7219a3e80"+ integrity sha512-lRQgou1mu19e+Ya0LsTvKrVJ5TYUbqCVPAiImX3UfLTenarvPUl1QFdvu5Z3PYmHT9RCcwIfbjRQBntExyj3Zg==+ dependencies:+ "@babel/runtime" "^7.1.2"+run-parallel@^1.1.9:version "1.2.0"resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"@@ -2598,6 +2719,11 @@ scheduler@^0.23.0:dependencies:loose-envify "^1.1.0"+screenfull@^5.1.0:+ version "5.2.0"+ resolved "https://registry.yarnpkg.com/screenfull/-/screenfull-5.2.0.tgz#6533d524d30621fc1283b9692146f3f13a93d1ba"+ integrity sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==+semver@^5.6.0:version "5.7.1"resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"@@ -2615,6 +2741,11 @@ semver@^7.3.7, semver@^7.3.8:dependencies:lru-cache "^6.0.0"+set-harmonic-interval@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/set-harmonic-interval/-/set-harmonic-interval-1.0.1.tgz#e1773705539cdfb80ce1c3d99e7f298bb3995249"+ integrity sha512-AhICkFV84tBP1aWqPwLZqFvAwqEoVA9kxNMniGEUvzOlm4vLmOFLiTT3UZ6bziJTy4bOVpzWGTfSCbmaayGx8g==+shebang-command@^2.0.0:version "2.0.0"resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"@@ -2654,16 +2785,55 @@ source-map-support@~0.5.20:buffer-from "^1.0.0"source-map "^0.6.0"+ version "0.5.6"+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"+ integrity sha512-MjZkVp0NHr5+TPihLcadqnlVoGIoWo4IBHptutGh9wI3ttUYvCG26HkSuDi+K6lsZ25syXJXcctwgyVCt//xqA==+source-map@^0.5.7:version "0.5.7"resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==-source-map@^0.6.0, source-map@~0.6.0:+source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0:version "0.6.1"resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==+sourcemap-codec@^1.4.8:+ version "1.4.8"+ resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"+ integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==++stack-generator@^2.0.5:+ version "2.0.10"+ resolved "https://registry.yarnpkg.com/stack-generator/-/stack-generator-2.0.10.tgz#8ae171e985ed62287d4f1ed55a1633b3fb53bb4d"+ integrity sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==+ dependencies:+ stackframe "^1.3.4"++stackframe@^1.3.4:+ version "1.3.4"+ resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310"+ integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==++stacktrace-gps@^3.0.4:+ version "3.1.2"+ resolved "https://registry.yarnpkg.com/stacktrace-gps/-/stacktrace-gps-3.1.2.tgz#0c40b24a9b119b20da4525c398795338966a2fb0"+ integrity sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==+ dependencies:+ source-map "0.5.6"+ stackframe "^1.3.4"++stacktrace-js@^2.0.2:+ version "2.0.2"+ resolved "https://registry.yarnpkg.com/stacktrace-js/-/stacktrace-js-2.0.2.tgz#4ca93ea9f494752d55709a081d400fdaebee897b"+ integrity sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==+ dependencies:+ error-stack-parser "^2.0.6"+ stack-generator "^2.0.5"+ stacktrace-gps "^3.0.4"+string.prototype.matchall@^4.0.8:version "4.0.8"resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3"@@ -2708,7 +2878,7 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==[email protected], stylis@^4.0.6:version "4.1.3"resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.1.3.tgz#fd2fbe79f5fed17c55269e16ed8da14c84d069f7"integrity sha512-GP6WDNWf+o403jrEp9c5jibKavrtLW+/qYGhFxFrG8maXhwTBI7gLLhiBb0o7uFccWN+EOS9aMO6cGHWAO07OA==@@ -2776,6 +2946,11 @@ text-table@^0.2.0:resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==+throttle-debounce@^3.0.1:+ version "3.0.1"+ resolved "https://registry.yarnpkg.com/throttle-debounce/-/throttle-debounce-3.0.1.tgz#32f94d84dfa894f786c9a1f290e7a645b6a19abb"+ integrity sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==+to-fast-properties@^2.0.0:version "2.0.0"resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"@@ -2793,11 +2968,21 @@ toggle-selection@^1.0.6:resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32"integrity sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==+ts-easing@^0.2.0:+ version "0.2.0"+ resolved "https://registry.yarnpkg.com/ts-easing/-/ts-easing-0.2.0.tgz#c8a8a35025105566588d87dbda05dd7fbfa5a4ec"+ integrity sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==+tslib@^1.8.1:version "1.14.1"resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==+tslib@^2.1.0:+ version "2.5.0"+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"+ integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==+tslib@^2.3.0:version "2.4.1"resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"