Skip to content

Commit

Permalink
fix: bump zustand + fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jan 10, 2023
1 parent 669b7a4 commit 4914880
Show file tree
Hide file tree
Showing 17 changed files with 90 additions and 90 deletions.
10 changes: 5 additions & 5 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
"@mui/icons-material": "^5.11.0",
"@mui/lab": "^5.0.0-alpha.115",
"@mui/material": "^5.11.4",
"@sentry/integrations": "^7.29.0",
"@sentry/react": "^7.29.0",
"@sentry/tracing": "^7.29.0",
"@sentry/integrations": "^7.30.0",
"@sentry/react": "^7.30.0",
"@sentry/tracing": "^7.30.0",
"@tanstack/react-query": "^4.22.0",
"@tanstack/react-virtual": "^3.0.0-beta.35",
"@tanstack/react-virtual": "^3.0.0-beta.36",
"big.js": "^6.2.1",
"i18next": "^22.4.9",
"i18next-browser-languagedetector": "^7.0.1",
Expand All @@ -75,7 +75,7 @@
"react-router-dom": "^6.6.2",
"react-timer-hook": "^3.0.5",
"uuid": "^9.0.0",
"zustand": "^4.2.0"
"zustand": "^4.3.1"
},
"devDependencies": {
"cpy-cli": "^4.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-underscore-dangle */
import create from 'zustand';
import { create } from 'zustand';
import type { HeaderActionStore } from './types';

export const useHeaderActionStore = create<HeaderActionStore>((set, get) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/hooks/useRouteExecution.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ExchangeRateUpdateParams, Route } from '@lifi/sdk';
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { useCallback, useEffect, useRef } from 'react';
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import { useLiFi, useWallet } from '../providers';
import {
getUpdatedProcess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Skeleton,
} from '@mui/material';
import { useTranslation } from 'react-i18next';
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import { Card, CardTitle } from '../../components/Card';
import { Select } from '../../components/Select';
import { useTools } from '../../hooks';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Skeleton,
} from '@mui/material';
import { useTranslation } from 'react-i18next';
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import { Card, CardTitle } from '../../components/Card';
import { Select } from '../../components/Select';
import { useTools } from '../../hooks';
Expand Down
6 changes: 3 additions & 3 deletions packages/widget/src/pages/SwapDetailsPage/SwapDetailsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
ContentCopy as ContentCopyIcon,
DeleteOutline as DeleteIcon
DeleteOutline as DeleteIcon,
} from '@mui/icons-material';
import {
Box,
Expand All @@ -10,12 +10,12 @@ import {
DialogContentText,
DialogTitle,
IconButton,
Typography
Typography,
} from '@mui/material';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useLocation } from 'react-router-dom';
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import { Card, CardTitle } from '../../components/Card';
import { Dialog } from '../../components/Dialog';
import { useHeaderActionStore } from '../../components/Header';
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/chains/useChainOrder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import { useChainOrderStore } from './useChainOrderStore';

export const useChainOrder = (): [number[], (chainId: number) => void] => {
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/chains/useChainOrderStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-underscore-dangle */
import create from 'zustand';
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
import type { ChainOrderState, ChainOrderStore } from './types';

Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/routes/useExecutingRoutesIds.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import type { RouteExecution } from './types';
import { RouteExecutionStatus } from './types';
import { useRouteExecutionStore } from './useRouteExecutionStore';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Route } from '@lifi/sdk';
import create from 'zustand';
import { create } from 'zustand';
import type { RecommendedRouteStore } from './types';

export const useRecommendedRouteStore = create<RecommendedRouteStore>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Route } from '@lifi/sdk';
import create from 'zustand';
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
import { hasEnumFlag } from '../../utils';
import type { RouteExecutionStore } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/routes/useSwapHistory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import { hasEnumFlag } from '../../utils';
import type { RouteExecution } from './types';
import { RouteExecutionStatus } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/settings/useAppearance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import type { Appearance } from '../../types';
import { useSettingsStore } from './useSettingsStore';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import create from 'zustand';
import { create } from 'zustand';
import type { SendToWalletStore } from './types';

