From 4149820cec29c6c30f4a99946b01bf05327e58c7 Mon Sep 17 00:00:00 2001 From: yu-zhen Date: Wed, 21 Aug 2024 16:27:17 +0800 Subject: [PATCH] chore: add effector as state manager --- packages/interface/package.json | 2 ++ pnpm-lock.yaml | 31 ++++++++++++++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/packages/interface/package.json b/packages/interface/package.json index 9289ddb2..57d1a5b4 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -35,6 +35,8 @@ "clsx": "^2.1.0", "date-fns": "^3.6.0", "dotenv": "^16.4.1", + "effector": "^23.2.2", + "effector-react": "^23.2.1", "ethers": "^6.13.1", "graphql-request": "^6.1.0", "lowdb": "^1.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ff17f62..a13735af 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -340,6 +340,12 @@ importers: dotenv: specifier: ^16.4.1 version: 16.4.5 + effector: + specifier: ^23.2.2 + version: 23.2.2 + effector-react: + specifier: ^23.2.1 + version: 23.2.1(effector@23.2.2)(react@18.2.0) ethers: specifier: ^6.13.1 version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -6391,6 +6397,17 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + effector-react@23.2.1: + resolution: {integrity: sha512-eyjHm095xgrDNe8wtF60w5AjaF+j4Z6XP/DxW8RvlCK4twQT5mkAbIBJxA7BXKLL74RpySai8QmjVBurzapBCw==} + engines: {node: '>=11.0.0'} + peerDependencies: + effector: ^23.0.0 + react: '>=16.8.0 <19.0.0' + + effector@23.2.2: + resolution: {integrity: sha512-gzwATi9pgZQx0TNhM2LESmoUpEO+vhibLZPCvVzi7spMvKFwKnfJV2PFj4xqNFFSC35TXaznx30ne62dCQ6ZRQ==} + engines: {node: '>=11.0.0'} + ejs@3.1.10: resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} engines: {node: '>=0.10.0'} @@ -20865,10 +20882,6 @@ snapshots: dependencies: ms: 2.0.0 - debug@3.2.7: - dependencies: - ms: 2.1.3 - debug@3.2.7(supports-color@8.1.1): dependencies: ms: 2.1.3 @@ -21106,7 +21119,7 @@ snapshots: docker-modem@1.0.9: dependencies: JSONStream: 1.3.2 - debug: 3.2.7 + debug: 3.2.7(supports-color@8.1.1) readable-stream: 1.0.34 split-ca: 1.0.1 transitivePeerDependencies: @@ -21216,6 +21229,14 @@ snapshots: ee-first@1.1.1: {} + effector-react@23.2.1(effector@23.2.2)(react@18.2.0): + dependencies: + effector: 23.2.2 + react: 18.2.0 + use-sync-external-store: 1.2.0(react@18.2.0) + + effector@23.2.2: {} + ejs@3.1.10: dependencies: jake: 10.9.2