@dynamic-labs/sdk-react-core 4.83.1 → 4.83.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/package.cjs +4 -4
- package/package.js +4 -4
- package/package.json +15 -15
- package/src/lib/client/extension/deprecated/mfa/verifyTotpMfaDevice/verifyTotpMfaDevice.d.ts +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +2 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +2 -0
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +1 -0
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +1 -0
- package/src/lib/data/api/aleo/getAleoCuratedPrices.d.ts +9 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/buildTokenKey.cjs +18 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/buildTokenKey.d.ts +18 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/buildTokenKey.js +14 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/index.d.ts +2 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/nativeTokenKey.cjs +15 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/nativeTokenKey.d.ts +8 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/nativeTokenKey.js +11 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/pollOnShielded.cjs +50 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/pollOnShielded.d.ts +12 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/pollOnShielded.js +45 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/useAleoAutoShieldSponsoredTokens.cjs +48 -41
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/useAleoAutoShieldSponsoredTokens.d.ts +11 -0
- package/src/lib/utils/hooks/useAleoAutoShieldSponsoredTokens/useAleoAutoShieldSponsoredTokens.js +47 -40
- package/src/lib/utils/hooks/useAleoShieldedBalances/useAleoShieldedBalances.cjs +43 -29
- package/src/lib/utils/hooks/useAleoShieldedBalances/useAleoShieldedBalances.js +43 -29
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletBalance/ActiveWalletBalance.cjs +45 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletBalance/ActiveWalletBalance.js +46 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.83.2-alpha.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.1...v4.83.2-alpha.0) (2026-05-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **ci:** add structured DD event reporting on RWX CI failure ([#11231](https://github.com/dynamic-labs/dynamic-auth/issues/11231)) ([2a6e19f](https://github.com/dynamic-labs/dynamic-auth/commit/2a6e19f5746bed28993b73c9dc43656ef9c8b75e)), closes [dynamic-labs/pw-configs#30](https://github.com/dynamic-labs/pw-configs/issues/30) [pw-configs#30](https://github.com/dynamic-labs/pw-configs/issues/30) [pw-configs#30](https://github.com/dynamic-labs/pw-configs/issues/30)
|
|
8
|
+
* **playwright:** support local e2e + document workflow + .env.example ([#11230](https://github.com/dynamic-labs/dynamic-auth/issues/11230)) ([492cc5c](https://github.com/dynamic-labs/dynamic-auth/commit/492cc5ce6b5f9241ac670ebf140d1c2dce66dd58))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **aleo:** dedup concurrent shieldToken calls + hide manual CTA during auto-shield ([#11264](https://github.com/dynamic-labs/dynamic-auth/issues/11264)) ([f466373](https://github.com/dynamic-labs/dynamic-auth/commit/f4663732d50cc3e617c15d41c5131a6f84ee44d5)), closes [#3](https://github.com/dynamic-labs/dynamic-auth/issues/3) [#11263](https://github.com/dynamic-labs/dynamic-auth/issues/11263)
|
|
14
|
+
* **aleo:** render real brand logos on the shielded balance tab ([#11270](https://github.com/dynamic-labs/dynamic-auth/issues/11270)) ([0482fb7](https://github.com/dynamic-labs/dynamic-auth/commit/0482fb7134ee85677e4e48d1cb1e323073703f92))
|
|
15
|
+
* **aleo:** reuse pollOnShielded backoff for the manual shield refresh ([#11265](https://github.com/dynamic-labs/dynamic-auth/issues/11265)) ([4956798](https://github.com/dynamic-labs/dynamic-auth/commit/4956798bfd455caef2844dd1a1db1af3bb6d7daf)), closes [#11264](https://github.com/dynamic-labs/dynamic-auth/issues/11264) [#11263](https://github.com/dynamic-labs/dynamic-auth/issues/11263)
|
|
16
|
+
* **ci:** drop doubled-playwright prefix from in-task dd reporter paths ([#11261](https://github.com/dynamic-labs/dynamic-auth/issues/11261)) ([459693d](https://github.com/dynamic-labs/dynamic-auth/commit/459693d74b73d534ed96ef6afdc5de930e2da9de)), closes [#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255) [#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255) [post-#11255](https://github.com/dynamic-labs/post-/issues/11255) [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251) [#11231](https://github.com/dynamic-labs/dynamic-auth/issues/11231) [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251) [#11231](https://github.com/dynamic-labs/dynamic-auth/issues/11231) [#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255) [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251)
|
|
17
|
+
* **ci:** pass captain log by path so dd reporter dodges ARG_MAX ([#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255)) ([43dfad0](https://github.com/dynamic-labs/dynamic-auth/commit/43dfad0fda0fdd487a246315d9c6e2be6d61edb1)), closes [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251)
|
|
18
|
+
* **widget:** theme TransactionMode segmented control for dark mode ([#11269](https://github.com/dynamic-labs/dynamic-auth/issues/11269)) ([21d6da2](https://github.com/dynamic-labs/dynamic-auth/commit/21d6da2b3edc8b3107c396ac7631b1dcb477533f)), closes [#e5e7](https://github.com/dynamic-labs/dynamic-auth/issues/e5e7) [#cbd5e1](https://github.com/dynamic-labs/dynamic-auth/issues/cbd5e1) [#f9](https://github.com/dynamic-labs/dynamic-auth/issues/f9)
|
|
19
|
+
|
|
2
20
|
### [4.83.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.0...v4.83.1) (2026-05-14)
|
|
3
21
|
|
|
4
22
|
|
package/package.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "4.83.
|
|
6
|
+
var version = "4.83.2-alpha.0";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
9
|
-
"@dynamic-labs-sdk/client": "
|
|
10
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.985",
|
|
9
|
+
"@dynamic-labs-sdk/client": "1.1.0",
|
|
10
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.351",
|
|
11
11
|
"@dynamic-labs-wallet/forward-mpc-client": "0.9.0",
|
|
12
12
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
13
13
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
package/package.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "4.83.
|
|
2
|
+
var version = "4.83.2-alpha.0";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
-
"@dynamic-labs-sdk/client": "
|
|
6
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.0.985",
|
|
5
|
+
"@dynamic-labs-sdk/client": "1.1.0",
|
|
6
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.351",
|
|
7
7
|
"@dynamic-labs-wallet/forward-mpc-client": "0.9.0",
|
|
8
8
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
9
9
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.83.
|
|
3
|
+
"version": "4.83.2-alpha.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
6
|
-
"@dynamic-labs-sdk/client": "
|
|
7
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.985",
|
|
6
|
+
"@dynamic-labs-sdk/client": "1.1.0",
|
|
7
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.351",
|
|
8
8
|
"@dynamic-labs-wallet/forward-mpc-client": "0.9.0",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"yup": "0.32.11",
|
|
18
18
|
"react-international-phone": "4.5.0",
|
|
19
19
|
"bs58": "5.0.0",
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.83.
|
|
21
|
-
"@dynamic-labs/iconic": "4.83.
|
|
22
|
-
"@dynamic-labs/locale": "4.83.
|
|
23
|
-
"@dynamic-labs/logger": "4.83.
|
|
24
|
-
"@dynamic-labs/multi-wallet": "4.83.
|
|
25
|
-
"@dynamic-labs/rpc-providers": "4.83.
|
|
26
|
-
"@dynamic-labs/store": "4.83.
|
|
27
|
-
"@dynamic-labs/types": "4.83.
|
|
28
|
-
"@dynamic-labs/utils": "4.83.
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.83.
|
|
30
|
-
"@dynamic-labs/wallet-connector-core": "4.83.
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.83.2-alpha.0",
|
|
21
|
+
"@dynamic-labs/iconic": "4.83.2-alpha.0",
|
|
22
|
+
"@dynamic-labs/locale": "4.83.2-alpha.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.83.2-alpha.0",
|
|
24
|
+
"@dynamic-labs/multi-wallet": "4.83.2-alpha.0",
|
|
25
|
+
"@dynamic-labs/rpc-providers": "4.83.2-alpha.0",
|
|
26
|
+
"@dynamic-labs/store": "4.83.2-alpha.0",
|
|
27
|
+
"@dynamic-labs/types": "4.83.2-alpha.0",
|
|
28
|
+
"@dynamic-labs/utils": "4.83.2-alpha.0",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.83.2-alpha.0",
|
|
30
|
+
"@dynamic-labs/wallet-connector-core": "4.83.2-alpha.0",
|
|
31
31
|
"eventemitter3": "5.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -175,12 +175,14 @@ const SendBalancePageLayout = ({ error, onClickClose, onClickBack, onSubmit, dis
|
|
|
175
175
|
logoURI: nativeTokenInfo.nativeCurrency.iconUrl || nativeTokenInfo.iconUrls[0],
|
|
176
176
|
name: nativeTokenInfo.name,
|
|
177
177
|
rawBalance: 0,
|
|
178
|
+
rawBalanceString: '0',
|
|
178
179
|
symbol: nativeTokenInfo.nativeCurrency.symbol,
|
|
179
180
|
};
|
|
180
181
|
const tokenBalance = yield (primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.getBalance());
|
|
181
182
|
if (tokenBalance) {
|
|
182
183
|
token.balance = Number(tokenBalance);
|
|
183
184
|
token.rawBalance = Number(tokenBalance) / Math.pow(10, token.decimals);
|
|
185
|
+
token.rawBalanceString = String(tokenBalance);
|
|
184
186
|
}
|
|
185
187
|
setCurrentToken(token);
|
|
186
188
|
});
|
|
@@ -171,12 +171,14 @@ const SendBalancePageLayout = ({ error, onClickClose, onClickBack, onSubmit, dis
|
|
|
171
171
|
logoURI: nativeTokenInfo.nativeCurrency.iconUrl || nativeTokenInfo.iconUrls[0],
|
|
172
172
|
name: nativeTokenInfo.name,
|
|
173
173
|
rawBalance: 0,
|
|
174
|
+
rawBalanceString: '0',
|
|
174
175
|
symbol: nativeTokenInfo.nativeCurrency.symbol,
|
|
175
176
|
};
|
|
176
177
|
const tokenBalance = yield (primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.getBalance());
|
|
177
178
|
if (tokenBalance) {
|
|
178
179
|
token.balance = Number(tokenBalance);
|
|
179
180
|
token.rawBalance = Number(tokenBalance) / Math.pow(10, token.decimals);
|
|
181
|
+
token.rawBalanceString = String(tokenBalance);
|
|
180
182
|
}
|
|
181
183
|
setCurrentToken(token);
|
|
182
184
|
});
|
|
@@ -169,6 +169,7 @@ const TokensBalanceDropdown = ({ tokenBalances, currentToken, setCurrentToken, i
|
|
|
169
169
|
!isNaN(decimals)) {
|
|
170
170
|
selectedToken.balance = balance / Math.pow(10, decimals);
|
|
171
171
|
selectedToken.rawBalance = balance;
|
|
172
|
+
selectedToken.rawBalanceString = String(balance);
|
|
172
173
|
if (tokenBalances) {
|
|
173
174
|
const index = tokenBalances.findIndex((t) => t.name === selectedToken.name);
|
|
174
175
|
tokenBalances[index] = selectedToken;
|
|
@@ -165,6 +165,7 @@ const TokensBalanceDropdown = ({ tokenBalances, currentToken, setCurrentToken, i
|
|
|
165
165
|
!isNaN(decimals)) {
|
|
166
166
|
selectedToken.balance = balance / Math.pow(10, decimals);
|
|
167
167
|
selectedToken.rawBalance = balance;
|
|
168
|
+
selectedToken.rawBalanceString = String(balance);
|
|
168
169
|
if (tokenBalances) {
|
|
169
170
|
const index = tokenBalances.findIndex((t) => t.name === selectedToken.name);
|
|
170
171
|
tokenBalances[index] = selectedToken;
|
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
export type AleoCuratedTokenPrice = {
|
|
8
8
|
address: string;
|
|
9
9
|
isNative: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Brand logo for the token. Surfaced so the widget's Shielded
|
|
12
|
+
* balance tab can render the same icon the unshielded multichain
|
|
13
|
+
* feed renders for the same `(address, isNative)` key, instead of
|
|
14
|
+
* falling through to the generic `?` placeholder. Optional because
|
|
15
|
+
* older redcoast deployments (pre logo-prop rollout) don't yet send
|
|
16
|
+
* the field; consumers must fall back gracefully when it's missing.
|
|
17
|
+
*/
|
|
18
|
+
logoURI?: string;
|
|
10
19
|
symbol: string;
|
|
11
20
|
/**
|
|
12
21
|
* CoinGecko id used for the lookup. Echoed back so consumers can
|