export const useSendToWalletStore = create<SendToWalletStore>((set) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/settings/useSettings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import shallow from 'zustand/shallow';
import { shallow } from 'zustand/shallow';
import type { SettingsState } from '.';
import { useSettingsStore } from './useSettingsStore';

Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/stores/settings/useSettingsStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-underscore-dangle */
import create from 'zustand';
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
import type { WidgetConfig } from '../../types';
import type { SettingsState, SettingsStore } from './types';
Expand Down
136 changes: 68 additions & 68 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3612,11 +3612,11 @@ __metadata:
"@mui/icons-material": ^5.11.0
"@mui/lab": ^5.0.0-alpha.115
"@mui/material": ^5.11.4
"@sentry/integrations": ^7.29.0
"@sentry/react": ^7.29.0
"@sentry/tracing": ^7.29.0
"@sentry/integrations": ^7.30.0
"@sentry/react": ^7.30.0
"@sentry/tracing": ^7.30.0
"@tanstack/react-query": ^4.22.0
"@tanstack/react-virtual": ^3.0.0-beta.35
"@tanstack/react-virtual": ^3.0.0-beta.36
big.js: ^6.2.1
cpy-cli: ^4.2.0
i18next: ^22.4.9
Expand All @@ -3631,7 +3631,7 @@ __metadata:
react-timer-hook: ^3.0.5
typescript: ^4.9.4
uuid: ^9.0.0
zustand: ^4.2.0
zustand: ^4.3.1
peerDependencies:
"@types/react": ^18.0.0
react: ^18.0.0
Expand Down Expand Up @@ -4363,96 +4363,96 @@ __metadata:
languageName: node
linkType: hard

"@sentry/browser@npm:7.29.0":
version: 7.29.0
resolution: "@sentry/browser@npm:7.29.0"
"@sentry/browser@npm:7.30.0":
version: 7.30.0
resolution: "@sentry/browser@npm:7.30.0"
dependencies:
"@sentry/core": 7.29.0
"@sentry/replay": 7.29.0
"@sentry/types": 7.29.0
"@sentry/utils": 7.29.0
"@sentry/core": 7.30.0
"@sentry/replay": 7.30.0
"@sentry/types": 7.30.0
"@sentry/utils": 7.30.0
tslib: ^1.9.3
checksum: 136b9d03a9ff38e72f4d8fd335f23469341d0095d1f075a36d85ef2cd6bd0763635a7e1cbc7abe14508291e88cffe549eda6016c858564b55c1d4e81ef67882f
checksum: 7c227d944391c27fe1cae32c78e9ea99a24f0bf491297e11ccadcbd848a8ba4a280eb0ad68c9b1d493ed0dde69609916f5ad43bebdee481b3c7564af92641292
languageName: node
linkType: hard

"@sentry/core@npm:7.29.0":
version: 7.29.0
resolution: "@sentry/core@npm:7.29.0"
"@sentry/core@npm:7.30.0":
version: 7.30.0
resolution: "@sentry/core@npm:7.30.0"
dependencies:
"@sentry/types": 7.29.0
"@sentry/utils": 7.29.0
"@sentry/types": 7.30.0
"@sentry/utils": 7.30.0
tslib: ^1.9.3
checksum: d9330ed3528f2328b524cb237e400368dcb6c36b8afb791d28141e98ab5c0b56dc306a65cfc7164108cb5616346dabe793a39a140257f723906dc25a03b7ebcd
checksum: 661a068bbe1afc66668f1808667fec09320b549e8bf06c0a4263398d7bac023a533535073fe469c656ea925d625a5e3fb93dd6535f3226893854b33e7813ab8c
languageName: node
linkType: hard

"@sentry/integrations@npm:^7.29.0":
version: 7.29.0
resolution: "@sentry/integrations@npm:7.29.0"
"@sentry/integrations@npm:^7.30.0":
version: 7.30.0
resolution: "@sentry/integrations@npm:7.30.0"
dependencies:
"@sentry/types": 7.29.0
"@sentry/utils": 7.29.0
"@sentry/types": 7.30.0
"@sentry/utils": 7.30.0
localforage: ^1.8.1
tslib: ^1.9.3
checksum: fec2b9b7902b9b097b5453ae4c797e4efa18ac05a3b539c58d037085e12846f443ebe2e8d916a273ee4df71a29891265db5723b7fd4b5e8287fe5864cb9b2e43
checksum: 9fd40dfccdbf95ce7869afffac4ae8ce5b6c465d0bf52f005eb3878790dddd9db25419ae7003c09f6cea6e9a934869479178657b4c4eb3cb710c86580e44aeac
languageName: node
linkType: hard

"@sentry/react@npm:^7.29.0":
version: 7.29.0
resolution: "@sentry/react@npm:7.29.0"
"@sentry/react@npm:^7.30.0":
version: 7.30.0
resolution: "@sentry/react@npm:7.30.0"
dependencies:
"@sentry/browser": 7.29.0
"@sentry/types": 7.29.0
"@sentry/utils": 7.29.0
"@sentry/browser": 7.30.0
"@sentry/types": 7.30.0
"@sentry/utils": 7.30.0
hoist-non-react-statics: ^3.3.2
tslib: ^1.9.3
peerDependencies:
react: 15.x || 16.x || 17.x || 18.x
checksum: 022bf398f2cf43bf5e1f7340cfc02ccfc4cdc026fb3d6805e760d182bcb2601d413cf412beaa37fecbbf0dc554ce38c4a01d9bf38d1591f80cd059ee5235205d
checksum: 3f70e7068545e1f71a5a94a94d749771bc591c53ab85b0278e2ba642f5463d378ec00f62c93b040f7fd8866b9738a821b6906f26636b2585cf5020efac73fb26
languageName: node
linkType: hard

"@sentry/replay@npm:7.29.0":
version: 7.29.0
resolution: "@sentry/replay@npm:7.29.0"
"@sentry/replay@npm:7.30.0":
version: 7.30.0
resolution: "@sentry/replay@npm:7.30.0"
dependencies:
"@sentry/core": 7.29.0
"@sentry/types": 7.29.0
"@sentry/utils": 7.29.0
"@sentry/core": 7.30.0
"@sentry/types": 7.30.0
"@sentry/utils": 7.30.0
peerDependencies:
"@sentry/browser": ">=7.24.0"
checksum: 539e18c128bb7966c9d4ea91ebd9cde6d42f42f96fa648d7ead5bff699e643f3792f57a344376586fab26f659f5e1431176faf0e12e6ea53508fd48ba928dd12
checksum: da7f545ddad9e7584a155382d210e9f8bf2479651dae1c94196075be5d973ceed1d74d49745377ffd0a736c6e3654da98c36ede67c5c18f6f125c191416bb1f3
languageName: node
linkType: hard

"@sentry/tracing@npm:^7.29.0":
version: 7.29.0
resolution: "@sentry/tracing@npm:7.29.0"
"@sentry/tracing@npm:^7.30.0":
version: 7.30.0
resolution: "@sentry/tracing@npm:7.30.0"
dependencies:
"@sentry/core": 7.29.0
"@sentry/types": 7.29.0
"@sentry/utils": 7.29.0
"@sentry/core": 7.30.0
"@sentry/types": 7.30.0
"@sentry/utils": 7.30.0
tslib: ^1.9.3
checksum: 7ad9040664a8c65693aba2bdd9cecc8334ce25a296c01727d38649c7141106b78c92142626ce8e44983b4272e0f411010a3df99843a1af6d4f89e4f67ce6f57e
checksum: 475b41e3c9503bd6a00db058050388914f2c04763d7d204527c9b83cfb0af02cde413c3bb9935a300a0ff2fc9e1b100442d55ab6edd9ce535ebc2793ea16111e
languageName: node
linkType: hard

"@sentry/types@npm:7.29.0":
version: 7.29.0
resolution: "@sentry/types@npm:7.29.0"
checksum: 53815b66662a193cfd7024b9fb2477afb8178a771aa59f3bef10578cc940a9d7207722f9f04e2ca65a8e118cef012ac42f4936aa921aacdfc00a914bec88b009
"@sentry/types@npm:7.30.0":
version: 7.30.0
resolution: "@sentry/types@npm:7.30.0"
checksum: be228ae65f8750513371b6692821aa0d92d15354aa9fd7f1f1b497c2a53d20769fd56f89a1516d80e416ab73596609e805a6fae2b51510018338eedf5a0dd260
languageName: node
linkType: hard

"@sentry/utils@npm:7.29.0":
version: 7.29.0
resolution: "@sentry/utils@npm:7.29.0"
"@sentry/utils@npm:7.30.0":
version: 7.30.0
resolution: "@sentry/utils@npm:7.30.0"
dependencies:
"@sentry/types": 7.29.0
"@sentry/types": 7.30.0
tslib: ^1.9.3
checksum: 9914a2129692a5713453437d75b957a18ad5a4ef8085776e5499208ad329dea8da27ee2e2b74fdc089a3831b4e2929f8e6c0f3bc75528f41023d85de5077f462
checksum: df99b77706dc38a206ba4a27da2226c73c5a465a39591dde66455a8ca52b070830ad3fa3cbc803d4e45bd0e4e4fad74552f3d92d681a8dd4c95c4733cc9ff4cc
languageName: node
linkType: hard

Expand Down Expand Up @@ -4547,21 +4547,21 @@ __metadata:
languageName: node
linkType: hard

"@tanstack/react-virtual@npm:^3.0.0-beta.35":
version: 3.0.0-beta.35
resolution: "@tanstack/react-virtual@npm:3.0.0-beta.35"
"@tanstack/react-virtual@npm:^3.0.0-beta.36":
version: 3.0.0-beta.36
resolution: "@tanstack/react-virtual@npm:3.0.0-beta.36"
dependencies:
"@tanstack/virtual-core": 3.0.0-beta.35
"@tanstack/virtual-core": 3.0.0-beta.36
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 6328ad390f614dd3f27284e325d0c36e70b2e4f3a73f02a5e255c37a7b08311bf3a40490e459d5608784e9ac3392ace4c5f8341f22d3c343e14641392de6e040
checksum: cd581a7e03a5905aeb3ced711ea317462c3242a2236d9c1d9c61529100c09b98d3f59fbb0455df4f5bb8b4d1f57c95a23e6de123bdc5a3432c2b33bdc451448f
languageName: node
linkType: hard

"@tanstack/virtual-core@npm:3.0.0-beta.35":
version: 3.0.0-beta.35
resolution: "@tanstack/virtual-core@npm:3.0.0-beta.35"
checksum: a046891abe6f0a4bbb52ecd2846fac87e8d256d06b0f01c4913f908c6d8d96b1b90ba84be0aa1daa47bbe90280c8d28bf6ea63cbff3060c19b519f7e63e2b327
"@tanstack/virtual-core@npm:3.0.0-beta.36":
version: 3.0.0-beta.36
resolution: "@tanstack/virtual-core@npm:3.0.0-beta.36"
checksum: 4799d4dc39fd807572945232e7fb336a711fc4c823a846f50e52bc5f20b942a2753610a2d9f824a74bbdc93620756ef1bad174c720cf01c44a632e22c6619901
languageName: node
linkType: hard

Expand Down Expand Up @@ -17038,9 +17038,9 @@ __metadata:
languageName: node
linkType: hard

"zustand@npm:^4.2.0":
version: 4.2.0
resolution: "zustand@npm:4.2.0"
"zustand@npm:^4.3.1":
version: 4.3.1
resolution: "zustand@npm:4.3.1"
dependencies:
use-sync-external-store: 1.2.0
peerDependencies:
Expand All @@ -17051,6 +17051,6 @@ __metadata:
optional: true
react:
optional: true
checksum: 70f9c9272c7ee6534d16e23e1f273822fdf4cb17a9865db588946ed250a51e169f8b0dcaf0a8d15e866239182263c015bca644756a69314ea1da4fe61ba1b67f
checksum: bc35ebdfb2028e33d112ec113d77c95bdc3b693b3c2d78eacdc40017cf8f7f32934a49213aab3ee5e3767b44869bd306da171e6438b89fbc78417b419725e895
languageName: node
linkType: hard

0 comments on commit 4914880

Please sign in to comment.