Skip to content

Commit

Permalink
chore: bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jun 18, 2024
1 parent 5255a53 commit 9ac087e
Show file tree
Hide file tree
Showing 15 changed files with 1,053 additions and 1,037 deletions.
610 changes: 305 additions & 305 deletions .yarn/releases/yarn-4.2.2.cjs → .yarn/releases/yarn-4.3.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.3.0.cjs
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"sideEffects": false,
"type": "module",
"packageManager": "yarn@4.2.2",
"packageManager": "yarn@4.3.0",
"workspaces": [
"packages/*"
],
Expand Down Expand Up @@ -38,17 +38,17 @@
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/eslint": "^8.56.10",
"@types/events": "^3.0.3",
"@types/node": "^20.14.2",
"@types/node": "^20.14.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"cpy-cli": "^5.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -60,9 +60,9 @@
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"husky": "^9.0.11",
"lerna": "8.1.3",
"lint-staged": "^15.2.5",
"prettier": "^3.3.1",
"lerna": "8.1.4",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^3.2.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/wallet-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"lifi"
],
"dependencies": {
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/sdk": "^3.0.0-beta.1",
"@solana/wallet-adapter-base": "^0.9.23",
"react": "^18.3.1",
"viem": "^2.13.7",
"wagmi": "^2.9.9"
"viem": "^2.15.1",
"wagmi": "^2.10.2"
},
"devDependencies": {
"cpy-cli": "^5.0.0",
Expand Down
20 changes: 10 additions & 10 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@
},
"author": "Eugene Chybisov <[email protected]>",
"dependencies": {
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/sdk": "^3.0.0-beta.1",
"@lifi/wallet-management": "^3.0.0-beta.3",
"@lifi/widget": "^3.0.0-beta.3",
"@mui/icons-material": "^5.15.19",
"@mui/icons-material": "^5.15.20",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.19",
"@opensea/seaport-js": "4.0.1",
"@tanstack/react-query": "^5.40.1",
"@mui/material": "^5.15.20",
"@opensea/seaport-js": "4.0.2",
"@tanstack/react-query": "^5.45.1",
"bignumber.js": "^9.1.2",
"ethers": "^6.13.0",
"ethers": "^6.13.1",
"events": "^3.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1",
"wagmi": "^2.9.9"
"wagmi": "^2.10.2"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@vitejs/plugin-react-swc": "^3.7.0",
"source-map-explorer": "^2.5.3",
"typescript": "^5.4.5",
"vite": "^5.2.12",
"vite": "^5.3.1",
"vite-plugin-node-polyfills": "^0.22.0",
"web-vitals": "^3.5.2"
"web-vitals": "^4.1.1"
},
"eslintConfig": {
"extends": "../../.eslintrc"
Expand All @@ -62,4 +62,4 @@
]
},
"private": true
}
}
22 changes: 11 additions & 11 deletions packages/widget-playground-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,35 @@
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/sdk": "^3.0.0-beta.1",
"@lifi/wallet-management": "^3.0.0-beta.3",
"@lifi/widget": "^3.0.0-beta.3",
"@lifi/widget-playground": "^1.0.197",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/icons-material": "^5.15.20",
"@mui/material": "^5.15.20",
"@mui/material-nextjs": "^5.15.11",
"@rainbow-me/rainbowkit": "^2.1.2",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.92.2",
"@tanstack/react-query": "^5.40.1",
"@solana/web3.js": "^1.93.0",
"@tanstack/react-query": "^5.45.1",
"core-js": "^3.37.1",
"lodash.isequal": "^4.5.0",
"microdiff": "^1.4.0",
"next": "14.2.3",
"next": "14.2.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.13.7",
"wagmi": "^2.9.9",
"viem": "^2.15.1",
"wagmi": "^2.10.2",
"zustand": "^4.5.2"
},
"devDependencies": {
"@types/node": "^20.14.2",
"@types/node": "^20.14.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.3",
"eslint-config-next": "14.2.4",
"typescript": "^5.4.5"
},
"private": true
}
}
20 changes: 10 additions & 10 deletions packages/widget-playground-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@
},
"author": "Eugene Chybisov <[email protected]>",
"dependencies": {
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/sdk": "^3.0.0-beta.1",
"@lifi/wallet-management": "^3.0.0-beta.3",
"@lifi/widget": "^3.0.0-beta.3",
"@lifi/widget-playground": "^1.0.197",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/icons-material": "^5.15.20",
"@mui/material": "^5.15.20",
"@rainbow-me/rainbowkit": "^2.1.2",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.92.2",
"@tanstack/react-query": "^5.40.1",
"@solana/web3.js": "^1.93.0",
"@tanstack/react-query": "^5.45.1",
"lodash.isequal": "^4.5.0",
"microdiff": "^1.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1",
"viem": "^2.13.7",
"wagmi": "^2.9.9",
"viem": "^2.15.1",
"wagmi": "^2.10.2",
"zustand": "^4.5.2"
},
"devDependencies": {
Expand All @@ -44,9 +44,9 @@
"rollup-plugin-polyfill-node": "^0.13.0",
"source-map-explorer": "^2.5.3",
"typescript": "^5.4.5",
"vite": "^5.2.12",
"vite": "^5.3.1",
"vite-plugin-node-polyfills": "^0.22.0",
"web-vitals": "^3.5.2"
"web-vitals": "^4.1.1"
},
"eslintConfig": {
"extends": "../../.eslintrc"
Expand All @@ -66,4 +66,4 @@
]
},
"private": true
}
}
12 changes: 6 additions & 6 deletions packages/widget-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"access": "public"
},
"peerDependencies": {
"@lifi/sdk": "^3.0.0-alpha.56",
"@lifi/wallet-management": "^3.0.0-alpha.21",
"@lifi/widget": "^3.0.0-alpha.31",
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/wallet-management": "^3.0.0-beta.0",
"@lifi/widget": "^3.0.0-beta.0",
"@mui/icons-material": "^5.15.10",
"@mui/material": "^5.15.10",
"@rainbow-me/rainbowkit": "^2.0.1",
Expand All @@ -43,14 +43,14 @@
},
"devDependencies": {
"@types/lodash.isequal": "^4.5.8",
"@types/node": "^20.14.2",
"@types/node": "^20.14.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"cpy-cli": "^5.0.0",
"jsdom": "^24.1.0",
"typescript": "^5.4.5",
"vite": "^5.2.12",
"vite": "^5.3.1",
"vitest": "^1.6.0"
},
"exports": {
Expand All @@ -62,4 +62,4 @@
"@monaco-editor/react": "^4.6.0"
},
"private": true
}
}
20 changes: 10 additions & 10 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/sdk": "^3.0.0-beta.1",
"@lifi/wallet-management": "^3.0.0-beta.3",
"@mui/icons-material": "^5.15.19",
"@mui/icons-material": "^5.15.20",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.19",
"@mui/material": "^5.15.20",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.92.2",
"@tanstack/react-query": "^5.40.1",
"@solana/web3.js": "^1.93.0",
"@tanstack/react-query": "^5.45.1",
"@tanstack/react-virtual": "^3.5.1",
"i18next": "^23.11.5",
"microdiff": "^1.4.0",
Expand All @@ -69,9 +69,9 @@
"react-intersection-observer": "^9.10.3",
"react-router-dom": "^6.23.1",
"react-timer-hook": "^3.0.7",
"uuid": "^9.0.1",
"viem": "^2.13.7",
"wagmi": "^2.9.9",
"uuid": "^10.0.0",
"viem": "^2.15.1",
"wagmi": "^2.10.2",
"zustand": "^4.5.2"
},
"devDependencies": {
Expand All @@ -82,8 +82,8 @@
"peerDependencies": {
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@lifi/sdk": "^3.0.0-alpha.0",
"@lifi/wallet-management": "^3.0.0-alpha.0",
"@lifi/sdk": "^3.0.0-beta.0",
"@lifi/wallet-management": "^3.0.0-beta.0",
"@mui/icons-material": "^5.15.0",
"@mui/material": "^5.15.0",
"@solana/wallet-adapter-base": "^0.9.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/widget/src/components/Step/CircularProgress.style.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Status, Substatus } from '@lifi/sdk';
import type { ProcessStatus, Substatus } from '@lifi/sdk';
import type { Theme } from '@mui/material';
import {
Box,
Expand All @@ -11,7 +11,7 @@ import {

const getStatusColor = (
theme: Theme,
status: Status,
status?: ProcessStatus,
substatus?: Substatus,
) => {
switch (status) {
Expand All @@ -31,14 +31,14 @@ const getStatusColor = (

export const CircularIcon = styled(Box, {
shouldForwardProp: (prop: string) => !['status', 'substatus'].includes(prop),
})<{ status: Status; substatus?: Substatus }>(
})<{ status?: ProcessStatus; substatus?: Substatus }>(
({ theme, status, substatus }) => ({
backgroundColor: ['ACTION_REQUIRED', 'DONE', 'FAILED'].includes(status)
backgroundColor: ['ACTION_REQUIRED', 'DONE', 'FAILED'].includes(status!)
? getStatusColor(theme, status, substatus)
: theme.palette.background.paper,
borderStyle: 'solid',
borderColor: getStatusColor(theme, status, substatus),
borderWidth: !['ACTION_REQUIRED', 'DONE', 'FAILED'].includes(status)
borderWidth: !['ACTION_REQUIRED', 'DONE', 'FAILED'].includes(status!)
? 3
: 0,
display: 'grid',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const DestinationWalletAddress: React.FC<{
alignItems: 'center',
}}
>
<CircularIcon status={isDone ? 'DONE' : 'NOT_STARTED'}>
<CircularIcon status={isDone ? 'DONE' : undefined}>
<Wallet
color={isDone ? 'success' : 'inherit'}
sx={{
Expand Down
4 changes: 2 additions & 2 deletions packages/widget/src/hooks/useProcessMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type {
EVMChain,
LiFiStep,
Process,
ProcessStatus,
ProcessType,
Status,
StatusMessage,
Substatus,
} from '@lifi/sdk';
Expand Down Expand Up @@ -36,7 +36,7 @@ const processStatusMessages: Record<
ProcessType,
Partial<
Record<
Status,
ProcessStatus,
(
t: TFunction,
subvariant?: WidgetSubvariant,
Expand Down
14 changes: 10 additions & 4 deletions packages/widget/src/stores/routes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ export const getUpdatedProcess = (
if (!processDiff) {
return undefined;
}
// e.g. ['steps', 0, 'execution', 'process', 0]
const process = processDiff.path
.slice(0, processDiff.path.findIndex((path) => path === 'process') + 2)
.reduce((obj, path) => obj[path], updatedRoute as any) as Process;
// Find process index in the diff array so we can slice the complete rpocess object
// e.g. ['steps', 0, 'execution', 'process', 0, 'message']
const processDiffIndex =
processDiff.path.findIndex((path) => path === 'process') + 2;
const processPathSlice = processDiff.path.slice(0, processDiffIndex);
// Reduce updated route using the diff path to get updated process
const process = processPathSlice.reduce(
(obj, path) => obj[path],
updatedRoute as any,
) as Process;
return process;
};

Expand Down
4 changes: 2 additions & 2 deletions packages/widget/src/utils/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
FeeCost,
FullStatusData,
Process,
Status,
ProcessStatus,
Substatus,
TokenAmount,
ToolsResponse,
Expand All @@ -19,7 +19,7 @@ const buildProcessFromTxHistory = (tx: FullStatusData): Process[] => {
return [];
}

const processStatus: Status = tx.status === 'DONE' ? 'DONE' : 'FAILED';
const processStatus: ProcessStatus = tx.status === 'DONE' ? 'DONE' : 'FAILED';
const substatus: Substatus =
processStatus === 'FAILED' ? 'UNKNOWN_ERROR' : 'COMPLETED';

Expand Down
Loading

0 comments on commit 9ac087e

Please sign in to comment.