@dynamic-labs/sdk-react-core 2.0.0-alpha.13 → 2.0.0-alpha.15
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 +15 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +14 -14
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +7 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +7 -1
- package/src/lib/views/viewToComponentMap.cjs +2 -2
- package/src/lib/views/viewToComponentMap.d.ts +1 -1
- package/src/lib/views/viewToComponentMap.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2024-03-15)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* Add support for mobile farcaster signin ([#4973](https://github.com/dynamic-labs/DynamicAuth/issues/4973)) ([98261a4](https://github.com/dynamic-labs/DynamicAuth/commit/98261a47bd319cd93b36f5cdd6a9be0064887686))
|
|
8
|
+
|
|
9
|
+
## [2.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) (2024-03-14)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* convert empty value when checking for gas sponsorship ([#4970](https://github.com/dynamic-labs/DynamicAuth/issues/4970)) ([8439a20](https://github.com/dynamic-labs/DynamicAuth/commit/8439a2035729150f33507b22c2678b16ae47976b))
|
|
15
|
+
* omit wallet connect on mobile ([#4954](https://github.com/dynamic-labs/DynamicAuth/issues/4954)) ([6ac29a8](https://github.com/dynamic-labs/DynamicAuth/commit/6ac29a8961dc010688425fb67a4fb621ca9f80b2))
|
|
16
|
+
|
|
2
17
|
## [2.0.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-03-14)
|
|
3
18
|
|
|
4
19
|
## [2.0.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-03-13)
|
package/package.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = "2.0.0-alpha.
|
|
5
|
+
var version = "2.0.0-alpha.15";
|
|
6
6
|
var dependencies = {
|
|
7
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
7
|
+
"@dynamic-labs/sdk-api": "0.0.389",
|
|
8
8
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
9
9
|
"country-list": "2.3.0",
|
|
10
10
|
formik: "2.2.9",
|
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
7
7
|
"directory": "packages/sdk-react-core"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
10
|
+
"@dynamic-labs/sdk-api": "0.0.389",
|
|
11
11
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
12
12
|
"country-list": "2.3.0",
|
|
13
13
|
"formik": "2.2.9",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/ethereum": "2.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/iconic": "2.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/logger": "2.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "2.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/rpc-provider-ethereum": "2.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/rpc-provider-solana": "2.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "2.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/types": "2.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/utils": "2.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/viem-utils": "2.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "2.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "2.0.0-alpha.
|
|
20
|
+
"@dynamic-labs/ethereum": "2.0.0-alpha.15",
|
|
21
|
+
"@dynamic-labs/iconic": "2.0.0-alpha.15",
|
|
22
|
+
"@dynamic-labs/logger": "2.0.0-alpha.15",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "2.0.0-alpha.15",
|
|
24
|
+
"@dynamic-labs/rpc-provider-ethereum": "2.0.0-alpha.15",
|
|
25
|
+
"@dynamic-labs/rpc-provider-solana": "2.0.0-alpha.15",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "2.0.0-alpha.15",
|
|
27
|
+
"@dynamic-labs/types": "2.0.0-alpha.15",
|
|
28
|
+
"@dynamic-labs/utils": "2.0.0-alpha.15",
|
|
29
|
+
"@dynamic-labs/viem-utils": "2.0.0-alpha.15",
|
|
30
|
+
"@dynamic-labs/wallet-book": "2.0.0-alpha.15",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "2.0.0-alpha.15",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -402,7 +402,13 @@ const useSocialAuth = ({ sessionTimeout, authMode, onSettled, onError, }) => {
|
|
|
402
402
|
handleError(types.SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.");
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
// If on mobile, we want to redirect to the Warpcast app.
|
|
406
|
+
if (utils.isMobile()) {
|
|
407
|
+
window.location.assign(data.url);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
setView('farcaster-connect-view', { url: data.url });
|
|
411
|
+
}
|
|
406
412
|
const status = yield farcaster.watchStatus({
|
|
407
413
|
channelToken: data.channelToken,
|
|
408
414
|
});
|
|
@@ -398,7 +398,13 @@ const useSocialAuth = ({ sessionTimeout, authMode, onSettled, onError, }) => {
|
|
|
398
398
|
handleError(SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.");
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
|
-
|
|
401
|
+
// If on mobile, we want to redirect to the Warpcast app.
|
|
402
|
+
if (isMobile()) {
|
|
403
|
+
window.location.assign(data.url);
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
406
|
+
setView('farcaster-connect-view', { url: data.url });
|
|
407
|
+
}
|
|
402
408
|
const status = yield watchStatus({
|
|
403
409
|
channelToken: data.channelToken,
|
|
404
410
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
6
|
var AccountExistsView = require('./AccountExistsView/AccountExistsView.cjs');
|
|
6
7
|
var BridgeNextWalletConnectionView = require('./BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs');
|
|
7
8
|
var BridgeSummaryView = require('./BridgeSummaryView/BridgeSummaryView.cjs');
|
|
@@ -29,7 +30,6 @@ var PasskeyCompleteRecovery = require('./Passkey/PasskeyRecovery/CompleteRecover
|
|
|
29
30
|
var PasskeyInitRecovery = require('./Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs');
|
|
30
31
|
var RenamePasskeyView = require('./Passkey/RenamePasskeyView/RenamePasskeyView.cjs');
|
|
31
32
|
var EmbeddedAuthChoice = require('./Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs');
|
|
32
|
-
require('react/jsx-runtime');
|
|
33
33
|
require('react-i18next');
|
|
34
34
|
require('react');
|
|
35
35
|
require('../events/dynamicEvents.cjs');
|
|
@@ -157,7 +157,7 @@ const viewToComponentMap = {
|
|
|
157
157
|
'wait-for-email-confirmation-view': EmailConfirmationWaitingView.EmailConfirmationWaitingView,
|
|
158
158
|
'wallet-cannot-be-transferred': WalletCannotBeTransferredView.WalletCannotBeTransferredView,
|
|
159
159
|
'wallet-claim-intro': CoinbaseMPCClaimIntro.CoinbaseMPCClaimIntro,
|
|
160
|
-
'wallet-connect-mobile-wallets-list': WalletList.WalletList,
|
|
160
|
+
'wallet-connect-mobile-wallets-list': () => (jsxRuntime.jsx(WalletList.WalletList, { isWalletConnectList: true })),
|
|
161
161
|
'wallet-group': WalletGroupView.WalletGroupView,
|
|
162
162
|
'wallet-list': WalletList.WalletList,
|
|
163
163
|
'wallet-locked-view': WalletLockedView.WalletLockedView,
|
|
@@ -51,7 +51,7 @@ export declare const viewToComponentMap: {
|
|
|
51
51
|
'wait-for-email-confirmation-view': () => JSX.Element;
|
|
52
52
|
'wallet-cannot-be-transferred': () => JSX.Element;
|
|
53
53
|
'wallet-claim-intro': () => JSX.Element;
|
|
54
|
-
'wallet-connect-mobile-wallets-list': (
|
|
54
|
+
'wallet-connect-mobile-wallets-list': () => JSX.Element;
|
|
55
55
|
'wallet-group': import("react").FC;
|
|
56
56
|
'wallet-list': ({ isWalletConnectList, }: import("./WalletList").WalletListProps) => JSX.Element;
|
|
57
57
|
'wallet-locked-view': () => JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { AccountExistsView } from './AccountExistsView/AccountExistsView.js';
|
|
2
3
|
import { BridgeNextWalletConnectionView } from './BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js';
|
|
3
4
|
import { BridgeSummaryView } from './BridgeSummaryView/BridgeSummaryView.js';
|
|
@@ -25,7 +26,6 @@ import { PasskeyCompleteRecovery } from './Passkey/PasskeyRecovery/CompleteRecov
|
|
|
25
26
|
import { PasskeyInitRecovery } from './Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js';
|
|
26
27
|
import { RenamePasskeyView } from './Passkey/RenamePasskeyView/RenamePasskeyView.js';
|
|
27
28
|
import { EmbeddedAuthChoice } from './Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js';
|
|
28
|
-
import 'react/jsx-runtime';
|
|
29
29
|
import 'react-i18next';
|
|
30
30
|
import 'react';
|
|
31
31
|
import '../events/dynamicEvents.js';
|
|
@@ -153,7 +153,7 @@ const viewToComponentMap = {
|
|
|
153
153
|
'wait-for-email-confirmation-view': EmailConfirmationWaitingView,
|
|
154
154
|
'wallet-cannot-be-transferred': WalletCannotBeTransferredView,
|
|
155
155
|
'wallet-claim-intro': CoinbaseMPCClaimIntro,
|
|
156
|
-
'wallet-connect-mobile-wallets-list': WalletList,
|
|
156
|
+
'wallet-connect-mobile-wallets-list': () => (jsx(WalletList, { isWalletConnectList: true })),
|
|
157
157
|
'wallet-group': WalletGroupView,
|
|
158
158
|
'wallet-list': WalletList,
|
|
159
159
|
'wallet-locked-view': WalletLockedView,
|