peachsim 0.1.800 → 0.1.809
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 +2 -0
- package/cli/outbound-endpoints.ts +0 -4
- 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/bundle-channel.cjs +132 -10
- 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 +46 -7
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +132 -10
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +252 -108
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- 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 +252 -108
- package/dist-lib/swift-compile.cjs +141 -11
- package/dist-lib/swift-compile.mjs +140 -11
- 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 +132 -10
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +119 -0
- package/dist-lib/worklet-executable.mjs +93 -0
- package/package.json +9 -1
- package/src/swift-compile.ts +160 -11
- package/src/vite-plugin.ts +5 -2
- package/src/worklet-executable.ts +125 -0
- package/src/worklets-babel.ts +47 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.809 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2503,7 +2503,7 @@ var init_devices = __esm({
|
|
|
2503
2503
|
PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
|
|
2504
2504
|
DUO_DIVISION_REGION_WIDTH = 40;
|
|
2505
2505
|
devices = {
|
|
2506
|
-
"canvas-workspace": iosDevice({
|
|
2506
|
+
"canvas-workspace": /* @__PURE__ */ iosDevice({
|
|
2507
2507
|
model: "canvas-workspace",
|
|
2508
2508
|
name: "Canvas Workspace",
|
|
2509
2509
|
width: 1440,
|
|
@@ -2512,9 +2512,9 @@ var init_devices = __esm({
|
|
|
2512
2512
|
statusBarHeight: 0,
|
|
2513
2513
|
landscapeStatusBarHeight: 0,
|
|
2514
2514
|
homeIndicatorHeight: 0,
|
|
2515
|
-
cornerRadius: cornerRadii(0),
|
|
2516
|
-
continuousCornerRadius: cornerRadii(0),
|
|
2517
|
-
frameInsets: uniformFrameInsets(16),
|
|
2515
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
2516
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
2517
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
|
|
2518
2518
|
dynamicIsland: null,
|
|
2519
2519
|
safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
|
|
2520
2520
|
iosVersion: "27.0",
|
|
@@ -2522,7 +2522,7 @@ var init_devices = __esm({
|
|
|
2522
2522
|
// height so the experimental profile still shows a keyboard.
|
|
2523
2523
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2524
2524
|
physicalPPI: 110,
|
|
2525
|
-
hardwareButtons: modernButtons(
|
|
2525
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2526
2526
|
[185.8, 41.7],
|
|
2527
2527
|
[258.2, 67.6],
|
|
2528
2528
|
[344, 67.6],
|
|
@@ -2530,7 +2530,7 @@ var init_devices = __esm({
|
|
|
2530
2530
|
),
|
|
2531
2531
|
experimental: true
|
|
2532
2532
|
}),
|
|
2533
|
-
"iphone-se": iosDevice({
|
|
2533
|
+
"iphone-se": /* @__PURE__ */ iosDevice({
|
|
2534
2534
|
model: "iphone-se",
|
|
2535
2535
|
name: "iPhone SE",
|
|
2536
2536
|
width: 375,
|
|
@@ -2539,12 +2539,12 @@ var init_devices = __esm({
|
|
|
2539
2539
|
statusBarHeight: 20,
|
|
2540
2540
|
landscapeStatusBarHeight: 0,
|
|
2541
2541
|
homeIndicatorHeight: 0,
|
|
2542
|
-
cornerRadius: cornerRadii(0),
|
|
2543
|
-
continuousCornerRadius: cornerRadii(0),
|
|
2542
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
2543
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
2544
2544
|
// legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
|
|
2545
2545
|
// shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
|
|
2546
2546
|
// modern-path value and mirror the SE's ~28.7pt side bezel.
|
|
2547
|
-
frameInsets: uniformFrameInsets(28.7),
|
|
2547
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
|
|
2548
2548
|
dynamicIsland: null,
|
|
2549
2549
|
safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
|
|
2550
2550
|
iosVersion: "27.0",
|
|
@@ -2552,7 +2552,7 @@ var init_devices = __esm({
|
|
|
2552
2552
|
physicalPPI: 326,
|
|
2553
2553
|
hardwareButtons: LEGACY_HARDWARE_BUTTONS
|
|
2554
2554
|
}),
|
|
2555
|
-
"iphone-14": iosDevice({
|
|
2555
|
+
"iphone-14": /* @__PURE__ */ iosDevice({
|
|
2556
2556
|
model: "iphone-14",
|
|
2557
2557
|
name: "iPhone 14",
|
|
2558
2558
|
width: 390,
|
|
@@ -2561,22 +2561,22 @@ var init_devices = __esm({
|
|
|
2561
2561
|
statusBarHeight: 47,
|
|
2562
2562
|
landscapeStatusBarHeight: 0,
|
|
2563
2563
|
homeIndicatorHeight: 34,
|
|
2564
|
-
cornerRadius: cornerRadii(46.2),
|
|
2565
|
-
continuousCornerRadius: cornerRadii(67.462),
|
|
2566
|
-
frameInsets: uniformFrameInsets(19.5),
|
|
2564
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
|
|
2565
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
|
|
2566
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
|
|
2567
2567
|
dynamicIsland: null,
|
|
2568
2568
|
safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
|
|
2569
2569
|
iosVersion: "27.0",
|
|
2570
2570
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2571
2571
|
physicalPPI: 460,
|
|
2572
|
-
hardwareButtons: modernButtons(
|
|
2572
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2573
2573
|
[141.7, 29.7],
|
|
2574
2574
|
[205.9, 69.6],
|
|
2575
2575
|
[289.5, 69.6],
|
|
2576
2576
|
[228.9, 114.5]
|
|
2577
2577
|
)
|
|
2578
2578
|
}),
|
|
2579
|
-
"iphone-15": iosDevice({
|
|
2579
|
+
"iphone-15": /* @__PURE__ */ iosDevice({
|
|
2580
2580
|
model: "iphone-15",
|
|
2581
2581
|
name: "iPhone 15",
|
|
2582
2582
|
width: 393,
|
|
@@ -2585,23 +2585,23 @@ var init_devices = __esm({
|
|
|
2585
2585
|
statusBarHeight: 59,
|
|
2586
2586
|
landscapeStatusBarHeight: 0,
|
|
2587
2587
|
homeIndicatorHeight: 34,
|
|
2588
|
-
cornerRadius: cornerRadii(53.9),
|
|
2589
|
-
continuousCornerRadius: cornerRadii(73.402),
|
|
2590
|
-
frameInsets: uniformFrameInsets(18.2),
|
|
2588
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
2589
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
2590
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
|
|
2591
2591
|
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
2592
2592
|
statusRowCenter: 32.75,
|
|
2593
2593
|
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
2594
2594
|
iosVersion: "27.0",
|
|
2595
2595
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2596
2596
|
physicalPPI: 460,
|
|
2597
|
-
hardwareButtons: modernButtons(
|
|
2597
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2598
2598
|
[171.7, 32],
|
|
2599
2599
|
[235.8, 65.3],
|
|
2600
2600
|
[320.5, 65.3],
|
|
2601
2601
|
[280.6, 105.2]
|
|
2602
2602
|
)
|
|
2603
2603
|
}),
|
|
2604
|
-
"iphone-15-plus": iosDevice({
|
|
2604
|
+
"iphone-15-plus": /* @__PURE__ */ iosDevice({
|
|
2605
2605
|
model: "iphone-15-plus",
|
|
2606
2606
|
name: "iPhone 15 Plus",
|
|
2607
2607
|
width: 430,
|
|
@@ -2610,23 +2610,23 @@ var init_devices = __esm({
|
|
|
2610
2610
|
statusBarHeight: 59,
|
|
2611
2611
|
landscapeStatusBarHeight: 0,
|
|
2612
2612
|
homeIndicatorHeight: 34,
|
|
2613
|
-
cornerRadius: cornerRadii(53.9),
|
|
2614
|
-
continuousCornerRadius: cornerRadii(74.654),
|
|
2615
|
-
frameInsets: uniformFrameInsets(17.3),
|
|
2613
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
2614
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
2615
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
|
|
2616
2616
|
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
2617
2617
|
statusRowCenter: 30.05,
|
|
2618
2618
|
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
2619
2619
|
iosVersion: "27.0",
|
|
2620
2620
|
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
2621
2621
|
physicalPPI: 460,
|
|
2622
|
-
hardwareButtons: modernButtons(
|
|
2622
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2623
2623
|
[172.1, 33],
|
|
2624
2624
|
[236.1, 66.6],
|
|
2625
2625
|
[321.2, 66.6],
|
|
2626
2626
|
[281, 106.8]
|
|
2627
2627
|
)
|
|
2628
2628
|
}),
|
|
2629
|
-
"iphone-15-pro": iosDevice({
|
|
2629
|
+
"iphone-15-pro": /* @__PURE__ */ iosDevice({
|
|
2630
2630
|
model: "iphone-15-pro",
|
|
2631
2631
|
name: "iPhone 15 Pro",
|
|
2632
2632
|
width: 393,
|
|
@@ -2635,23 +2635,23 @@ var init_devices = __esm({
|
|
|
2635
2635
|
statusBarHeight: 59,
|
|
2636
2636
|
landscapeStatusBarHeight: 0,
|
|
2637
2637
|
homeIndicatorHeight: 34,
|
|
2638
|
-
cornerRadius: cornerRadii(53.9),
|
|
2639
|
-
continuousCornerRadius: cornerRadii(73.402),
|
|
2640
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2638
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
2639
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
2640
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2641
2641
|
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
2642
2642
|
statusRowCenter: 32.4,
|
|
2643
2643
|
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
2644
2644
|
iosVersion: "27.0",
|
|
2645
2645
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2646
2646
|
physicalPPI: 460,
|
|
2647
|
-
hardwareButtons: modernButtons(
|
|
2647
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2648
2648
|
[159.1, 31.5],
|
|
2649
2649
|
[220.1, 61.9],
|
|
2650
2650
|
[299, 61.9],
|
|
2651
2651
|
[260.8, 98.9]
|
|
2652
2652
|
)
|
|
2653
2653
|
}),
|
|
2654
|
-
"iphone-15-pro-max": iosDevice({
|
|
2654
|
+
"iphone-15-pro-max": /* @__PURE__ */ iosDevice({
|
|
2655
2655
|
model: "iphone-15-pro-max",
|
|
2656
2656
|
name: "iPhone 15 Pro Max",
|
|
2657
2657
|
width: 430,
|
|
@@ -2660,23 +2660,23 @@ var init_devices = __esm({
|
|
|
2660
2660
|
statusBarHeight: 59,
|
|
2661
2661
|
landscapeStatusBarHeight: 0,
|
|
2662
2662
|
homeIndicatorHeight: 34,
|
|
2663
|
-
cornerRadius: cornerRadii(53.9),
|
|
2664
|
-
continuousCornerRadius: cornerRadii(74.654),
|
|
2665
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2663
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
2664
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
2665
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2666
2666
|
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
2667
2667
|
statusRowCenter: 32.3,
|
|
2668
2668
|
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
2669
2669
|
iosVersion: "27.0",
|
|
2670
2670
|
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
2671
2671
|
physicalPPI: 460,
|
|
2672
|
-
hardwareButtons: modernButtons(
|
|
2672
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2673
2673
|
[173.3, 32.2],
|
|
2674
2674
|
[253.4, 61.7],
|
|
2675
2675
|
[343.3, 61.7],
|
|
2676
2676
|
[268.5, 98.5]
|
|
2677
2677
|
)
|
|
2678
2678
|
}),
|
|
2679
|
-
"iphone-16": iosDevice({
|
|
2679
|
+
"iphone-16": /* @__PURE__ */ iosDevice({
|
|
2680
2680
|
model: "iphone-16",
|
|
2681
2681
|
name: "iPhone 16",
|
|
2682
2682
|
width: 393,
|
|
@@ -2689,23 +2689,23 @@ var init_devices = __esm({
|
|
|
2689
2689
|
// mask (extracted from the simdevicetype bundle PDF; see
|
|
2690
2690
|
// packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
|
|
2691
2691
|
// calibrated conformance-oracle layout fields below are unchanged.
|
|
2692
|
-
cornerRadius: cornerRadii(53.9),
|
|
2693
|
-
continuousCornerRadius: cornerRadii(73.402),
|
|
2694
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2692
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
2693
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
2694
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2695
2695
|
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
2696
2696
|
statusRowCenter: 29.65,
|
|
2697
2697
|
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
2698
2698
|
iosVersion: "27.0",
|
|
2699
2699
|
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
2700
2700
|
physicalPPI: 460,
|
|
2701
|
-
hardwareButtons: modernButtons(
|
|
2701
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2702
2702
|
[159.1, 31.5],
|
|
2703
2703
|
[220.1, 61.9],
|
|
2704
2704
|
[299, 61.9],
|
|
2705
2705
|
[260.8, 98.9]
|
|
2706
2706
|
)
|
|
2707
2707
|
}),
|
|
2708
|
-
"iphone-16-plus": iosDevice({
|
|
2708
|
+
"iphone-16-plus": /* @__PURE__ */ iosDevice({
|
|
2709
2709
|
model: "iphone-16-plus",
|
|
2710
2710
|
name: "iPhone 16 Plus",
|
|
2711
2711
|
width: 430,
|
|
@@ -2714,23 +2714,23 @@ var init_devices = __esm({
|
|
|
2714
2714
|
statusBarHeight: 59,
|
|
2715
2715
|
landscapeStatusBarHeight: 0,
|
|
2716
2716
|
homeIndicatorHeight: 34,
|
|
2717
|
-
cornerRadius: cornerRadii(53.9),
|
|
2718
|
-
continuousCornerRadius: cornerRadii(74.654),
|
|
2719
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2717
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
2718
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
2719
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2720
2720
|
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
2721
2721
|
statusRowCenter: 30.05,
|
|
2722
2722
|
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
2723
2723
|
iosVersion: "27.0",
|
|
2724
2724
|
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
2725
2725
|
physicalPPI: 460,
|
|
2726
|
-
hardwareButtons: modernButtons(
|
|
2726
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2727
2727
|
[173.3, 32.2],
|
|
2728
2728
|
[253.4, 61.7],
|
|
2729
2729
|
[343.3, 61.7],
|
|
2730
2730
|
[268.5, 98.5]
|
|
2731
2731
|
)
|
|
2732
2732
|
}),
|
|
2733
|
-
"iphone-16-pro": iosDevice({
|
|
2733
|
+
"iphone-16-pro": /* @__PURE__ */ iosDevice({
|
|
2734
2734
|
model: "iphone-16-pro",
|
|
2735
2735
|
name: "iPhone 16 Pro",
|
|
2736
2736
|
width: 402,
|
|
@@ -2741,23 +2741,23 @@ var init_devices = __esm({
|
|
|
2741
2741
|
statusBarHeight: 62,
|
|
2742
2742
|
landscapeStatusBarHeight: 0,
|
|
2743
2743
|
homeIndicatorHeight: 34,
|
|
2744
|
-
cornerRadius: cornerRadii(61),
|
|
2745
|
-
continuousCornerRadius: cornerRadii(84.661),
|
|
2746
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2744
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
2745
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
2746
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2747
2747
|
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
2748
2748
|
statusRowCenter: 32.5,
|
|
2749
2749
|
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
2750
2750
|
iosVersion: "27.0",
|
|
2751
2751
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2752
2752
|
physicalPPI: 460,
|
|
2753
|
-
hardwareButtons: modernButtons(
|
|
2753
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2754
2754
|
[159.1, 31.5],
|
|
2755
2755
|
[220.1, 61.9],
|
|
2756
2756
|
[299, 61.9],
|
|
2757
2757
|
[260.8, 98.9]
|
|
2758
2758
|
)
|
|
2759
2759
|
}),
|
|
2760
|
-
"iphone-16-pro-max": iosDevice({
|
|
2760
|
+
"iphone-16-pro-max": /* @__PURE__ */ iosDevice({
|
|
2761
2761
|
model: "iphone-16-pro-max",
|
|
2762
2762
|
name: "iPhone 16 Pro Max",
|
|
2763
2763
|
width: 440,
|
|
@@ -2769,23 +2769,23 @@ var init_devices = __esm({
|
|
|
2769
2769
|
statusBarHeight: 62,
|
|
2770
2770
|
landscapeStatusBarHeight: 0,
|
|
2771
2771
|
homeIndicatorHeight: 34,
|
|
2772
|
-
cornerRadius: cornerRadii(61.3),
|
|
2773
|
-
continuousCornerRadius: cornerRadii(85.163),
|
|
2774
|
-
frameInsets: uniformFrameInsets(15.4),
|
|
2772
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
2773
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
2774
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
2775
2775
|
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
2776
2776
|
statusRowCenter: 33,
|
|
2777
2777
|
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
2778
2778
|
iosVersion: "27.0",
|
|
2779
2779
|
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
2780
2780
|
physicalPPI: 460,
|
|
2781
|
-
hardwareButtons: modernButtons(
|
|
2781
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2782
2782
|
[178.8, 32.2],
|
|
2783
2783
|
[266.8, 61.8],
|
|
2784
2784
|
[352.7, 61.8],
|
|
2785
2785
|
[292.2, 98.3]
|
|
2786
2786
|
)
|
|
2787
2787
|
}),
|
|
2788
|
-
"iphone-17": iosDevice({
|
|
2788
|
+
"iphone-17": /* @__PURE__ */ iosDevice({
|
|
2789
2789
|
model: "iphone-17",
|
|
2790
2790
|
name: "iPhone 17",
|
|
2791
2791
|
width: 402,
|
|
@@ -2795,24 +2795,24 @@ var init_devices = __esm({
|
|
|
2795
2795
|
statusBarHeight: 62,
|
|
2796
2796
|
landscapeStatusBarHeight: 0,
|
|
2797
2797
|
homeIndicatorHeight: 34,
|
|
2798
|
-
cornerRadius: cornerRadii(61),
|
|
2799
|
-
continuousCornerRadius: cornerRadii(84.661),
|
|
2798
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
2799
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
2800
2800
|
// display border 1.44mm plus the visible flat housing rail.
|
|
2801
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2801
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2802
2802
|
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
2803
2803
|
statusRowCenter: 32.65,
|
|
2804
2804
|
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
2805
2805
|
iosVersion: "27.0",
|
|
2806
2806
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2807
2807
|
physicalPPI: 460,
|
|
2808
|
-
hardwareButtons: modernButtons(
|
|
2808
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2809
2809
|
[159.1, 31.5],
|
|
2810
2810
|
[220.1, 61.9],
|
|
2811
2811
|
[299, 61.9],
|
|
2812
2812
|
[260.8, 98.9]
|
|
2813
2813
|
)
|
|
2814
2814
|
}),
|
|
2815
|
-
"iphone-17-air": iosDevice({
|
|
2815
|
+
"iphone-17-air": /* @__PURE__ */ iosDevice({
|
|
2816
2816
|
model: "iphone-17-air",
|
|
2817
2817
|
// apple markets this as "iphone air" (not "iphone 17 air"). the real air
|
|
2818
2818
|
// is 420x912 with thin bezels and a lower-sitting island. it is not the
|
|
@@ -2827,8 +2827,8 @@ var init_devices = __esm({
|
|
|
2827
2827
|
statusBarHeight: 68,
|
|
2828
2828
|
landscapeStatusBarHeight: 0,
|
|
2829
2829
|
homeIndicatorHeight: 34,
|
|
2830
|
-
cornerRadius: cornerRadii(64.6),
|
|
2831
|
-
continuousCornerRadius: cornerRadii(88.313),
|
|
2830
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
|
|
2831
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
|
|
2832
2832
|
// WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
|
|
2833
2833
|
// read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
|
|
2834
2834
|
// the black display border plus however much housing rail you actually see
|
|
@@ -2844,21 +2844,21 @@ var init_devices = __esm({
|
|
|
2844
2844
|
// So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
|
|
2845
2845
|
// face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
|
|
2846
2846
|
// which is why it sits at 15.3 and the Air should not.
|
|
2847
|
-
frameInsets: uniformFrameInsets(10.7),
|
|
2847
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
|
|
2848
2848
|
dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
|
|
2849
2849
|
statusRowCenter: 39,
|
|
2850
2850
|
safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
|
|
2851
2851
|
iosVersion: "27.0",
|
|
2852
2852
|
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
2853
2853
|
physicalPPI: 460,
|
|
2854
|
-
hardwareButtons: modernButtons(
|
|
2854
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2855
2855
|
[178.8, 32.2],
|
|
2856
2856
|
[266.8, 61.8],
|
|
2857
2857
|
[352.7, 61.8],
|
|
2858
2858
|
[292.2, 98.3]
|
|
2859
2859
|
)
|
|
2860
2860
|
}),
|
|
2861
|
-
"iphone-17-pro": iosDevice({
|
|
2861
|
+
"iphone-17-pro": /* @__PURE__ */ iosDevice({
|
|
2862
2862
|
model: "iphone-17-pro",
|
|
2863
2863
|
name: "iPhone 17 Pro",
|
|
2864
2864
|
width: 402,
|
|
@@ -2871,27 +2871,27 @@ var init_devices = __esm({
|
|
|
2871
2871
|
statusBarHeight: 62,
|
|
2872
2872
|
landscapeStatusBarHeight: 0,
|
|
2873
2873
|
homeIndicatorHeight: 34,
|
|
2874
|
-
cornerRadius: cornerRadii(61),
|
|
2875
|
-
continuousCornerRadius: cornerRadii(84.661),
|
|
2874
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
2875
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
2876
2876
|
// the ios 27 simulator's ContainerRelativeShape at the root draws 62
|
|
2877
2877
|
// less its smallest inset from the display (54 at 8pt, 32 at 30pt).
|
|
2878
|
-
systemCornerRadius: cornerRadii(62),
|
|
2878
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
|
|
2879
2879
|
// display border 1.44mm plus the visible flat housing rail.
|
|
2880
|
-
frameInsets: uniformFrameInsets(15.3),
|
|
2880
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
2881
2881
|
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
2882
2882
|
statusRowCenter: 33,
|
|
2883
2883
|
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
2884
2884
|
iosVersion: "27.0",
|
|
2885
2885
|
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
2886
2886
|
physicalPPI: 460,
|
|
2887
|
-
hardwareButtons: modernButtons(
|
|
2887
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2888
2888
|
[159.1, 31.5],
|
|
2889
2889
|
[220.1, 61.9],
|
|
2890
2890
|
[299, 61.9],
|
|
2891
2891
|
[260.8, 98.9]
|
|
2892
2892
|
)
|
|
2893
2893
|
}),
|
|
2894
|
-
"iphone-17-pro-max": iosDevice({
|
|
2894
|
+
"iphone-17-pro-max": /* @__PURE__ */ iosDevice({
|
|
2895
2895
|
model: "iphone-17-pro-max",
|
|
2896
2896
|
name: "iPhone 17 Pro Max",
|
|
2897
2897
|
width: 440,
|
|
@@ -2902,17 +2902,17 @@ var init_devices = __esm({
|
|
|
2902
2902
|
statusBarHeight: 62,
|
|
2903
2903
|
landscapeStatusBarHeight: 0,
|
|
2904
2904
|
homeIndicatorHeight: 34,
|
|
2905
|
-
cornerRadius: cornerRadii(61.3),
|
|
2906
|
-
continuousCornerRadius: cornerRadii(85.163),
|
|
2905
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
2906
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
2907
2907
|
// display border 1.36mm plus the visible flat housing rail.
|
|
2908
|
-
frameInsets: uniformFrameInsets(15.4),
|
|
2908
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
2909
2909
|
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
2910
2910
|
statusRowCenter: 33,
|
|
2911
2911
|
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
2912
2912
|
iosVersion: "27.0",
|
|
2913
2913
|
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
2914
2914
|
physicalPPI: 460,
|
|
2915
|
-
hardwareButtons: modernButtons(
|
|
2915
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
2916
2916
|
[178.8, 32.2],
|
|
2917
2917
|
[266.8, 61.8],
|
|
2918
2918
|
[352.7, 61.8],
|
|
@@ -2923,7 +2923,7 @@ var init_devices = __esm({
|
|
|
2923
2923
|
// offered on contributor surfaces only while the 27 home and the hinge
|
|
2924
2924
|
// measurements are still settling (nate, 2026-09-15).
|
|
2925
2925
|
developmentOnly: true,
|
|
2926
|
-
|
|
2926
|
+
.../* @__PURE__ */ iosDevice({
|
|
2927
2927
|
model: "iphone-duo",
|
|
2928
2928
|
name: "iPhone Duo",
|
|
2929
2929
|
width: 466,
|
|
@@ -2973,7 +2973,7 @@ var init_devices = __esm({
|
|
|
2973
2973
|
keyboardPanelHeights: { qwerty: 252, pad: 256, emoji: 338 },
|
|
2974
2974
|
physicalPPI: 460,
|
|
2975
2975
|
// official model extraction for button positions is outside this slice.
|
|
2976
|
-
hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
|
|
2976
|
+
hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
|
|
2977
2977
|
posture: "closed",
|
|
2978
2978
|
supportedPostures: ["closed", "open"]
|
|
2979
2979
|
}),
|
|
@@ -2989,9 +2989,21 @@ var init_devices = __esm({
|
|
|
2989
2989
|
// frame and hardware buttons are not sourced yet, so this stays off the
|
|
2990
2990
|
// shipping picker the same way the duo does.
|
|
2991
2991
|
developmentOnly: true,
|
|
2992
|
-
|
|
2992
|
+
.../* @__PURE__ */ ipadProDevice(
|
|
2993
|
+
"ipad-pro-11",
|
|
2994
|
+
"iPad Pro 11-inch (M5)",
|
|
2995
|
+
834,
|
|
2996
|
+
1210,
|
|
2997
|
+
11
|
|
2998
|
+
)
|
|
2993
2999
|
},
|
|
2994
|
-
"ipad-pro-13":
|
|
3000
|
+
"ipad-pro-13": /* @__PURE__ */ ipadProDevice(
|
|
3001
|
+
"ipad-pro-13",
|
|
3002
|
+
"iPad Pro 13-inch (M5)",
|
|
3003
|
+
1032,
|
|
3004
|
+
1376,
|
|
3005
|
+
13
|
|
3006
|
+
),
|
|
2995
3007
|
"pixel-8": {
|
|
2996
3008
|
model: "pixel-8",
|
|
2997
3009
|
platform: "android",
|
|
@@ -3013,8 +3025,8 @@ var init_devices = __esm({
|
|
|
3013
3025
|
left: 0,
|
|
3014
3026
|
right: 0
|
|
3015
3027
|
},
|
|
3016
|
-
cornerRadius: cornerRadii(39),
|
|
3017
|
-
continuousCornerRadius: cornerRadii(39),
|
|
3028
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
3029
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
3018
3030
|
// android studio's pixel 8 device art places the 1080x2400 display at
|
|
3019
3031
|
// (49,55) in a 1187x2513 body. the right side button occupies the final
|
|
3020
3032
|
// 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
|
|
@@ -3063,8 +3075,8 @@ var init_devices = __esm({
|
|
|
3063
3075
|
left: 0,
|
|
3064
3076
|
right: 0
|
|
3065
3077
|
},
|
|
3066
|
-
cornerRadius: cornerRadii(39),
|
|
3067
|
-
continuousCornerRadius: cornerRadii(39),
|
|
3078
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
3079
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
3068
3080
|
frameInsets: {
|
|
3069
3081
|
top: 55 / 2.625,
|
|
3070
3082
|
right: 50 / 2.625,
|
|
@@ -3105,10 +3117,10 @@ var init_devices = __esm({
|
|
|
3105
3117
|
keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
|
|
3106
3118
|
navigationBarMode: "gesture",
|
|
3107
3119
|
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
3108
|
-
cornerRadius: cornerRadii(41),
|
|
3109
|
-
continuousCornerRadius: cornerRadii(41),
|
|
3120
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
3121
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
3110
3122
|
// Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
|
|
3111
|
-
frameInsets: uniformFrameInsets(12),
|
|
3123
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
|
|
3112
3124
|
dynamicIsland: null,
|
|
3113
3125
|
cameraCutout: { diameter: 24 },
|
|
3114
3126
|
safeAreaInsets: {
|
|
@@ -3143,11 +3155,11 @@ var init_devices = __esm({
|
|
|
3143
3155
|
keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
|
|
3144
3156
|
navigationBarMode: "gesture",
|
|
3145
3157
|
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
3146
|
-
cornerRadius: cornerRadii(40),
|
|
3147
|
-
continuousCornerRadius: cornerRadii(40),
|
|
3158
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
3159
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
3148
3160
|
// the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
|
|
3149
3161
|
// resolves to about 18 logical points of frame around the 1080px display.
|
|
3150
|
-
frameInsets: uniformFrameInsets(18),
|
|
3162
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
|
|
3151
3163
|
dynamicIsland: null,
|
|
3152
3164
|
cameraCutout: { diameter: 26 },
|
|
3153
3165
|
safeAreaInsets: {
|
|
@@ -3182,11 +3194,11 @@ var init_devices = __esm({
|
|
|
3182
3194
|
keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
|
|
3183
3195
|
navigationBarMode: "gesture",
|
|
3184
3196
|
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
3185
|
-
cornerRadius: cornerRadii(36),
|
|
3186
|
-
continuousCornerRadius: cornerRadii(36),
|
|
3197
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
3198
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
3187
3199
|
// Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
|
|
3188
3200
|
// flat-display bezels are noticeably thinner than Pixel's).
|
|
3189
|
-
frameInsets: uniformFrameInsets(8),
|
|
3201
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
|
|
3190
3202
|
dynamicIsland: null,
|
|
3191
3203
|
cameraCutout: { diameter: 18 },
|
|
3192
3204
|
safeAreaInsets: {
|
|
@@ -3222,10 +3234,10 @@ var init_devices = __esm({
|
|
|
3222
3234
|
keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
|
|
3223
3235
|
navigationBarMode: "gesture",
|
|
3224
3236
|
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
3225
|
-
cornerRadius: cornerRadii(24),
|
|
3226
|
-
continuousCornerRadius: cornerRadii(24),
|
|
3237
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
3238
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
3227
3239
|
// Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
|
|
3228
|
-
frameInsets: uniformFrameInsets(9),
|
|
3240
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
|
|
3229
3241
|
dynamicIsland: null,
|
|
3230
3242
|
cameraCutout: { diameter: 18 },
|
|
3231
3243
|
safeAreaInsets: {
|
|
@@ -4084,9 +4096,17 @@ var init_metroDebugSourceMap = __esm({
|
|
|
4084
4096
|
|
|
4085
4097
|
// ../contrast-bundler/src/metroCloudArtifact.ts
|
|
4086
4098
|
async function minify(code, sourceLine, options, withMap) {
|
|
4087
|
-
const
|
|
4099
|
+
const mapped = new import_magic_string.default(code);
|
|
4100
|
+
const compiled = (0, import_worklet_executable.compileWorkletExecutables)(code, (offset, text3) => {
|
|
4101
|
+
mapped.appendLeft(offset, text3);
|
|
4102
|
+
});
|
|
4103
|
+
const result = await (0, import_terser.minify)(compiled, {
|
|
4088
4104
|
...options,
|
|
4089
|
-
...withMap ? {
|
|
4105
|
+
...withMap ? {
|
|
4106
|
+
sourceMap: {
|
|
4107
|
+
content: mapped.generateMap({ hires: true, source: "0" }).toString()
|
|
4108
|
+
}
|
|
4109
|
+
} : {}
|
|
4090
4110
|
});
|
|
4091
4111
|
if (typeof result.code !== "string") {
|
|
4092
4112
|
throw new Error(`peach Cloud could not re-print the statement at line ${sourceLine}`);
|
|
@@ -4252,14 +4272,16 @@ async function buildRnxCloudArtifact(bundle, options = {}) {
|
|
|
4252
4272
|
}
|
|
4253
4273
|
};
|
|
4254
4274
|
}
|
|
4255
|
-
var import_config2, import_metro_production_bundle, import_native_app_identity, import_native_firebase_metadata, import_terser, MODULE_PATHS_REQUIRED, SOURCE_MAP_REQUIRED, MINIFY_OPTIONS;
|
|
4275
|
+
var import_magic_string, import_config2, import_metro_production_bundle, import_native_app_identity, import_native_firebase_metadata, import_worklet_executable, import_terser, MODULE_PATHS_REQUIRED, SOURCE_MAP_REQUIRED, MINIFY_OPTIONS;
|
|
4256
4276
|
var init_metroCloudArtifact = __esm({
|
|
4257
4277
|
"../contrast-bundler/src/metroCloudArtifact.ts"() {
|
|
4258
4278
|
"use strict";
|
|
4279
|
+
import_magic_string = __toESM(require("magic-string"), 1);
|
|
4259
4280
|
import_config2 = require("peachsim/config");
|
|
4260
4281
|
import_metro_production_bundle = require("peachsim/metro-production-bundle");
|
|
4261
4282
|
import_native_app_identity = require("peachsim/native-app-identity");
|
|
4262
4283
|
import_native_firebase_metadata = require("peachsim/native-firebase-metadata");
|
|
4284
|
+
import_worklet_executable = require("peachsim/worklet-executable");
|
|
4263
4285
|
import_terser = require("terser");
|
|
4264
4286
|
init_metroAssetArtifact();
|
|
4265
4287
|
init_metroDebugSourceMap();
|
|
@@ -11066,7 +11088,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
11066
11088
|
var MULTI_MANIFEST_VERSION = 12;
|
|
11067
11089
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
11068
11090
|
const hash = (0, import_node_crypto3.createHash)("sha256");
|
|
11069
|
-
hash.update(`swift-compile/
|
|
11091
|
+
hash.update(`swift-compile/v20
|
|
11070
11092
|
${release}
|
|
11071
11093
|
`);
|
|
11072
11094
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -11664,6 +11686,125 @@ function lowerNotificationDelegate(source) {
|
|
|
11664
11686
|
result = result.slice(0, at) + text3 + result.slice(at + count);
|
|
11665
11687
|
return result;
|
|
11666
11688
|
}
|
|
11689
|
+
function tableProtocolConformances(sources) {
|
|
11690
|
+
const parents = /* @__PURE__ */ new Map();
|
|
11691
|
+
for (const source of sources) {
|
|
11692
|
+
const code = swiftCodeMask(source);
|
|
11693
|
+
for (const owner of code.matchAll(
|
|
11694
|
+
/\b(?:class|extension)\s+([A-Za-z_]\w*)\s*:\s*([^{}]+)\{/g
|
|
11695
|
+
)) {
|
|
11696
|
+
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
11697
|
+
for (const type of owner[2].matchAll(/\b[A-Za-z_]\w*\b/g)) inherited.add(type[0]);
|
|
11698
|
+
parents.set(owner[1], inherited);
|
|
11699
|
+
}
|
|
11700
|
+
}
|
|
11701
|
+
const result = /* @__PURE__ */ new Map();
|
|
11702
|
+
const protocols = ["UITableViewDataSource", "UITableViewDelegate"];
|
|
11703
|
+
for (const type of parents.keys()) {
|
|
11704
|
+
const pending = [type];
|
|
11705
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11706
|
+
const conformances = /* @__PURE__ */ new Set();
|
|
11707
|
+
while (pending.length) {
|
|
11708
|
+
const next = pending.pop();
|
|
11709
|
+
if (seen.has(next)) continue;
|
|
11710
|
+
seen.add(next);
|
|
11711
|
+
if (protocols.includes(next)) conformances.add(next);
|
|
11712
|
+
for (const parent of parents.get(next) ?? []) pending.push(parent);
|
|
11713
|
+
}
|
|
11714
|
+
if (conformances.size) result.set(type, conformances);
|
|
11715
|
+
}
|
|
11716
|
+
return result;
|
|
11717
|
+
}
|
|
11718
|
+
function lowerTableProtocolMethods(source, conformances) {
|
|
11719
|
+
const code = swiftCodeMask(source);
|
|
11720
|
+
const dataSource = {
|
|
11721
|
+
numberOfRowsInSection: "tableView:numberOfRowsInSection:",
|
|
11722
|
+
cellForRowAt: "tableView:cellForRowAtIndexPath:",
|
|
11723
|
+
titleForHeaderInSection: "tableView:titleForHeaderInSection:",
|
|
11724
|
+
titleForFooterInSection: "tableView:titleForFooterInSection:",
|
|
11725
|
+
canEditRowAt: "tableView:canEditRowAtIndexPath:",
|
|
11726
|
+
commit: "tableView:commitEditingStyle:forRowAtIndexPath:"
|
|
11727
|
+
};
|
|
11728
|
+
const delegate = {
|
|
11729
|
+
willDisplay: "tableView:willDisplayCell:forRowAtIndexPath:",
|
|
11730
|
+
didEndDisplaying: "tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
11731
|
+
heightForRowAt: "tableView:heightForRowAtIndexPath:",
|
|
11732
|
+
estimatedHeightForRowAt: "tableView:estimatedHeightForRowAtIndexPath:",
|
|
11733
|
+
heightForHeaderInSection: "tableView:heightForHeaderInSection:",
|
|
11734
|
+
heightForFooterInSection: "tableView:heightForFooterInSection:",
|
|
11735
|
+
estimatedHeightForHeaderInSection: "tableView:estimatedHeightForHeaderInSection:",
|
|
11736
|
+
estimatedHeightForFooterInSection: "tableView:estimatedHeightForFooterInSection:",
|
|
11737
|
+
viewForHeaderInSection: "tableView:viewForHeaderInSection:",
|
|
11738
|
+
viewForFooterInSection: "tableView:viewForFooterInSection:",
|
|
11739
|
+
willDisplayHeaderView: "tableView:willDisplayHeaderView:forSection:",
|
|
11740
|
+
willDisplayFooterView: "tableView:willDisplayFooterView:forSection:",
|
|
11741
|
+
didEndDisplayingHeaderView: "tableView:didEndDisplayingHeaderView:forSection:",
|
|
11742
|
+
didEndDisplayingFooterView: "tableView:didEndDisplayingFooterView:forSection:",
|
|
11743
|
+
shouldHighlightRowAt: "tableView:shouldHighlightRowAtIndexPath:",
|
|
11744
|
+
didHighlightRowAt: "tableView:didHighlightRowAtIndexPath:",
|
|
11745
|
+
didUnhighlightRowAt: "tableView:didUnhighlightRowAtIndexPath:",
|
|
11746
|
+
willSelectRowAt: "tableView:willSelectRowAtIndexPath:",
|
|
11747
|
+
willDeselectRowAt: "tableView:willDeselectRowAtIndexPath:",
|
|
11748
|
+
didSelectRowAt: "tableView:didSelectRowAtIndexPath:",
|
|
11749
|
+
didDeselectRowAt: "tableView:didDeselectRowAtIndexPath:",
|
|
11750
|
+
accessoryButtonTappedForRowWith: "tableView:accessoryButtonTappedForRowWithIndexPath:",
|
|
11751
|
+
editingStyleForRowAt: "tableView:editingStyleForRowAtIndexPath:",
|
|
11752
|
+
leadingSwipeActionsConfigurationForRowAt: "tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
11753
|
+
trailingSwipeActionsConfigurationForRowAt: "tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
11754
|
+
willBeginEditingRowAt: "tableView:willBeginEditingRowAtIndexPath:",
|
|
11755
|
+
didEndEditingRowAt: "tableView:didEndEditingRowAtIndexPath:"
|
|
11756
|
+
};
|
|
11757
|
+
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
11758
|
+
const edits = [];
|
|
11759
|
+
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
11760
|
+
const conforms = conformances.get(owner[1]);
|
|
11761
|
+
if (!conforms) continue;
|
|
11762
|
+
const selectors = {
|
|
11763
|
+
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
11764
|
+
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
11765
|
+
};
|
|
11766
|
+
const open = owner.index + owner[0].length - 1;
|
|
11767
|
+
const close = closingBrace(code, braces, open);
|
|
11768
|
+
let depth = 1;
|
|
11769
|
+
let previous = open + 1;
|
|
11770
|
+
for (const token of swiftCodeScan(code.slice(open + 1, close - 1)).tokens) {
|
|
11771
|
+
const at = open + 1 + token;
|
|
11772
|
+
if (code[at] === "{") depth++;
|
|
11773
|
+
else if (code[at] === "}") {
|
|
11774
|
+
depth--;
|
|
11775
|
+
if (depth === 1) previous = at + 1;
|
|
11776
|
+
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
11777
|
+
const signature2 = code.slice(at, code.indexOf("{", at));
|
|
11778
|
+
const prefix = code.slice(previous, at);
|
|
11779
|
+
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
11780
|
+
prefix
|
|
11781
|
+
)?.[0] ?? "";
|
|
11782
|
+
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
11783
|
+
continue;
|
|
11784
|
+
let selector;
|
|
11785
|
+
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
11786
|
+
signature2
|
|
11787
|
+
))
|
|
11788
|
+
selector = "numberOfSectionsInTableView:";
|
|
11789
|
+
else {
|
|
11790
|
+
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
11791
|
+
signature2
|
|
11792
|
+
);
|
|
11793
|
+
if (match) selector = selectors[match[1]];
|
|
11794
|
+
}
|
|
11795
|
+
if (selector)
|
|
11796
|
+
edits.push([
|
|
11797
|
+
at,
|
|
11798
|
+
`${/\bnonisolated\b/.test(attributes) ? "" : "@MainActor "}@ObjC(${JSON.stringify(selector)}) `
|
|
11799
|
+
]);
|
|
11800
|
+
}
|
|
11801
|
+
}
|
|
11802
|
+
}
|
|
11803
|
+
let result = source;
|
|
11804
|
+
for (const [at, text3] of edits.sort((a, b) => b[0] - a[0]))
|
|
11805
|
+
result = result.slice(0, at) + text3 + result.slice(at);
|
|
11806
|
+
return result;
|
|
11807
|
+
}
|
|
11667
11808
|
function swiftCodeMask(source) {
|
|
11668
11809
|
const chars = source.split("");
|
|
11669
11810
|
const blank = (from, to) => {
|
|
@@ -11767,9 +11908,9 @@ function swiftCodeMask(source) {
|
|
|
11767
11908
|
scanCode(0, false);
|
|
11768
11909
|
return chars.join("");
|
|
11769
11910
|
}
|
|
11770
|
-
function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
11911
|
+
function swiftSourceAsIOS(original, extraObjCExtensions, tableConformances = tableProtocolConformances([original])) {
|
|
11771
11912
|
const source = liftExtensionOverrides(
|
|
11772
|
-
lowerNotificationDelegate(original),
|
|
11913
|
+
lowerTableProtocolMethods(lowerNotificationDelegate(original), tableConformances),
|
|
11773
11914
|
extraObjCExtensions
|
|
11774
11915
|
);
|
|
11775
11916
|
const { lineStarts, tokens } = swiftCodeScan(source);
|
|
@@ -12011,7 +12152,7 @@ function swiftCodeScan(source) {
|
|
|
12011
12152
|
}
|
|
12012
12153
|
return { lineStarts: starts, tokens };
|
|
12013
12154
|
}
|
|
12014
|
-
var compiledSource = (file, contents, extraObjCExtensions) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions) : contents;
|
|
12155
|
+
var compiledSource = (file, contents, extraObjCExtensions, tableConformances) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions, tableConformances) : contents;
|
|
12015
12156
|
function writeSwiftProject(layout, input, moduleRoot) {
|
|
12016
12157
|
const resourceTargets = swiftManifestTargets(
|
|
12017
12158
|
input.files["Package.swift"] ?? "",
|
|
@@ -12044,15 +12185,15 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
12044
12185
|
// sootsim-swift files ${modulePlan.digest("hex").slice(0, 16)}
|
|
12045
12186
|
// resource accessors ${resourcePlan}
|
|
12046
12187
|
`;
|
|
12047
|
-
const
|
|
12048
|
-
|
|
12049
|
-
);
|
|
12188
|
+
const swiftSources = Object.entries(input.files).filter(([file]) => file.endsWith(".swift")).map(([, contents]) => contents);
|
|
12189
|
+
const objcExtensions = objcExtensionMemberIndex(swiftSources);
|
|
12190
|
+
const tableConformances = tableProtocolConformances(swiftSources);
|
|
12050
12191
|
if (targets.length === 0) {
|
|
12051
12192
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
12052
12193
|
if (file === "Package.swift") continue;
|
|
12053
12194
|
files2.set(
|
|
12054
12195
|
import_node_path7.default.join(layout.sources, file),
|
|
12055
|
-
compiledSource(file, contents, objcExtensions)
|
|
12196
|
+
compiledSource(file, contents, objcExtensions, tableConformances)
|
|
12056
12197
|
);
|
|
12057
12198
|
}
|
|
12058
12199
|
let manifest = (0, import_node_fs7.readFileSync)(
|
|
@@ -12099,7 +12240,10 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
12099
12240
|
const base = layout.multi ? layout.root : layout.sources;
|
|
12100
12241
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
12101
12242
|
if (file === "Package.swift") continue;
|
|
12102
|
-
files2.set(
|
|
12243
|
+
files2.set(
|
|
12244
|
+
import_node_path7.default.join(base, file),
|
|
12245
|
+
compiledSource(file, contents, objcExtensions, tableConformances)
|
|
12246
|
+
);
|
|
12103
12247
|
}
|
|
12104
12248
|
files2.set(
|
|
12105
12249
|
import_node_path7.default.join(layout.root, "Package.swift"),
|