@dynamic-labs/react-native-extension 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/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ var reactNativePasskeyStamper = require('@turnkey/react-native-passkey-stamper')
|
|
|
12
12
|
var expoLinking = require('expo-linking');
|
|
13
13
|
var expoWebBrowser = require('expo-web-browser');
|
|
14
14
|
|
|
15
|
-
var version$1 = "3.0.0-alpha.
|
|
15
|
+
var version$1 = "3.0.0-alpha.32";
|
|
16
16
|
|
|
17
17
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
18
18
|
|
|
@@ -2994,6 +2994,7 @@ const setupPasskeyHandler = core => {
|
|
|
2994
2994
|
const setupPlatformHandler = core => {
|
|
2995
2995
|
const platformChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
2996
2996
|
core.manifest.setPlatform('react-native');
|
|
2997
|
+
core.manifest.setRedirectUrl(expoLinking.createURL(''));
|
|
2997
2998
|
platformChannel.handle('openURL', url => __awaiter(void 0, void 0, void 0, function* () {
|
|
2998
2999
|
yield expoLinking.openURL(url);
|
|
2999
3000
|
}));
|
|
@@ -3007,12 +3008,6 @@ const setupPlatformHandler = core => {
|
|
|
3007
3008
|
if (result.type !== 'success') throw new Error(result.type);
|
|
3008
3009
|
return result.url;
|
|
3009
3010
|
}));
|
|
3010
|
-
// WARNING: before using this URL for deeplinking it must be verified against the
|
|
3011
|
-
// environment's configured deeplink URLs
|
|
3012
|
-
// TODO: use the current path here so the deeplink points to the current exact route
|
|
3013
|
-
platformChannel.handle('getRedirectUrl', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3014
|
-
return expoLinking.createURL('');
|
|
3015
|
-
}));
|
|
3016
3011
|
};
|
|
3017
3012
|
|
|
3018
3013
|
const defaultWebviewUrl = `https://webview.dynamicauth.com/${version$1}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/react-native-extension",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.32",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"module": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@dynamic-labs/message-transport": "3.0.0-alpha.
|
|
18
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
17
|
+
"@dynamic-labs/message-transport": "3.0.0-alpha.32",
|
|
18
|
+
"@dynamic-labs/logger": "3.0.0-alpha.32",
|
|
19
19
|
"@turnkey/react-native-passkey-stamper": "0.2.5"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react-native-webview": "^13.6.4",
|
|
25
25
|
"expo-linking": "^6.2.2",
|
|
26
26
|
"expo-web-browser": ">=12.0.0 <14.0.0",
|
|
27
|
-
"@dynamic-labs/client": "3.0.0-alpha.
|
|
27
|
+
"@dynamic-labs/client": "3.0.0-alpha.32"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Extension } from '@dynamic-labs/client';
|
|
3
|
-
type ReactNativeExtensionProps = {
|
|
3
|
+
export type ReactNativeExtensionProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The URL to load in the WebView.
|
|
6
6
|
*/
|
|
@@ -20,4 +20,3 @@ export type IReactNativeExtension = {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export declare const ReactNativeExtension: ({ webviewUrl, webviewDebuggingEnabled, appOrigin, }?: ReactNativeExtensionProps) => Extension<IReactNativeExtension>;
|
|
23
|
-
export {};
|