peachsim 0.1.683 → 0.1.685
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/cli/drivers/playwright-sim-host.ts +6 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +39 -7
- package/dist-lib/host/fetch-proxy-handler.cjs +12 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +6 -5
- package/dist-lib/host/fetch-proxy-overrides.mjs +5 -4
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +45 -13
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/host/fetch-proxy-handler.ts +10 -1
- package/src/host/fetch-proxy-overrides.ts +17 -13
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
readBrowserCompositeCaptureRequest,
|
|
3
3
|
resolveBrowserCompositeCdpClip,
|
|
4
4
|
} from '../../../peach-engine/src/capture/browser-composite'
|
|
5
|
+
import { WEBVIEW_FRAME_BOOTSTRAP_SOURCE } from '../../../peach-engine/src/components/native-ui/webview-frame-bridge'
|
|
5
6
|
import {
|
|
6
7
|
AUTH_BROWSER_EXTERNAL_NAVIGATION_EVENT,
|
|
7
8
|
AUTH_BROWSER_SESSION_FRAGMENT_KEY,
|
|
@@ -452,6 +453,11 @@ const cleanupProfile = () => {
|
|
|
452
453
|
await context.addInitScript({
|
|
453
454
|
content: 'Object.defineProperty(window, "__sootsimHostMeta", { value: ' + JSON.stringify(hostMeta) + ', configurable: true });' + bridgePortInject,
|
|
454
455
|
});
|
|
456
|
+
// a hosted WebView showing another origin's page is a cross-origin iframe
|
|
457
|
+
// the shell cannot script. playwright runs init scripts at document start in
|
|
458
|
+
// every frame, so this is where that page gets window.ReactNativeWebView
|
|
459
|
+
// before its own scripts, as a WKUserScript gives it on device.
|
|
460
|
+
await context.addInitScript({ content: ${JSON.stringify(WEBVIEW_FRAME_BOOTSTRAP_SOURCE)} });
|
|
455
461
|
// ASWebAuthenticationSession completes on a navigation to its callback
|
|
456
462
|
// scheme, which a browser popup cannot follow.
|
|
457
463
|
await forwardPopupSchemeNavigations(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -962,7 +962,7 @@ function rotateDevice(device, side) {
|
|
|
962
962
|
left: device.safeAreaInsets.top,
|
|
963
963
|
right: device.safeAreaInsets.top
|
|
964
964
|
} : device.platform === "ios" ? { top: 0, bottom: 0, left: 0, right: 0 } : {
|
|
965
|
-
top: device.
|
|
965
|
+
top: device.landscapeStatusBarHeight,
|
|
966
966
|
bottom: device.safeAreaInsets.bottom,
|
|
967
967
|
left: 0,
|
|
968
968
|
right: device.displayCutout.top
|
|
@@ -991,7 +991,7 @@ function rotateDevice(device, side) {
|
|
|
991
991
|
// the bars stay on the interface's top and bottom; a cutout's inset moves
|
|
992
992
|
// to whichever side the cutout turned to.
|
|
993
993
|
safeAreaInsets: side === "left" ? safeArea : { ...safeArea, left: safeArea.right, right: safeArea.left },
|
|
994
|
-
statusBarHeight: device.
|
|
994
|
+
statusBarHeight: device.landscapeStatusBarHeight,
|
|
995
995
|
// the indicator's band is the landscape bottom inset
|
|
996
996
|
homeIndicatorHeight: device.platform === "ios" && device.homeIndicatorHeight > 0 ? safeArea.bottom : device.homeIndicatorHeight
|
|
997
997
|
};
|
|
@@ -1048,7 +1048,7 @@ function listDeviceModels() {
|
|
|
1048
1048
|
function getRuntimePlatform(model) {
|
|
1049
1049
|
return getDevice(model).platform;
|
|
1050
1050
|
}
|
|
1051
|
-
var LEGACY_HARDWARE_BUTTONS, PIXEL_HARDWARE_BUTTONS, GALAXY_HARDWARE_BUTTONS, ANDROID_GESTURE_NAV_BAR_HEIGHT, ANDROID_OS_VERSION, ANDROID_API_LEVEL, PIXEL_8_WIDTH, PIXEL_8_HEIGHT, PIXEL_8_STATUS_BAR_HEIGHT, DUO_DIVISION_REGION_WIDTH, devices, DEFAULT_DEVICE, DEFAULT_DEVICE_BY_PLATFORM;
|
|
1051
|
+
var LEGACY_HARDWARE_BUTTONS, PIXEL_HARDWARE_BUTTONS, GALAXY_HARDWARE_BUTTONS, ANDROID_GESTURE_NAV_BAR_HEIGHT, ANDROID_OS_VERSION, ANDROID_API_LEVEL, PIXEL_8_WIDTH, PIXEL_8_HEIGHT, PIXEL_8_STATUS_BAR_HEIGHT, PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT, DUO_DIVISION_REGION_WIDTH, devices, DEFAULT_DEVICE, DEFAULT_DEVICE_BY_PLATFORM;
|
|
1052
1052
|
var init_devices = __esm({
|
|
1053
1053
|
"../peach-engine/src/settings/devices.ts"() {
|
|
1054
1054
|
"use strict";
|
|
@@ -1082,6 +1082,7 @@ var init_devices = __esm({
|
|
|
1082
1082
|
PIXEL_8_WIDTH = 1080 / 2.625;
|
|
1083
1083
|
PIXEL_8_HEIGHT = 2400 / 2.625;
|
|
1084
1084
|
PIXEL_8_STATUS_BAR_HEIGHT = 132 / 2.625;
|
|
1085
|
+
PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
|
|
1085
1086
|
DUO_DIVISION_REGION_WIDTH = 40;
|
|
1086
1087
|
devices = {
|
|
1087
1088
|
"canvas-workspace": iosDevice({
|
|
@@ -1091,6 +1092,7 @@ var init_devices = __esm({
|
|
|
1091
1092
|
height: 900,
|
|
1092
1093
|
scale: 1,
|
|
1093
1094
|
statusBarHeight: 0,
|
|
1095
|
+
landscapeStatusBarHeight: 0,
|
|
1094
1096
|
homeIndicatorHeight: 0,
|
|
1095
1097
|
cornerRadius: cornerRadii(0),
|
|
1096
1098
|
continuousCornerRadius: cornerRadii(0),
|
|
@@ -1117,6 +1119,7 @@ var init_devices = __esm({
|
|
|
1117
1119
|
height: 667,
|
|
1118
1120
|
scale: 2,
|
|
1119
1121
|
statusBarHeight: 20,
|
|
1122
|
+
landscapeStatusBarHeight: 0,
|
|
1120
1123
|
homeIndicatorHeight: 0,
|
|
1121
1124
|
cornerRadius: cornerRadii(0),
|
|
1122
1125
|
continuousCornerRadius: cornerRadii(0),
|
|
@@ -1138,6 +1141,7 @@ var init_devices = __esm({
|
|
|
1138
1141
|
height: 844,
|
|
1139
1142
|
scale: 3,
|
|
1140
1143
|
statusBarHeight: 47,
|
|
1144
|
+
landscapeStatusBarHeight: 0,
|
|
1141
1145
|
homeIndicatorHeight: 34,
|
|
1142
1146
|
cornerRadius: cornerRadii(46.2),
|
|
1143
1147
|
continuousCornerRadius: cornerRadii(67.462),
|
|
@@ -1161,6 +1165,7 @@ var init_devices = __esm({
|
|
|
1161
1165
|
height: 852,
|
|
1162
1166
|
scale: 3,
|
|
1163
1167
|
statusBarHeight: 59,
|
|
1168
|
+
landscapeStatusBarHeight: 0,
|
|
1164
1169
|
homeIndicatorHeight: 34,
|
|
1165
1170
|
cornerRadius: cornerRadii(53.9),
|
|
1166
1171
|
continuousCornerRadius: cornerRadii(73.402),
|
|
@@ -1185,6 +1190,7 @@ var init_devices = __esm({
|
|
|
1185
1190
|
height: 932,
|
|
1186
1191
|
scale: 3,
|
|
1187
1192
|
statusBarHeight: 59,
|
|
1193
|
+
landscapeStatusBarHeight: 0,
|
|
1188
1194
|
homeIndicatorHeight: 34,
|
|
1189
1195
|
cornerRadius: cornerRadii(53.9),
|
|
1190
1196
|
continuousCornerRadius: cornerRadii(74.654),
|
|
@@ -1209,6 +1215,7 @@ var init_devices = __esm({
|
|
|
1209
1215
|
height: 852,
|
|
1210
1216
|
scale: 3,
|
|
1211
1217
|
statusBarHeight: 59,
|
|
1218
|
+
landscapeStatusBarHeight: 0,
|
|
1212
1219
|
homeIndicatorHeight: 34,
|
|
1213
1220
|
cornerRadius: cornerRadii(53.9),
|
|
1214
1221
|
continuousCornerRadius: cornerRadii(73.402),
|
|
@@ -1233,6 +1240,7 @@ var init_devices = __esm({
|
|
|
1233
1240
|
height: 932,
|
|
1234
1241
|
scale: 3,
|
|
1235
1242
|
statusBarHeight: 59,
|
|
1243
|
+
landscapeStatusBarHeight: 0,
|
|
1236
1244
|
homeIndicatorHeight: 34,
|
|
1237
1245
|
cornerRadius: cornerRadii(53.9),
|
|
1238
1246
|
continuousCornerRadius: cornerRadii(74.654),
|
|
@@ -1257,6 +1265,7 @@ var init_devices = __esm({
|
|
|
1257
1265
|
height: 852,
|
|
1258
1266
|
scale: 3,
|
|
1259
1267
|
statusBarHeight: 59,
|
|
1268
|
+
landscapeStatusBarHeight: 0,
|
|
1260
1269
|
homeIndicatorHeight: 34,
|
|
1261
1270
|
// 2026-07-10: cornerRadius corrected 58 → 53.9 to Apple's own framebuffer
|
|
1262
1271
|
// mask (extracted from the simdevicetype bundle PDF; see
|
|
@@ -1285,6 +1294,7 @@ var init_devices = __esm({
|
|
|
1285
1294
|
height: 932,
|
|
1286
1295
|
scale: 3,
|
|
1287
1296
|
statusBarHeight: 59,
|
|
1297
|
+
landscapeStatusBarHeight: 0,
|
|
1288
1298
|
homeIndicatorHeight: 34,
|
|
1289
1299
|
cornerRadius: cornerRadii(53.9),
|
|
1290
1300
|
continuousCornerRadius: cornerRadii(74.654),
|
|
@@ -1311,6 +1321,7 @@ var init_devices = __esm({
|
|
|
1311
1321
|
// ios 26.4 screenshots on the 402x874 dynamic island pro profile place
|
|
1312
1322
|
// app content at y=186px, i.e. 62 logical pt at 3x.
|
|
1313
1323
|
statusBarHeight: 62,
|
|
1324
|
+
landscapeStatusBarHeight: 0,
|
|
1314
1325
|
homeIndicatorHeight: 34,
|
|
1315
1326
|
cornerRadius: cornerRadii(61),
|
|
1316
1327
|
continuousCornerRadius: cornerRadii(84.661),
|
|
@@ -1338,6 +1349,7 @@ var init_devices = __esm({
|
|
|
1338
1349
|
// on the 440x956 dynamic island max profile. the 393x852 iphone 16 oracle
|
|
1339
1350
|
// remains at the 59pt profile.
|
|
1340
1351
|
statusBarHeight: 62,
|
|
1352
|
+
landscapeStatusBarHeight: 0,
|
|
1341
1353
|
homeIndicatorHeight: 34,
|
|
1342
1354
|
cornerRadius: cornerRadii(61.3),
|
|
1343
1355
|
continuousCornerRadius: cornerRadii(85.163),
|
|
@@ -1362,6 +1374,7 @@ var init_devices = __esm({
|
|
|
1362
1374
|
height: 874,
|
|
1363
1375
|
scale: 3,
|
|
1364
1376
|
statusBarHeight: 59,
|
|
1377
|
+
landscapeStatusBarHeight: 0,
|
|
1365
1378
|
homeIndicatorHeight: 34,
|
|
1366
1379
|
cornerRadius: cornerRadii(61),
|
|
1367
1380
|
continuousCornerRadius: cornerRadii(84.661),
|
|
@@ -1390,6 +1403,7 @@ var init_devices = __esm({
|
|
|
1390
1403
|
height: 912,
|
|
1391
1404
|
scale: 3,
|
|
1392
1405
|
statusBarHeight: 59,
|
|
1406
|
+
landscapeStatusBarHeight: 0,
|
|
1393
1407
|
homeIndicatorHeight: 34,
|
|
1394
1408
|
cornerRadius: cornerRadii(64.6),
|
|
1395
1409
|
continuousCornerRadius: cornerRadii(88.313),
|
|
@@ -1433,6 +1447,7 @@ var init_devices = __esm({
|
|
|
1433
1447
|
// the same 402x874 panel and the 17 pro max the same island, and both
|
|
1434
1448
|
// already say 62; this entry was the table's only 59.
|
|
1435
1449
|
statusBarHeight: 62,
|
|
1450
|
+
landscapeStatusBarHeight: 0,
|
|
1436
1451
|
homeIndicatorHeight: 34,
|
|
1437
1452
|
cornerRadius: cornerRadii(61),
|
|
1438
1453
|
continuousCornerRadius: cornerRadii(84.661),
|
|
@@ -1463,6 +1478,7 @@ var init_devices = __esm({
|
|
|
1463
1478
|
// same ios 26.4 440x956 dynamic island max profile as the measured
|
|
1464
1479
|
// iphone 16 pro max screens proof oracle.
|
|
1465
1480
|
statusBarHeight: 62,
|
|
1481
|
+
landscapeStatusBarHeight: 0,
|
|
1466
1482
|
homeIndicatorHeight: 34,
|
|
1467
1483
|
cornerRadius: cornerRadii(61.3),
|
|
1468
1484
|
continuousCornerRadius: cornerRadii(85.163),
|
|
@@ -1492,6 +1508,7 @@ var init_devices = __esm({
|
|
|
1492
1508
|
height: 678,
|
|
1493
1509
|
scale: 3,
|
|
1494
1510
|
statusBarHeight: 66,
|
|
1511
|
+
landscapeStatusBarHeight: 0,
|
|
1495
1512
|
// the ios 27.1 duo simulator draws the gesture home indicator in both
|
|
1496
1513
|
// postures: a 167pt x 5pt pill 8pt above the display bottom on the
|
|
1497
1514
|
// cover, sized by the same rule as the other iphones (HomeIndicator).
|
|
@@ -1560,6 +1577,7 @@ var init_devices = __esm({
|
|
|
1560
1577
|
// was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
|
|
1561
1578
|
// was 10; this field is the portrait bar.
|
|
1562
1579
|
statusBarHeight: 32,
|
|
1580
|
+
landscapeStatusBarHeight: 32,
|
|
1563
1581
|
// portrait and landscape safeAreaInsets.bottom were both 20. the probe
|
|
1564
1582
|
// has no separate home-indicator height.
|
|
1565
1583
|
homeIndicatorHeight: 20,
|
|
@@ -1590,6 +1608,7 @@ var init_devices = __esm({
|
|
|
1590
1608
|
height: PIXEL_8_HEIGHT,
|
|
1591
1609
|
scale: 2.625,
|
|
1592
1610
|
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
1611
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
1593
1612
|
homeIndicatorHeight: 0,
|
|
1594
1613
|
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
1595
1614
|
// not measured on an android emulator yet: this is the iphone 16 figure
|
|
@@ -1639,6 +1658,7 @@ var init_devices = __esm({
|
|
|
1639
1658
|
height: PIXEL_8_HEIGHT,
|
|
1640
1659
|
scale: 2.625,
|
|
1641
1660
|
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
1661
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
1642
1662
|
homeIndicatorHeight: 0,
|
|
1643
1663
|
navigationBarHeight: 48,
|
|
1644
1664
|
// not measured on an android emulator yet: this is the iphone 16 figure
|
|
@@ -1685,6 +1705,7 @@ var init_devices = __esm({
|
|
|
1685
1705
|
height: 997,
|
|
1686
1706
|
scale: 3,
|
|
1687
1707
|
statusBarHeight: 40,
|
|
1708
|
+
landscapeStatusBarHeight: 40,
|
|
1688
1709
|
homeIndicatorHeight: 0,
|
|
1689
1710
|
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
1690
1711
|
// not measured on an android emulator yet: this is the iphone 16 figure
|
|
@@ -1722,6 +1743,7 @@ var init_devices = __esm({
|
|
|
1722
1743
|
height: 808,
|
|
1723
1744
|
scale: 3,
|
|
1724
1745
|
statusBarHeight: 40,
|
|
1746
|
+
landscapeStatusBarHeight: 40,
|
|
1725
1747
|
homeIndicatorHeight: 0,
|
|
1726
1748
|
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
1727
1749
|
// not measured on an android emulator yet: this is the iphone 16 figure
|
|
@@ -1760,6 +1782,7 @@ var init_devices = __esm({
|
|
|
1760
1782
|
height: 780,
|
|
1761
1783
|
scale: 3,
|
|
1762
1784
|
statusBarHeight: 36,
|
|
1785
|
+
landscapeStatusBarHeight: 36,
|
|
1763
1786
|
homeIndicatorHeight: 0,
|
|
1764
1787
|
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
1765
1788
|
// not measured on an android emulator yet: this is the iphone 16 figure
|
|
@@ -1799,6 +1822,7 @@ var init_devices = __esm({
|
|
|
1799
1822
|
height: 832,
|
|
1800
1823
|
scale: 3.75,
|
|
1801
1824
|
statusBarHeight: 36,
|
|
1825
|
+
landscapeStatusBarHeight: 36,
|
|
1802
1826
|
homeIndicatorHeight: 0,
|
|
1803
1827
|
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
1804
1828
|
// not measured on an android emulator yet: this is the iphone 16 figure
|
|
@@ -10073,6 +10097,7 @@ var import_promises4 = require("stream/promises");
|
|
|
10073
10097
|
init_backend_origin();
|
|
10074
10098
|
|
|
10075
10099
|
// src/host/fetch-proxy-overrides.ts
|
|
10100
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
10076
10101
|
var HOST_HEADER_OVERRIDES = [
|
|
10077
10102
|
{
|
|
10078
10103
|
hostSuffix: "uniswap.org",
|
|
@@ -10117,10 +10142,11 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
10117
10142
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
10118
10143
|
return replacement ? new URL(replacement) : requested;
|
|
10119
10144
|
}
|
|
10120
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
10145
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
10121
10146
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
10122
10147
|
return {
|
|
10123
10148
|
"accept-encoding": "identity",
|
|
10149
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
10124
10150
|
...hostOverrides?.headers
|
|
10125
10151
|
};
|
|
10126
10152
|
}
|
|
@@ -10148,7 +10174,8 @@ var STRIP_FETCH_PROXY_HEADERS = /* @__PURE__ */ new Set([
|
|
|
10148
10174
|
"sec-fetch-dest",
|
|
10149
10175
|
"sec-ch-ua",
|
|
10150
10176
|
"sec-ch-ua-mobile",
|
|
10151
|
-
"sec-ch-ua-platform"
|
|
10177
|
+
"sec-ch-ua-platform",
|
|
10178
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER
|
|
10152
10179
|
]);
|
|
10153
10180
|
var FETCH_PROXY_CORS_HEADERS = {
|
|
10154
10181
|
"access-control-allow-origin": "*",
|
|
@@ -10181,7 +10208,12 @@ function buildFetchProxyHeaders(reqHeaders, targetUrl) {
|
|
|
10181
10208
|
if (STRIP_FETCH_PROXY_HEADERS.has(key.toLowerCase())) continue;
|
|
10182
10209
|
headers[key] = Array.isArray(value) ? value.join(", ") : value;
|
|
10183
10210
|
}
|
|
10184
|
-
|
|
10211
|
+
const rawNativeUserAgent = reqHeaders[FETCH_PROXY_NATIVE_USER_AGENT_HEADER];
|
|
10212
|
+
const nativeUserAgent = Array.isArray(rawNativeUserAgent) ? rawNativeUserAgent[0] : rawNativeUserAgent;
|
|
10213
|
+
Object.assign(
|
|
10214
|
+
headers,
|
|
10215
|
+
targetUrl ? getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) : {}
|
|
10216
|
+
);
|
|
10185
10217
|
return headers;
|
|
10186
10218
|
}
|
|
10187
10219
|
function buildAppApiProxyHeaders(reqHeaders, targetUrl) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -56,6 +56,7 @@ function isLoopbackHost(hostname) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// src/host/fetch-proxy-overrides.ts
|
|
59
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
59
60
|
var HOST_HEADER_OVERRIDES = [
|
|
60
61
|
{
|
|
61
62
|
hostSuffix: "uniswap.org",
|
|
@@ -100,10 +101,11 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
100
101
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
101
102
|
return replacement ? new URL(replacement) : requested;
|
|
102
103
|
}
|
|
103
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
104
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
104
105
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
105
106
|
return {
|
|
106
107
|
"accept-encoding": "identity",
|
|
108
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
107
109
|
...hostOverrides?.headers
|
|
108
110
|
};
|
|
109
111
|
}
|
|
@@ -131,7 +133,8 @@ var STRIP_FETCH_PROXY_HEADERS = /* @__PURE__ */ new Set([
|
|
|
131
133
|
"sec-fetch-dest",
|
|
132
134
|
"sec-ch-ua",
|
|
133
135
|
"sec-ch-ua-mobile",
|
|
134
|
-
"sec-ch-ua-platform"
|
|
136
|
+
"sec-ch-ua-platform",
|
|
137
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER
|
|
135
138
|
]);
|
|
136
139
|
var FETCH_PROXY_CORS_HEADERS = {
|
|
137
140
|
"access-control-allow-origin": "*",
|
|
@@ -164,7 +167,12 @@ function buildFetchProxyHeaders(reqHeaders, targetUrl) {
|
|
|
164
167
|
if (STRIP_FETCH_PROXY_HEADERS.has(key.toLowerCase())) continue;
|
|
165
168
|
headers[key] = Array.isArray(value) ? value.join(", ") : value;
|
|
166
169
|
}
|
|
167
|
-
|
|
170
|
+
const rawNativeUserAgent = reqHeaders[FETCH_PROXY_NATIVE_USER_AGENT_HEADER];
|
|
171
|
+
const nativeUserAgent = Array.isArray(rawNativeUserAgent) ? rawNativeUserAgent[0] : rawNativeUserAgent;
|
|
172
|
+
Object.assign(
|
|
173
|
+
headers,
|
|
174
|
+
targetUrl ? getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) : {}
|
|
175
|
+
);
|
|
168
176
|
return headers;
|
|
169
177
|
}
|
|
170
178
|
function buildAppApiProxyHeaders(reqHeaders, targetUrl) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -22,13 +22,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
// src/host/fetch-proxy-overrides.ts
|
|
23
23
|
var fetch_proxy_overrides_exports = {};
|
|
24
24
|
__export(fetch_proxy_overrides_exports, {
|
|
25
|
-
|
|
25
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER: () => FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
26
26
|
PUBLIC_RPC_TENANT: () => PUBLIC_RPC_TENANT,
|
|
27
27
|
getFetchProxyTargetHeaders: () => getFetchProxyTargetHeaders,
|
|
28
28
|
resolveFetchProxyTargetUrl: () => resolveFetchProxyTargetUrl
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(fetch_proxy_overrides_exports);
|
|
31
|
-
var
|
|
31
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
32
32
|
var HOST_HEADER_OVERRIDES = [
|
|
33
33
|
{
|
|
34
34
|
hostSuffix: "uniswap.org",
|
|
@@ -73,16 +73,17 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
73
73
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
74
74
|
return replacement ? new URL(replacement) : requested;
|
|
75
75
|
}
|
|
76
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
76
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
77
77
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
78
78
|
return {
|
|
79
79
|
"accept-encoding": "identity",
|
|
80
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
80
81
|
...hostOverrides?.headers
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
85
|
0 && (module.exports = {
|
|
85
|
-
|
|
86
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
86
87
|
PUBLIC_RPC_TENANT,
|
|
87
88
|
getFetchProxyTargetHeaders,
|
|
88
89
|
resolveFetchProxyTargetUrl
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/host/fetch-proxy-overrides.ts
|
|
4
|
-
var
|
|
4
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
5
5
|
var HOST_HEADER_OVERRIDES = [
|
|
6
6
|
{
|
|
7
7
|
hostSuffix: "uniswap.org",
|
|
@@ -46,15 +46,16 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
46
46
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
47
47
|
return replacement ? new URL(replacement) : requested;
|
|
48
48
|
}
|
|
49
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
49
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
50
50
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
51
51
|
return {
|
|
52
52
|
"accept-encoding": "identity",
|
|
53
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
53
54
|
...hostOverrides?.headers
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
58
59
|
PUBLIC_RPC_TENANT,
|
|
59
60
|
getFetchProxyTargetHeaders,
|
|
60
61
|
resolveFetchProxyTargetUrl
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.685 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|