diff --git a/package.json b/package.json index 0e5f8487ff..7fc9bff54d 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "@w3ux/hooks": "^1.2.1", "@w3ux/react-connect-kit": "^1.8.0", "@w3ux/react-odometer": "^1.1.0", - "@w3ux/react-polkicon": "2.0.1-alpha.0", - "@w3ux/utils": "1.1.1-beta.6", + "@w3ux/react-polkicon": "^2.0.1-alpha.0", + "@w3ux/utils": "1.0.1", "@w3ux/validator-assets": "^0.2.0", "@zondax/ledger-substrate": "^1.0.0", "bignumber.js": "^9.1.2", @@ -48,6 +48,7 @@ "i18next": "^23.11.5", "i18next-browser-languagedetector": "^8.0.0", "lodash.debounce": "^4.0.8", + "lodash.throttle": "^4.1.1", "qrcode-generator": "1.4.4", "rc-slider": "^11.1.6", "react": "^18.3.1", @@ -68,6 +69,7 @@ "@ledgerhq/logs": "^6.12.0", "@types/chroma-js": "^2.4.4", "@types/lodash.debounce": "^4.0.9", + "@types/lodash.throttle": "^4", "@types/react": "^18.3.3", "@types/react-dom": "^18.2.25", "@types/react-helmet": "^6.1.11", diff --git a/src/consts.ts b/src/consts.ts index 02cf3b08fd..2efe848b95 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -1,7 +1,7 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { stringToU8a } from '@w3ux/utils'; +import { stringToU8a } from '@polkadot/util'; /* * Global Constants diff --git a/src/contexts/Api/defaults.ts b/src/contexts/Api/defaults.ts index 5f02866d9d..48a7688536 100644 --- a/src/contexts/Api/defaults.ts +++ b/src/contexts/Api/defaults.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-only /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */ -import { stringToU8a } from '@w3ux/utils'; +import { stringToU8a } from '@polkadot/util'; import BigNumber from 'bignumber.js'; import type { APIActiveEra, diff --git a/src/contexts/Pools/BondedPools/index.tsx b/src/contexts/Pools/BondedPools/index.tsx index bbe703f80c..02a5029818 100644 --- a/src/contexts/Pools/BondedPools/index.tsx +++ b/src/contexts/Pools/BondedPools/index.tsx @@ -1,8 +1,8 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { u8aUnwrapBytes } from '@polkadot/util'; -import { rmCommas, setStateWithRef, shuffle, u8aToString } from '@w3ux/utils'; +import { u8aUnwrapBytes, u8aToString } from '@polkadot/util'; +import { rmCommas, setStateWithRef, shuffle } from '@w3ux/utils'; import type { ReactNode } from 'react'; import { createContext, useContext, useRef, useState } from 'react'; import type { diff --git a/src/hooks/useCreatePoolAccounts/index.tsx b/src/hooks/useCreatePoolAccounts/index.tsx index c44ac6f82f..e3bdc79da4 100644 --- a/src/hooks/useCreatePoolAccounts/index.tsx +++ b/src/hooks/useCreatePoolAccounts/index.tsx @@ -1,8 +1,7 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { bnToU8a } from '@polkadot/util'; -import { u8aConcat } from '@w3ux/utils'; +import { bnToU8a, u8aConcat } from '@polkadot/util'; import BigNumber from 'bignumber.js'; import { BN } from 'bn.js'; import { EmptyH256, ModPrefix, U32Opts } from 'consts'; diff --git a/src/hooks/useSize/index.tsx b/src/hooks/useSize/index.tsx new file mode 100644 index 0000000000..f161ee2d6a --- /dev/null +++ b/src/hooks/useSize/index.tsx @@ -0,0 +1,48 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import throttle from 'lodash.throttle'; +import type { MutableRefObject } from 'react'; +import { useEffect, useState } from 'react'; + +// Custom hook to get the width and height of a specified element. Updates the `size` state when the +// specified "outer element" (or the window by default) resizes. +export const useSize = ( + element: MutableRefObject, + outerElement?: MutableRefObject +) => { + // Helper function to retrieve the width and height of an element + // If no element is found, default dimensions are set to 0. + const getSize = (el: HTMLElement | null = null) => { + const width = el?.offsetWidth || 0; + const height = el?.offsetHeight || 0; + return { width, height }; + }; + + // State to store the current width and height of the specified element. + const [size, setSize] = useState<{ width: number; height: number }>( + getSize(element?.current) + ); + + // Throttle the resize event handler to limit how often size updates occur. + const resizeThrottle = throttle(() => { + setSize(getSize(element?.current)); + }, 100); + + // Set up the resize event listener on mount and clean it up on unmount. + useEffect(() => { + // Determine the target for the resize event listener. + // If `outerElement` is provided, listen to its resize events; otherwise, listen to the window's. + const listenFor = outerElement?.current || window; + + listenFor.addEventListener('resize', resizeThrottle); + + // Clean up event listener when the component unmounts to avoid memory leaks. + return () => { + listenFor.removeEventListener('resize', resizeThrottle); + }; + }, [outerElement]); + + // Return the current size of the element. + return size; +}; diff --git a/src/hooks/useValidatorFilters/index.tsx b/src/hooks/useValidatorFilters/index.tsx index ad3a813408..82a659bc6b 100644 --- a/src/hooks/useValidatorFilters/index.tsx +++ b/src/hooks/useValidatorFilters/index.tsx @@ -1,13 +1,12 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { u8aUnwrapBytes } from '@polkadot/util'; +import { u8aUnwrapBytes, u8aToString } from '@polkadot/util'; import { useTranslation } from 'react-i18next'; import { useValidators } from 'contexts/Validators/ValidatorEntries'; import type { AnyFunction, AnyJson } from '@w3ux/types'; import { MaxEraRewardPointsEras } from 'consts'; import type { AnyFilter } from 'library/Filter/types'; -import { u8aToString } from '@w3ux/utils'; export const useValidatorFilters = () => { const { t } = useTranslation('library'); diff --git a/src/library/Account/PoolAccount.tsx b/src/library/Account/PoolAccount.tsx index 5b277894df..3b0ab04284 100644 --- a/src/library/Account/PoolAccount.tsx +++ b/src/library/Account/PoolAccount.tsx @@ -1,8 +1,8 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { u8aUnwrapBytes } from '@polkadot/util'; -import { ellipsisFn, u8aToString } from '@w3ux/utils'; +import { u8aUnwrapBytes, u8aToString } from '@polkadot/util'; +import { ellipsisFn } from '@w3ux/utils'; import { useTranslation } from 'react-i18next'; import { useBondedPools } from 'contexts/Pools/BondedPools'; import { Polkicon } from '@w3ux/react-polkicon'; diff --git a/src/library/QRCode/DisplayPayload.tsx b/src/library/QRCode/DisplayPayload.tsx index 4526f45dff..3fcf5f5fad 100644 --- a/src/library/QRCode/DisplayPayload.tsx +++ b/src/library/QRCode/DisplayPayload.tsx @@ -5,7 +5,7 @@ import type { ReactElement } from 'react'; import { memo, useMemo } from 'react'; import { QrDisplay } from './Display.js'; import type { DisplayPayloadProps } from './types.js'; -import { u8aConcat } from '@w3ux/utils'; +import { u8aConcat } from '@polkadot/util'; import { decodeAddress } from '@polkadot/util-crypto'; const createSignPayload = ( diff --git a/src/library/QRCode/util.ts b/src/library/QRCode/util.ts index 1a0c4d7e66..101f5fadf6 100644 --- a/src/library/QRCode/util.ts +++ b/src/library/QRCode/util.ts @@ -1,7 +1,7 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { u8aConcat } from '@w3ux/utils'; +import { u8aConcat } from '@polkadot/util'; const MULTIPART = new Uint8Array([0]); diff --git a/src/library/ValidatorList/ValidatorItem/Utils.tsx b/src/library/ValidatorList/ValidatorItem/Utils.tsx index cfcb6b0e27..184e6c34eb 100644 --- a/src/library/ValidatorList/ValidatorItem/Utils.tsx +++ b/src/library/ValidatorList/ValidatorItem/Utils.tsx @@ -1,11 +1,10 @@ // Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: GPL-3.0-only -import { u8aUnwrapBytes } from '@polkadot/util'; +import { u8aUnwrapBytes, u8aToString } from '@polkadot/util'; import type BigNumber from 'bignumber.js'; import { MaxEraRewardPointsEras } from 'consts'; import type { AnyJson } from '@w3ux/types'; -import { u8aToString } from '@w3ux/utils'; export const getIdentityDisplay = ( _identity: AnyJson, diff --git a/src/modals/ManagePool/Forms/RenamePool/index.tsx b/src/modals/ManagePool/Forms/RenamePool/index.tsx index 8b83204724..0cfa9d0b13 100644 --- a/src/modals/ManagePool/Forms/RenamePool/index.tsx +++ b/src/modals/ManagePool/Forms/RenamePool/index.tsx @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-3.0-only import { faChevronLeft } from '@fortawesome/free-solid-svg-icons'; -import { u8aUnwrapBytes } from '@polkadot/util'; +import { u8aUnwrapBytes, u8aToString } from '@polkadot/util'; import type { Dispatch, FormEvent, SetStateAction } from 'react'; import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -18,7 +18,6 @@ import { useActiveAccounts } from 'contexts/ActiveAccounts'; import { ButtonSubmitInvert } from 'kits/Buttons/ButtonSubmitInvert'; import { ModalPadding } from 'kits/Overlay/structure/ModalPadding'; import { ModalWarnings } from 'kits/Overlay/structure/ModalWarnings'; -import { u8aToString } from '@w3ux/utils'; export const RenamePool = ({ setSection, diff --git a/yarn.lock b/yarn.lock index 887b494a92..22783c38e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1379,117 +1379,125 @@ __metadata: languageName: node linkType: hard -"@parcel/watcher-android-arm64@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-android-arm64@npm:2.4.1" +"@parcel/watcher-android-arm64@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-android-arm64@npm:2.5.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@parcel/watcher-darwin-arm64@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-darwin-arm64@npm:2.4.1" +"@parcel/watcher-darwin-arm64@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-darwin-arm64@npm:2.5.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@parcel/watcher-darwin-x64@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-darwin-x64@npm:2.4.1" +"@parcel/watcher-darwin-x64@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-darwin-x64@npm:2.5.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@parcel/watcher-freebsd-x64@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-freebsd-x64@npm:2.4.1" +"@parcel/watcher-freebsd-x64@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-freebsd-x64@npm:2.5.0" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@parcel/watcher-linux-arm-glibc@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-linux-arm-glibc@npm:2.4.1" +"@parcel/watcher-linux-arm-glibc@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-linux-arm-glibc@npm:2.5.0" conditions: os=linux & cpu=arm & libc=glibc languageName: node linkType: hard -"@parcel/watcher-linux-arm64-glibc@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-linux-arm64-glibc@npm:2.4.1" +"@parcel/watcher-linux-arm-musl@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-linux-arm-musl@npm:2.5.0" + conditions: os=linux & cpu=arm & libc=musl + languageName: node + linkType: hard + +"@parcel/watcher-linux-arm64-glibc@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-linux-arm64-glibc@npm:2.5.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@parcel/watcher-linux-arm64-musl@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-linux-arm64-musl@npm:2.4.1" +"@parcel/watcher-linux-arm64-musl@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-linux-arm64-musl@npm:2.5.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@parcel/watcher-linux-x64-glibc@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-linux-x64-glibc@npm:2.4.1" +"@parcel/watcher-linux-x64-glibc@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-linux-x64-glibc@npm:2.5.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@parcel/watcher-linux-x64-musl@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-linux-x64-musl@npm:2.4.1" +"@parcel/watcher-linux-x64-musl@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-linux-x64-musl@npm:2.5.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard "@parcel/watcher-wasm@npm:^2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-wasm@npm:2.4.1" + version: 2.5.0 + resolution: "@parcel/watcher-wasm@npm:2.5.0" dependencies: is-glob: "npm:^4.0.3" micromatch: "npm:^4.0.5" napi-wasm: "npm:^1.1.0" - checksum: 10c0/30a0d4e618c4867a5990025df56dff3a31a01f78b2d108b31e6ed7fabf123a13fd79ee292f547b572e439d272a6157c2ba9fb8e527456951c14283f872bdc16f + checksum: 10c0/8aad14aa21d460d7f8d407a9d8859b8372317e03bc53a154aefb9394ae51ab0fac27fdf546ec4da27307ad8219945128a19646f8e637a0200b0c6b39fbccd3d8 languageName: node linkType: hard -"@parcel/watcher-win32-arm64@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-win32-arm64@npm:2.4.1" +"@parcel/watcher-win32-arm64@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-win32-arm64@npm:2.5.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@parcel/watcher-win32-ia32@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-win32-ia32@npm:2.4.1" +"@parcel/watcher-win32-ia32@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-win32-ia32@npm:2.5.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@parcel/watcher-win32-x64@npm:2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher-win32-x64@npm:2.4.1" +"@parcel/watcher-win32-x64@npm:2.5.0": + version: 2.5.0 + resolution: "@parcel/watcher-win32-x64@npm:2.5.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard "@parcel/watcher@npm:^2.4.1": - version: 2.4.1 - resolution: "@parcel/watcher@npm:2.4.1" - dependencies: - "@parcel/watcher-android-arm64": "npm:2.4.1" - "@parcel/watcher-darwin-arm64": "npm:2.4.1" - "@parcel/watcher-darwin-x64": "npm:2.4.1" - "@parcel/watcher-freebsd-x64": "npm:2.4.1" - "@parcel/watcher-linux-arm-glibc": "npm:2.4.1" - "@parcel/watcher-linux-arm64-glibc": "npm:2.4.1" - "@parcel/watcher-linux-arm64-musl": "npm:2.4.1" - "@parcel/watcher-linux-x64-glibc": "npm:2.4.1" - "@parcel/watcher-linux-x64-musl": "npm:2.4.1" - "@parcel/watcher-win32-arm64": "npm:2.4.1" - "@parcel/watcher-win32-ia32": "npm:2.4.1" - "@parcel/watcher-win32-x64": "npm:2.4.1" + version: 2.5.0 + resolution: "@parcel/watcher@npm:2.5.0" + dependencies: + "@parcel/watcher-android-arm64": "npm:2.5.0" + "@parcel/watcher-darwin-arm64": "npm:2.5.0" + "@parcel/watcher-darwin-x64": "npm:2.5.0" + "@parcel/watcher-freebsd-x64": "npm:2.5.0" + "@parcel/watcher-linux-arm-glibc": "npm:2.5.0" + "@parcel/watcher-linux-arm-musl": "npm:2.5.0" + "@parcel/watcher-linux-arm64-glibc": "npm:2.5.0" + "@parcel/watcher-linux-arm64-musl": "npm:2.5.0" + "@parcel/watcher-linux-x64-glibc": "npm:2.5.0" + "@parcel/watcher-linux-x64-musl": "npm:2.5.0" + "@parcel/watcher-win32-arm64": "npm:2.5.0" + "@parcel/watcher-win32-ia32": "npm:2.5.0" + "@parcel/watcher-win32-x64": "npm:2.5.0" detect-libc: "npm:^1.0.3" is-glob: "npm:^4.0.3" micromatch: "npm:^4.0.5" @@ -1506,6 +1514,8 @@ __metadata: optional: true "@parcel/watcher-linux-arm-glibc": optional: true + "@parcel/watcher-linux-arm-musl": + optional: true "@parcel/watcher-linux-arm64-glibc": optional: true "@parcel/watcher-linux-arm64-musl": @@ -1520,7 +1530,7 @@ __metadata: optional: true "@parcel/watcher-win32-x64": optional: true - checksum: 10c0/33b7112094b9eb46c234d824953967435b628d3d93a0553255e9910829b84cab3da870153c3a870c31db186dc58f3b2db81382fcaee3451438aeec4d786a6211 + checksum: 10c0/9bad727d8b11e5d150ec47459254544c583adaa47d047b8ef65e1c74aede1a0767dc7fc6b8997649dae07318d6ef39caba6a1c405d306398d5bcd47074ec5d29 languageName: node linkType: hard @@ -2569,128 +2579,128 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.24.3" +"@rollup/rollup-android-arm-eabi@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.24.4" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-android-arm64@npm:4.24.3" +"@rollup/rollup-android-arm64@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-android-arm64@npm:4.24.4" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-darwin-arm64@npm:4.24.3" +"@rollup/rollup-darwin-arm64@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-darwin-arm64@npm:4.24.4" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-darwin-x64@npm:4.24.3" +"@rollup/rollup-darwin-x64@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-darwin-x64@npm:4.24.4" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-freebsd-arm64@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-freebsd-arm64@npm:4.24.3" +"@rollup/rollup-freebsd-arm64@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.24.4" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-freebsd-x64@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-freebsd-x64@npm:4.24.3" +"@rollup/rollup-freebsd-x64@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-freebsd-x64@npm:4.24.4" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.24.3" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.24.4" conditions: os=linux & cpu=arm & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm-musleabihf@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.24.3" +"@rollup/rollup-linux-arm-musleabihf@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.24.4" conditions: os=linux & cpu=arm & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.24.3" +"@rollup/rollup-linux-arm64-gnu@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.24.4" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.24.3" +"@rollup/rollup-linux-arm64-musl@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.24.4" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-powerpc64le-gnu@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.24.3" +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.24.4" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.24.3" +"@rollup/rollup-linux-riscv64-gnu@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.24.4" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-s390x-gnu@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.24.3" +"@rollup/rollup-linux-s390x-gnu@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.24.4" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.24.3" +"@rollup/rollup-linux-x64-gnu@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.24.4" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.24.3" +"@rollup/rollup-linux-x64-musl@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.24.4" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.24.3" +"@rollup/rollup-win32-arm64-msvc@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.24.4" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.24.3" +"@rollup/rollup-win32-ia32-msvc@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.24.4" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.24.3": - version: 4.24.3 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.24.3" +"@rollup/rollup-win32-x64-msvc@npm:4.24.4": + version: 4.24.4 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.24.4" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -3196,92 +3206,92 @@ __metadata: languageName: node linkType: hard -"@swc/core-darwin-arm64@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-darwin-arm64@npm:1.7.42" +"@swc/core-darwin-arm64@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-darwin-arm64@npm:1.8.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@swc/core-darwin-x64@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-darwin-x64@npm:1.7.42" +"@swc/core-darwin-x64@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-darwin-x64@npm:1.8.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@swc/core-linux-arm-gnueabihf@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-linux-arm-gnueabihf@npm:1.7.42" +"@swc/core-linux-arm-gnueabihf@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-linux-arm-gnueabihf@npm:1.8.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@swc/core-linux-arm64-gnu@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-linux-arm64-gnu@npm:1.7.42" +"@swc/core-linux-arm64-gnu@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-linux-arm64-gnu@npm:1.8.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-arm64-musl@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-linux-arm64-musl@npm:1.7.42" +"@swc/core-linux-arm64-musl@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-linux-arm64-musl@npm:1.8.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@swc/core-linux-x64-gnu@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-linux-x64-gnu@npm:1.7.42" +"@swc/core-linux-x64-gnu@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-linux-x64-gnu@npm:1.8.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-x64-musl@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-linux-x64-musl@npm:1.7.42" +"@swc/core-linux-x64-musl@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-linux-x64-musl@npm:1.8.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@swc/core-win32-arm64-msvc@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-win32-arm64-msvc@npm:1.7.42" +"@swc/core-win32-arm64-msvc@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-win32-arm64-msvc@npm:1.8.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@swc/core-win32-ia32-msvc@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-win32-ia32-msvc@npm:1.7.42" +"@swc/core-win32-ia32-msvc@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-win32-ia32-msvc@npm:1.8.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@swc/core-win32-x64-msvc@npm:1.7.42": - version: 1.7.42 - resolution: "@swc/core-win32-x64-msvc@npm:1.7.42" +"@swc/core-win32-x64-msvc@npm:1.8.0": + version: 1.8.0 + resolution: "@swc/core-win32-x64-msvc@npm:1.8.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard "@swc/core@npm:^1.7.26": - version: 1.7.42 - resolution: "@swc/core@npm:1.7.42" - dependencies: - "@swc/core-darwin-arm64": "npm:1.7.42" - "@swc/core-darwin-x64": "npm:1.7.42" - "@swc/core-linux-arm-gnueabihf": "npm:1.7.42" - "@swc/core-linux-arm64-gnu": "npm:1.7.42" - "@swc/core-linux-arm64-musl": "npm:1.7.42" - "@swc/core-linux-x64-gnu": "npm:1.7.42" - "@swc/core-linux-x64-musl": "npm:1.7.42" - "@swc/core-win32-arm64-msvc": "npm:1.7.42" - "@swc/core-win32-ia32-msvc": "npm:1.7.42" - "@swc/core-win32-x64-msvc": "npm:1.7.42" + version: 1.8.0 + resolution: "@swc/core@npm:1.8.0" + dependencies: + "@swc/core-darwin-arm64": "npm:1.8.0" + "@swc/core-darwin-x64": "npm:1.8.0" + "@swc/core-linux-arm-gnueabihf": "npm:1.8.0" + "@swc/core-linux-arm64-gnu": "npm:1.8.0" + "@swc/core-linux-arm64-musl": "npm:1.8.0" + "@swc/core-linux-x64-gnu": "npm:1.8.0" + "@swc/core-linux-x64-musl": "npm:1.8.0" + "@swc/core-win32-arm64-msvc": "npm:1.8.0" + "@swc/core-win32-ia32-msvc": "npm:1.8.0" + "@swc/core-win32-x64-msvc": "npm:1.8.0" "@swc/counter": "npm:^0.1.3" - "@swc/types": "npm:^0.1.13" + "@swc/types": "npm:^0.1.14" peerDependencies: "@swc/helpers": "*" dependenciesMeta: @@ -3308,7 +3318,7 @@ __metadata: peerDependenciesMeta: "@swc/helpers": optional: true - checksum: 10c0/bf5e242ad4098b5f02c084460fdaac486b420fb3b2ee8e96271e471c100ac6f446cc27c3840eed106130be149e20c8165df23ba5fe1a89364650c07aaa507177 + checksum: 10c0/a117e13b01327f8219d7eb5a177eed7174bb4dad2b508020cbc34391890f14935eff22f1b8be28456a1716bca001ff76e94a95cb210756e2101eb011012fc45b languageName: node linkType: hard @@ -3319,12 +3329,12 @@ __metadata: languageName: node linkType: hard -"@swc/types@npm:^0.1.13": - version: 0.1.13 - resolution: "@swc/types@npm:0.1.13" +"@swc/types@npm:^0.1.14": + version: 0.1.14 + resolution: "@swc/types@npm:0.1.14" dependencies: "@swc/counter": "npm:^0.1.3" - checksum: 10c0/f85a850dead981ca9a26ae366529f2b383fa26324ffcbbee46d7b48399e6ed36d6a6a3d55398f17f87c65f550e28d642a35877d40f389c78765a31ecdfc88bd9 + checksum: 10c0/5ab5a213f25fbb038e8b2fa001a20c64363f81c199319373ed0228f316c046a996758fbaf906ba84d297b35e37727082d27974266db320e534da594716626529 languageName: node linkType: hard @@ -3393,6 +3403,15 @@ __metadata: languageName: node linkType: hard +"@types/lodash.throttle@npm:^4": + version: 4.1.9 + resolution: "@types/lodash.throttle@npm:4.1.9" + dependencies: + "@types/lodash": "npm:*" + checksum: 10c0/93f7096dcaea8f54a4f52d5175d97a471f155f5bae4649c967cc29bcae506a456476d13b4392361799b31c3b96659560e1bbfddf00f550a50c685f6c037411a6 + languageName: node + linkType: hard + "@types/lodash@npm:*": version: 4.17.13 resolution: "@types/lodash@npm:4.17.13" @@ -3408,11 +3427,11 @@ __metadata: linkType: hard "@types/node@npm:*": - version: 22.8.6 - resolution: "@types/node@npm:22.8.6" + version: 22.8.7 + resolution: "@types/node@npm:22.8.7" dependencies: undici-types: "npm:~6.19.8" - checksum: 10c0/d3a11f2549234a91a4c5d0ff35ab4bdcb7ba34db4d3f1d189be39b8bd41c19aac98d117150a95a9c5a9d45b1014135477ea240b2b8317c86ae3d3cf1c3b3f8f4 + checksum: 10c0/14372885db80059ed6e92c320b2bcd8f7dc271698adce11f51aa0f424a3f82aa1749a4f66321b87043791b894346b2458d514cbb65ce70167c2fd8a78a124947 languageName: node linkType: hard @@ -3722,7 +3741,7 @@ __metadata: languageName: node linkType: hard -"@w3ux/react-polkicon@npm:2.0.1-alpha.0": +"@w3ux/react-polkicon@npm:^2.0.1-alpha.0": version: 2.0.1-alpha.0 resolution: "@w3ux/react-polkicon@npm:2.0.1-alpha.0" dependencies: @@ -3739,12 +3758,12 @@ __metadata: languageName: node linkType: hard -"@w3ux/utils@npm:1.1.1-beta.6": - version: 1.1.1-beta.6 - resolution: "@w3ux/utils@npm:1.1.1-beta.6" +"@w3ux/utils@npm:1.0.1": + version: 1.0.1 + resolution: "@w3ux/utils@npm:1.0.1" dependencies: "@polkadot-api/substrate-bindings": "npm:^0.9.3" - checksum: 10c0/082e4a83c29bd7afe5ea17f81789e79ad1098c1bf69d01f8f8283601b56468e8f832022cb62517e18a7765af1d82e611382858f825adc6f8576f983b6c13a0ec + checksum: 10c0/99ec531fca18b53eaaa1f3979f48049f2cdef77b7a3c2eac0626d6fbd67e287057c1feba2832022b3167ff01792ab590421d7b148cc9d42d72984c53994cf67e languageName: node linkType: hard @@ -8571,6 +8590,7 @@ __metadata: "@substrate/connect": "npm:^1.1.0" "@types/chroma-js": "npm:^2.4.4" "@types/lodash.debounce": "npm:^4.0.9" + "@types/lodash.throttle": "npm:^4" "@types/react": "npm:^18.3.3" "@types/react-dom": "npm:^18.2.25" "@types/react-helmet": "npm:^6.1.11" @@ -8583,9 +8603,9 @@ __metadata: "@w3ux/hooks": "npm:^1.2.1" "@w3ux/react-connect-kit": "npm:^1.8.0" "@w3ux/react-odometer": "npm:^1.1.0" - "@w3ux/react-polkicon": "npm:2.0.1-alpha.0" + "@w3ux/react-polkicon": "npm:^2.0.1-alpha.0" "@w3ux/types": "npm:^0.2.0" - "@w3ux/utils": "npm:1.1.1-beta.6" + "@w3ux/utils": "npm:1.0.1" "@w3ux/validator-assets": "npm:^0.2.0" "@zondax/ledger-substrate": "npm:^1.0.0" bignumber.js: "npm:^9.1.2" @@ -8610,6 +8630,7 @@ __metadata: i18next: "npm:^23.11.5" i18next-browser-languagedetector: "npm:^8.0.0" lodash.debounce: "npm:^4.0.8" + lodash.throttle: "npm:^4.1.1" prettier: "npm:^3.3.1" prettier-plugin-organize-imports: "npm:^4.0.0" qrcode-generator: "npm:1.4.4" @@ -9307,27 +9328,27 @@ __metadata: linkType: hard "rollup@npm:^4.20.0": - version: 4.24.3 - resolution: "rollup@npm:4.24.3" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.24.3" - "@rollup/rollup-android-arm64": "npm:4.24.3" - "@rollup/rollup-darwin-arm64": "npm:4.24.3" - "@rollup/rollup-darwin-x64": "npm:4.24.3" - "@rollup/rollup-freebsd-arm64": "npm:4.24.3" - "@rollup/rollup-freebsd-x64": "npm:4.24.3" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.24.3" - "@rollup/rollup-linux-arm-musleabihf": "npm:4.24.3" - "@rollup/rollup-linux-arm64-gnu": "npm:4.24.3" - "@rollup/rollup-linux-arm64-musl": "npm:4.24.3" - "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.24.3" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.24.3" - "@rollup/rollup-linux-s390x-gnu": "npm:4.24.3" - "@rollup/rollup-linux-x64-gnu": "npm:4.24.3" - "@rollup/rollup-linux-x64-musl": "npm:4.24.3" - "@rollup/rollup-win32-arm64-msvc": "npm:4.24.3" - "@rollup/rollup-win32-ia32-msvc": "npm:4.24.3" - "@rollup/rollup-win32-x64-msvc": "npm:4.24.3" + version: 4.24.4 + resolution: "rollup@npm:4.24.4" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.24.4" + "@rollup/rollup-android-arm64": "npm:4.24.4" + "@rollup/rollup-darwin-arm64": "npm:4.24.4" + "@rollup/rollup-darwin-x64": "npm:4.24.4" + "@rollup/rollup-freebsd-arm64": "npm:4.24.4" + "@rollup/rollup-freebsd-x64": "npm:4.24.4" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.24.4" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.24.4" + "@rollup/rollup-linux-arm64-gnu": "npm:4.24.4" + "@rollup/rollup-linux-arm64-musl": "npm:4.24.4" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.24.4" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.24.4" + "@rollup/rollup-linux-s390x-gnu": "npm:4.24.4" + "@rollup/rollup-linux-x64-gnu": "npm:4.24.4" + "@rollup/rollup-linux-x64-musl": "npm:4.24.4" + "@rollup/rollup-win32-arm64-msvc": "npm:4.24.4" + "@rollup/rollup-win32-ia32-msvc": "npm:4.24.4" + "@rollup/rollup-win32-x64-msvc": "npm:4.24.4" "@types/estree": "npm:1.0.6" fsevents: "npm:~2.3.2" dependenciesMeta: @@ -9371,7 +9392,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 10c0/32425475db7a0bcb8937f92488ee8e48f7adaff711b5b5c52d86d37114c9f21fe756e21a91312d12d30da146d33d8478a11dfeb6249dbecc54fbfcc78da46005 + checksum: 10c0/8e9e9ce4dc8cc48acf258a26519ed1bbbbdac99fd701e89d11c31271e01b4663fe61d839f7906a49c0983b1a49e2acc622948d7665ff0f57ecc48d872835d1ce languageName: node linkType: hard @@ -10648,8 +10669,8 @@ __metadata: linkType: hard "viem@npm:^2.1.1, viem@npm:^2.21.35": - version: 2.21.39 - resolution: "viem@npm:2.21.39" + version: 2.21.40 + resolution: "viem@npm:2.21.40" dependencies: "@adraffy/ens-normalize": "npm:1.11.0" "@noble/curves": "npm:1.6.0" @@ -10665,7 +10686,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10c0/b9d2f8eadeccd12da8171a159450ee40b9df1ea5c25a8ec17a3542ab5a133db50dcd38558aeeaec1c53a2b5bbec60c71d2e6440933855c7fd07c22fc32e399ed + checksum: 10c0/5a4afdcce60a2ca89c167458215305a23c29b4be03054f9aa13f95b40c34c1223ffcc49e741c76a47df95f31bad8c525a0a86572aa92776e5a9d6b665663a0b9 languageName: node linkType: hard