Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

updated dependencies (#422)

Andrii Romasiun9c3ae3d9bbb3
diff --git a/app/ui/Modal.tsx b/app/ui/Modal.tsx
index 376fda29e..1c07ad410 100644
--- a/app/ui/Modal.tsx
+++ b/app/ui/Modal.tsx
@@ -1,6 +1,6 @@
import React, { Fragment, memo } from 'react'
import cx from 'clsx'
-import { Dialog, Transition } from '@headlessui/react'
+import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react'
import {
CheckIcon,
ExclamationTriangleIcon,
@@ -48,7 +48,7 @@ const Modal = ({
submitDisabled,
overflowVisible,
}: IModal): JSX.Element => (
- <Transition.Root show={isOpened} as={Fragment}>
+ <Transition show={isOpened} as={Fragment}>
<Dialog
as='div'
className={cx('fixed inset-0 z-10 overflow-y-auto', className)}
@@ -57,7 +57,7 @@ const Modal = ({
static
>
<div className='min-h-screen flex items-end justify-center px-4 pb-20 pt-4 text-center sm:block sm:p-0'>
- <Transition.Child
+ <TransitionChild
as={Fragment}
enter='ease-out duration-300'
enterFrom='opacity-0'
@@ -66,14 +66,14 @@ const Modal = ({
leaveFrom='opacity-100'
leaveTo='opacity-0'
>
- <Dialog.Overlay className='fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity dark:bg-opacity-55' />
- </Transition.Child>
+ <div className='fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity dark:bg-opacity-55' />
+ </TransitionChild>
{/* This element is to trick the browser into centering the modal contents. */}
<span className='hidden sm:inline-block sm:h-screen sm:align-middle' aria-hidden='true'>
&#8203;
</span>
- <Transition.Child
+ <TransitionChild
as={Fragment}
enter='ease-out duration-300'
enterFrom='opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95'
@@ -82,7 +82,7 @@ const Modal = ({
leaveFrom='opacity-100 translate-y-0 sm:scale-100'
leaveTo='opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95'
>
- <div
+ <DialogPanel
className={cx(
'inline-block transform rounded-lg bg-white px-4 pb-4 pt-5 text-left align-bottom shadow-xl transition-all dark:bg-slate-900 sm:my-8 sm:px-5 sm:py-4 sm:align-middle',
{
@@ -121,7 +121,7 @@ const Modal = ({
)}
<div className='mt-3 w-full text-center sm:mt-0 sm:text-left'>
{title && (
- <Dialog.Title
+ <DialogTitle
as='h3'
className={cx('flex items-center text-lg font-medium leading-6 text-gray-900 dark:text-gray-50', {
'justify-between': !closeText,
@@ -142,7 +142,7 @@ const Modal = ({
}}
/>
)}
- </Dialog.Title>
+ </DialogTitle>
)}
<div className='mt-2 whitespace-pre-line text-sm text-gray-600 dark:text-gray-200'>{message}</div>
</div>
@@ -182,11 +182,11 @@ const Modal = ({
</button>
)}
</div>
- </div>
- </Transition.Child>
+ </DialogPanel>
+ </TransitionChild>
</div>
</Dialog>
- </Transition.Root>
+ </Transition>
)
export default memo(Modal)
diff --git a/package.json b/package.json
index f36ca6e69..868f76a06 100644
--- a/package.json
+++ b/package.json
@@ -18,46 +18,46 @@
},
"dependencies": {
"@blaumaus/react-alert": "^7.0.5",
- "@headlessui/react": "^1.7.19",
+ "@headlessui/react": "^2.0.4",
"@heroicons/react": "^2.1.3",
- "@nivo/core": "^0.85.1",
- "@nivo/sankey": "^0.85.1",
+ "@nivo/core": "^0.87.0",
+ "@nivo/sankey": "^0.87.0",
"@reduxjs/toolkit": "^1.9.7",
- "@remix-run/node": "^2.8.1",
- "@remix-run/react": "^2.8.1",
- "@remix-run/serve": "^2.8.1",
+ "@remix-run/node": "^2.9.2",
+ "@remix-run/react": "^2.9.2",
+ "@remix-run/serve": "^2.9.2",
"@remix-run/v1-route-convention": "^0.1.4",
"@swetrix/sdk": "^1.1.0",
"@tailwindcss/forms": "^0.5.7",
- "axios": "^1.6.8",
+ "axios": "^1.7.2",
"axios-auth-refresh": "^3.3.6",
"billboard.js": "^3.11.3",
- "clsx": "^2.1.0",
+ "clsx": "^2.1.1",
"d3": "^7.9.0",
"dangerously-set-html-content": "^1.1.0",
- "dayjs": "^1.11.10",
+ "dayjs": "^1.11.11",
"debug": "^4.3.4",
"file-saver": "^2.0.5",
"flatpickr": "^4.6.13",
- "i18n-iso-countries": "^7.11.0",
- "i18next": "^23.11.2",
- "i18next-browser-languagedetector": "^7.2.1",
+ "i18n-iso-countries": "^7.11.2",
+ "i18next": "^23.11.5",
+ "i18next-browser-languagedetector": "^8.0.0",
"i18next-fs-backend": "^2.3.1",
- "i18next-http-backend": "^2.5.1",
- "isbot": "^5.1.4",
+ "i18next-http-backend": "^2.5.2",
+ "isbot": "^5.1.7",
"jszip": "^3.10.1",
"lodash": "^4.17.21",
"marked": "^12.0.2",
"prettier-plugin-tailwindcss": "^0.5.14",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
"react-flagkit": "^2.0.4",
"react-flatpickr": "^3.10.13",
"react-hotkeys-hook": "^4.5.0",
- "react-i18next": "^14.1.0",
+ "react-i18next": "^14.1.2",
"react-outside-click-handler": "^1.3.0",
- "react-qr-code": "^2.0.12",
- "react-redux": "^9.1.1",
+ "react-qr-code": "^2.0.13",
+ "react-redux": "^9.1.2",
"react-type-animation": "^3.2.0",
"redux": "^5.0.1",
"redux-saga": "^1.3.0",
@@ -132,24 +132,24 @@
]
},
"devDependencies": {
- "@remix-run/dev": "^2.8.1",
- "@remix-run/eslint-config": "^2.8.1",
- "@tailwindcss/typography": "^0.5.12",
+ "@remix-run/dev": "^2.9.2",
+ "@remix-run/eslint-config": "^2.9.2",
+ "@tailwindcss/typography": "^0.5.13",
"@types/debug": "^4.1.12",
- "@types/lodash": "^4.17.0",
- "@types/node": "^20.12.7",
- "@types/react": "^18.2.79",
- "@types/react-dom": "^18.2.25",
+ "@types/lodash": "^4.17.4",
+ "@types/node": "^20.12.12",
+ "@types/react": "^18.3.3",
+ "@types/react-dom": "^18.3.0",
"@types/react-flatpickr": "^3.8.11",
"@types/redux-mock-store": "^1.0.6",
- "@typescript-eslint/parser": "^7.7.0",
- "@typescript-eslint/typescript-estree": "^7.7.0",
+ "@typescript-eslint/parser": "^7.10.0",
+ "@typescript-eslint/typescript-estree": "^7.10.0",
"autoprefixer": "^10.4.19",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-lodash": "^7.4.0",
- "eslint-plugin-react-hooks": "^4.6.0",
+ "eslint-plugin-react-hooks": "^4.6.2",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"resize-observer-polyfill": "^1.5.1",