@dynamic-labs/client 3.0.0-alpha.30 → 3.0.0-alpha.32
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 +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- package/src/client/core/core.d.ts +2 -1
- package/src/client/core/modules/manifestModule/manifestModule.cjs +1 -0
- package/src/client/core/modules/manifestModule/manifestModule.d.ts +2 -1
- package/src/client/core/modules/manifestModule/manifestModule.js +1 -0
- package/src/client/core/modules/manifestModule/validateManifest/validateManifest.cjs +1 -0
- package/src/client/core/modules/manifestModule/validateManifest/validateManifest.js +1 -0
- package/src/modules/authModule/socialAuthModule/socialAuthModule.cjs +1 -1
- package/src/modules/authModule/socialAuthModule/socialAuthModule.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.32](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.31...v3.0.0-alpha.32) (2024-07-30)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* react native flicker when redirecting back from farcaster ([#6338](https://github.com/dynamic-labs/DynamicAuth/issues/6338)) ([6ab8464](https://github.com/dynamic-labs/DynamicAuth/commit/6ab846476f7961564445223dd12a552ed4c0f0c8))
|
|
8
|
+
* stop unnecessary phantom btc popup when disconnecting - Revert ([#6439](https://github.com/dynamic-labs/DynamicAuth/issues/6439)) ([79ba97d](https://github.com/dynamic-labs/DynamicAuth/commit/79ba97d82c4eb89f0118a925e4dc899853e04550)), closes [#6188](https://github.com/dynamic-labs/DynamicAuth/issues/6188)
|
|
9
|
+
|
|
10
|
+
## [3.0.0-alpha.31](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.30...v3.0.0-alpha.31) (2024-07-27)
|
|
11
|
+
|
|
2
12
|
## [3.0.0-alpha.30](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.29...v3.0.0-alpha.30) (2024-07-27)
|
|
3
13
|
|
|
4
14
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/client",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.32",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/message-transport": "3.0.0-alpha.
|
|
29
|
+
"@dynamic-labs/message-transport": "3.0.0-alpha.32",
|
|
30
30
|
"@vue/reactivity": "3.4.21"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
34
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
33
|
+
"@dynamic-labs/logger": "3.0.0-alpha.32",
|
|
34
|
+
"@dynamic-labs/types": "3.0.0-alpha.32",
|
|
35
35
|
"eventemitter3": "5.0.1"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -22,7 +22,8 @@ export declare const createCore: (props: ClientProps) => {
|
|
|
22
22
|
*/
|
|
23
23
|
manifest: {
|
|
24
24
|
setAppOrigin: (appOrigin: string) => string;
|
|
25
|
-
setPlatform: (platform: "browser" | "react-native") => "browser" | "react-native";
|
|
25
|
+
setPlatform: (platform: "browser" | "react-native" | "flutter") => "browser" | "react-native" | "flutter";
|
|
26
|
+
setRedirectUrl: (redirectUrl: string) => string;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
29
|
* Message transport that will be used to send and receive messages to the webview.
|
|
@@ -29,6 +29,7 @@ const createManifestModule = (props, messageTransport$1, initializationModule) =
|
|
|
29
29
|
return {
|
|
30
30
|
setAppOrigin: (appOrigin) => (manifest.appOrigin = appOrigin),
|
|
31
31
|
setPlatform: (platform) => (manifest.platform = platform),
|
|
32
|
+
setRedirectUrl: (redirectUrl) => (manifest.redirectUrl = redirectUrl),
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
|
|
@@ -6,5 +6,6 @@ import { InitializationModule } from '../initializationModule/initializationModu
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const createManifestModule: (props: ClientProps, messageTransport: MessageTransportWithDefaultOrigin, initializationModule: InitializationModule) => {
|
|
8
8
|
setAppOrigin: (appOrigin: string) => string;
|
|
9
|
-
setPlatform: (platform: ClientManifest['platform']) => "browser" | "react-native";
|
|
9
|
+
setPlatform: (platform: ClientManifest['platform']) => "browser" | "react-native" | "flutter";
|
|
10
|
+
setRedirectUrl: (redirectUrl: string) => string;
|
|
10
11
|
};
|
|
@@ -25,6 +25,7 @@ const createManifestModule = (props, messageTransport, initializationModule) =>
|
|
|
25
25
|
return {
|
|
26
26
|
setAppOrigin: (appOrigin) => (manifest.appOrigin = appOrigin),
|
|
27
27
|
setPlatform: (platform) => (manifest.platform = platform),
|
|
28
|
+
setRedirectUrl: (redirectUrl) => (manifest.redirectUrl = redirectUrl),
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -11,6 +11,7 @@ const mandatoryFields = {
|
|
|
11
11
|
clientVersion: "We were unable to retrieve the Dynamic Client's version from your app. Please contact us about this.",
|
|
12
12
|
environmentId: 'You must provide an environment id to the Dynamic Client.',
|
|
13
13
|
platform: 'Missing platform specific extension, like BrowserExtension or ReactNativeExtension. See how to setup Dynamic Client in our docs for help.',
|
|
14
|
+
redirectUrl: 'Missing platform specific extension, like BrowserExtension or ReactNativeExtension. See how to setup Dynamic Client in our docs for help.',
|
|
14
15
|
};
|
|
15
16
|
const validateManifest = (partialManifest) => {
|
|
16
17
|
/**
|
|
@@ -7,6 +7,7 @@ const mandatoryFields = {
|
|
|
7
7
|
clientVersion: "We were unable to retrieve the Dynamic Client's version from your app. Please contact us about this.",
|
|
8
8
|
environmentId: 'You must provide an environment id to the Dynamic Client.',
|
|
9
9
|
platform: 'Missing platform specific extension, like BrowserExtension or ReactNativeExtension. See how to setup Dynamic Client in our docs for help.',
|
|
10
|
+
redirectUrl: 'Missing platform specific extension, like BrowserExtension or ReactNativeExtension. See how to setup Dynamic Client in our docs for help.',
|
|
10
11
|
};
|
|
11
12
|
const validateManifest = (partialManifest) => {
|
|
12
13
|
/**
|
|
@@ -7,7 +7,7 @@ var messageTransport = require('@dynamic-labs/message-transport');
|
|
|
7
7
|
|
|
8
8
|
const createSocialAuthModule = (core) => {
|
|
9
9
|
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
10
|
-
const connect = (
|
|
10
|
+
const connect = (props) => requestChannel.request('connectWithSocial', props);
|
|
11
11
|
return { connect };
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import { createRequestChannel } from '@dynamic-labs/message-transport';
|
|
|
3
3
|
|
|
4
4
|
const createSocialAuthModule = (core) => {
|
|
5
5
|
const requestChannel = createRequestChannel(core.messageTransport);
|
|
6
|
-
const connect = (
|
|
6
|
+
const connect = (props) => requestChannel.request('connectWithSocial', props);
|
|
7
7
|
return { connect };
|
|
8
8
|
};
|
|
9
9
|
|