@dynamic-labs/legacy-react-native-extension 5.14.0 → 5.16.1
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 +1 -1
- package/index.js +1 -1
- package/ios/EmbeddedWebViewController.swift +10 -0
- package/package.json +6 -6
package/index.cjs
CHANGED
package/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { openAuthSessionAsync } from 'expo-web-browser';
|
|
|
14
14
|
import { resetGenericPassword, getGenericPassword, setGenericPassword } from 'react-native-keychain';
|
|
15
15
|
import { createPasskey, PasskeyStamper } from '@turnkey/react-native-passkey-stamper';
|
|
16
16
|
|
|
17
|
-
var version = "5.
|
|
17
|
+
var version = "5.16.1";
|
|
18
18
|
|
|
19
19
|
function _extends() {
|
|
20
20
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -241,6 +241,7 @@ public final class EmbeddedWebViewController: NSObject {
|
|
|
241
241
|
])
|
|
242
242
|
|
|
243
243
|
let window = UIWindow(frame: frame)
|
|
244
|
+
window.windowScene = foregroundWindowScene()
|
|
244
245
|
window.windowLevel = .alert
|
|
245
246
|
window.backgroundColor = .clear
|
|
246
247
|
window.isOpaque = false
|
|
@@ -380,6 +381,7 @@ public final class EmbeddedWebViewController: NSObject {
|
|
|
380
381
|
])
|
|
381
382
|
|
|
382
383
|
let window = UIWindow(frame: frame)
|
|
384
|
+
window.windowScene = foregroundWindowScene()
|
|
383
385
|
window.windowLevel = .alert
|
|
384
386
|
window.rootViewController = rootVC
|
|
385
387
|
window.makeKeyAndVisible()
|
|
@@ -407,6 +409,14 @@ public final class EmbeddedWebViewController: NSObject {
|
|
|
407
409
|
popupWindow = nil
|
|
408
410
|
}
|
|
409
411
|
|
|
412
|
+
// On iOS 27 a window that belongs to no scene is never composited in an app
|
|
413
|
+
// that adopts the UIScene lifecycle. Returns nil in apps without scenes,
|
|
414
|
+
// which keeps the legacy sceneless window behavior.
|
|
415
|
+
private func foregroundWindowScene() -> UIWindowScene? {
|
|
416
|
+
let scenes = UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }
|
|
417
|
+
return scenes.first { $0.activationState == .foregroundActive } ?? scenes.first
|
|
418
|
+
}
|
|
419
|
+
|
|
410
420
|
private func safariLikeUserAgent() -> String {
|
|
411
421
|
let osVersion = ProcessInfo.processInfo.operatingSystemVersion
|
|
412
422
|
let versionString = "\(osVersion.majorVersion)_\(osVersion.minorVersion)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/legacy-react-native-extension",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.1",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@turnkey/react-native-passkey-stamper": "1.2.7",
|
|
19
19
|
"@react-native-documents/picker": "^11.0.0",
|
|
20
20
|
"react-native-fs": ">=2.20.0",
|
|
21
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
22
|
-
"@dynamic-labs/legacy-client": "5.
|
|
23
|
-
"@dynamic-labs/logger": "5.
|
|
24
|
-
"@dynamic-labs/message-transport": "5.
|
|
25
|
-
"@dynamic-labs/webview-messages": "5.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "5.16.1",
|
|
22
|
+
"@dynamic-labs/legacy-client": "5.16.1",
|
|
23
|
+
"@dynamic-labs/logger": "5.16.1",
|
|
24
|
+
"@dynamic-labs/message-transport": "5.16.1",
|
|
25
|
+
"@dynamic-labs/webview-messages": "5.16.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=18.0.0 <20.0.0",
|