peachsim 0.1.2274 → 0.1.2275
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/outbound-endpoints.ts +12 -0
- package/detox/index.ts +109 -29
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.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 +9 -6
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +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/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +63 -10
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3 -3
- 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 +9 -6
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -4
- 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 +3 -4
- 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 +3 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.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/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.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 +16 -10
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +2 -2
- package/dist-lib/vite.cjs +3 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +41 -0
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +32 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -28
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +12 -5
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +7 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h +2 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h +3 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +1 -1
- package/src/nitro-compile.ts +4 -0
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2275 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -18284,7 +18284,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18284
18284
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18285
18285
|
var MULTI_MANIFEST_VERSION = 68;
|
|
18286
18286
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18287
|
-
var compilerSourceDigest = true ? "
|
|
18287
|
+
var compilerSourceDigest = true ? "fe19f1476f87e3d8d3dfbe1671a9da2c86ce91839a457c72fe2364bc375699b2" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18288
18288
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18289
18289
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
18290
18290
|
hash.update(`swift-compile
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2275 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2742,7 +2742,7 @@ var init_src = __esm({
|
|
|
2742
2742
|
var runtime_companion_default;
|
|
2743
2743
|
var init_runtime_companion = __esm({
|
|
2744
2744
|
"runtime-companion.json"() {
|
|
2745
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
2745
|
+
runtime_companion_default = { abi: 1, sha256: "6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84", file: "node/cli-6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84.cjs" };
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
2748
|
|
|
@@ -4753,7 +4753,7 @@ var init_swift_compile = __esm({
|
|
|
4753
4753
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4754
4754
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4755
4755
|
).join("");
|
|
4756
|
-
compilerSourceDigest = true ? "
|
|
4756
|
+
compilerSourceDigest = true ? "fe19f1476f87e3d8d3dfbe1671a9da2c86ce91839a457c72fe2364bc375699b2" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4757
4757
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4758
4758
|
"CFAllocator",
|
|
4759
4759
|
"CFArray",
|
|
@@ -11627,7 +11627,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11627
11627
|
"@react-native-ml-kit/text-recognition",
|
|
11628
11628
|
"@react-native-segmented-control/segmented-control",
|
|
11629
11629
|
"@react-native-seoul/naver-login",
|
|
11630
|
-
"@renegades/react-native-tickle",
|
|
11631
11630
|
"@rnw-community/react-native-payments",
|
|
11632
11631
|
"@rudderstack/rudder-integration-firebase-react-native",
|
|
11633
11632
|
"@rudderstack/rudder-sdk-react-native",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2275 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -151,6 +151,14 @@ export interface SceneNativeBinding {
|
|
|
151
151
|
_peach_classic_layout_sample(slot: number, timestamp: number): number;
|
|
152
152
|
peachExtentParameters?: (slot: number) => void;
|
|
153
153
|
_peach_scene_set_buffers(integers: number, doubles: number, floats: number, layoutMatrices: number): void;
|
|
154
|
+
_peach_scene_slots_adopt(next: number, generations: number, free: number, freeCount: number): void;
|
|
155
|
+
_peach_scene_slot_allocate(): number;
|
|
156
|
+
_peach_scene_slot_generation(slot: number): number;
|
|
157
|
+
_peach_scene_slot_release(slot: number, generation: number): number;
|
|
158
|
+
_peach_scene_slots_publish(): void;
|
|
159
|
+
_peach_scene_slots_lanes(which: number): number;
|
|
160
|
+
_malloc(bytes: number): number;
|
|
161
|
+
_free(pointer: number): void;
|
|
154
162
|
_peach_paint_walk(canvas: number, slot: number, self: number, childX: number, childY: number, flags: number, txOffX: number, txOffY: number, hasClip: number, clipLeft: number, clipTop: number, clipRight: number, clipBottom: number, dpr: number, surfaceWidth: number, surfaceHeight: number, layoutVersion: number, paintFloor: number, paintEpoch: number, fontGeneration: number, android: number, hasDamage: number, damageLeft: number, damageTop: number, damageRight: number, damageBottom: number, damageId: number, frameMs: number, swiftUIOpacity: number): number;
|
|
155
163
|
_peach_glass_capture_clips_input(count: number): number;
|
|
156
164
|
_peach_paint_excluded_input(count: number): number;
|
|
@@ -289,7 +297,7 @@ export declare class SceneTable {
|
|
|
289
297
|
constructor(memory: SceneMemory, capacity?: number);
|
|
290
298
|
static byteLength(capacity: number): number;
|
|
291
299
|
get capacity(): number;
|
|
292
|
-
migrate(memory: SceneMemory, native
|
|
300
|
+
migrate(memory: SceneMemory, native: SceneNativeBinding): void;
|
|
293
301
|
replaySceneSlots(): NativeReplaySceneSlot[];
|
|
294
302
|
nativeIn(module: object): SceneNativeBinding | undefined;
|
|
295
303
|
i32(): Int32Array;
|
|
@@ -39,6 +39,7 @@ declare function iosDecelerationRate(decelerationRate: unknown): number;
|
|
|
39
39
|
export declare const IOS_SCROLL: {
|
|
40
40
|
refreshHoldOffset: (hasTitle: boolean, titleFontSize?: number | undefined) => number;
|
|
41
41
|
refreshTriggerThreshold: (viewportHeight: number, hasTitle: boolean, titleFontSize?: number | undefined) => number;
|
|
42
|
+
refreshControl: "ui-refresh-control";
|
|
42
43
|
refreshPullHoldsContent: false;
|
|
43
44
|
touchSlop: (primaryDelta: number) => number;
|
|
44
45
|
beginMoveApplies: true;
|
|
@@ -54,6 +55,29 @@ export declare const IOS_SCROLL: {
|
|
|
54
55
|
decelerationRate: number;
|
|
55
56
|
};
|
|
56
57
|
rubberBand: true;
|
|
58
|
+
scrollToOverflow: true;
|
|
59
|
+
statusBarScrollToTop: true;
|
|
60
|
+
timedScrollTo: (statusBarScrollToTop: boolean) => {
|
|
61
|
+
durationMs: number;
|
|
62
|
+
curve: "ios-status-bar-scroll-to-top";
|
|
63
|
+
} | {
|
|
64
|
+
durationMs: number;
|
|
65
|
+
curve: "ios-set-content-offset";
|
|
66
|
+
};
|
|
67
|
+
instantScrollToEndsMomentum: true;
|
|
68
|
+
stillLiftSettles: true;
|
|
69
|
+
nestedScrollChain: false;
|
|
70
|
+
edgeYieldsToAncestor: true;
|
|
71
|
+
multiTouchPan: true;
|
|
72
|
+
liftIsMove: false;
|
|
73
|
+
overscaledZoom: (rawScale: number, minScale: number, maxScale: number) => number;
|
|
74
|
+
zoomAnimation: (startScale: number, targetScale: number) => {
|
|
75
|
+
durationMs: number;
|
|
76
|
+
easing: {
|
|
77
|
+
kind: "bezier";
|
|
78
|
+
controlPoints: [number, number, number, number];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
57
81
|
appliedOffset: typeof roundToIosPixel;
|
|
58
82
|
nativeEventOffset: typeof roundToIosPixel;
|
|
59
83
|
startOffset: (leadingInset: number) => number;
|
|
@@ -78,6 +102,7 @@ declare function androidAppliedOffset(value: number, scale: number): number;
|
|
|
78
102
|
export declare const ANDROID_SCROLL: {
|
|
79
103
|
refreshHoldOffset: () => number;
|
|
80
104
|
refreshTriggerThreshold: () => number;
|
|
105
|
+
refreshControl: "swipe-refresh-layout";
|
|
81
106
|
refreshPullHoldsContent: true;
|
|
82
107
|
touchSlop: () => number;
|
|
83
108
|
beginMoveApplies: false;
|
|
@@ -93,6 +118,22 @@ export declare const ANDROID_SCROLL: {
|
|
|
93
118
|
friction: number;
|
|
94
119
|
};
|
|
95
120
|
rubberBand: false;
|
|
121
|
+
scrollToOverflow: false;
|
|
122
|
+
statusBarScrollToTop: false;
|
|
123
|
+
timedScrollTo: () => null;
|
|
124
|
+
instantScrollToEndsMomentum: false;
|
|
125
|
+
stillLiftSettles: false;
|
|
126
|
+
nestedScrollChain: true;
|
|
127
|
+
edgeYieldsToAncestor: false;
|
|
128
|
+
multiTouchPan: false;
|
|
129
|
+
liftIsMove: true;
|
|
130
|
+
overscaledZoom: (rawScale: number, minScale: number, maxScale: number) => number;
|
|
131
|
+
zoomAnimation: () => {
|
|
132
|
+
durationMs: number;
|
|
133
|
+
easing: {
|
|
134
|
+
kind: "cubic-out";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
96
137
|
appliedOffset: typeof androidAppliedOffset;
|
|
97
138
|
nativeEventOffset: (value: number, scale: number) => number;
|
|
98
139
|
startOffset: () => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScrollMomentumPhysics } from '../engine/scroll-momentum-math.d.ts';
|
|
1
|
+
import type { ScrollMomentumPhysics, TimedScrollCurve } from '../engine/scroll-momentum-math.d.ts';
|
|
2
2
|
import type { ScrollIndicatorMetrics } from '../engine/scroll-platform.d.ts';
|
|
3
3
|
import type { ScrollReleaseVelocity, ScrollVelocitySample } from '../engine/scroll-velocity.d.ts';
|
|
4
4
|
import type { DeviceSpec, RuntimePlatform, SizeClass } from '../settings/index.d.ts';
|
|
@@ -9,6 +9,12 @@ export interface PlatformPersonality {
|
|
|
9
9
|
formSheet(device: DeviceSpec): FormSheetTraits;
|
|
10
10
|
readonly scroll: ScrollPersonality;
|
|
11
11
|
}
|
|
12
|
+
export type ZoomEasing = {
|
|
13
|
+
kind: 'bezier';
|
|
14
|
+
controlPoints: readonly [number, number, number, number];
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'cubic-out';
|
|
17
|
+
};
|
|
12
18
|
export interface ScrollPersonality {
|
|
13
19
|
touchSlop(primaryDelta: number): number;
|
|
14
20
|
dragMatchesAxis(primaryDelta: number, crossDelta: number): boolean;
|
|
@@ -31,9 +37,27 @@ export interface ScrollPersonality {
|
|
|
31
37
|
indicatorStyle?: unknown;
|
|
32
38
|
colorScheme?: string;
|
|
33
39
|
}): ScrollIndicatorMetrics;
|
|
40
|
+
readonly refreshControl: 'ui-refresh-control' | 'swipe-refresh-layout';
|
|
34
41
|
readonly refreshPullHoldsContent: boolean;
|
|
35
42
|
refreshHoldOffset(hasTitle: boolean, titleFontSize?: number): number;
|
|
36
43
|
refreshTriggerThreshold(viewportHeight: number, hasTitle: boolean, titleFontSize?: number): number;
|
|
44
|
+
readonly scrollToOverflow: boolean;
|
|
45
|
+
readonly statusBarScrollToTop: boolean;
|
|
46
|
+
timedScrollTo(statusBarScrollToTop: boolean): {
|
|
47
|
+
durationMs: number;
|
|
48
|
+
curve: TimedScrollCurve;
|
|
49
|
+
} | null;
|
|
50
|
+
readonly instantScrollToEndsMomentum: boolean;
|
|
51
|
+
readonly stillLiftSettles: boolean;
|
|
52
|
+
readonly nestedScrollChain: boolean;
|
|
53
|
+
readonly edgeYieldsToAncestor: boolean;
|
|
54
|
+
readonly multiTouchPan: boolean;
|
|
55
|
+
readonly liftIsMove: boolean;
|
|
56
|
+
overscaledZoom(rawScale: number, minScale: number, maxScale: number): number;
|
|
57
|
+
zoomAnimation(startScale: number, targetScale: number): {
|
|
58
|
+
durationMs: number;
|
|
59
|
+
easing: ZoomEasing;
|
|
60
|
+
};
|
|
37
61
|
}
|
|
38
62
|
export interface FormSheetTraits {
|
|
39
63
|
readonly horizontalSizeClass: SizeClass;
|
|
@@ -43,11 +67,18 @@ export interface FormSheetTraits {
|
|
|
43
67
|
readonly mixedLargeIsSystemCard: boolean;
|
|
44
68
|
readonly floatsSmallDetents: boolean;
|
|
45
69
|
readonly snapsDetentsToPixel: boolean;
|
|
70
|
+
readonly presenterRecedes: boolean;
|
|
71
|
+
readonly coverOpeningScales: boolean;
|
|
72
|
+
readonly partialDetentTravelsSettled: boolean;
|
|
46
73
|
}
|
|
47
74
|
export interface NavigationBarPersonality {
|
|
48
75
|
readonly toolbarHeight: number | null;
|
|
49
76
|
readonly compatibilityDesign: boolean;
|
|
50
77
|
readonly compactHeightBar: boolean;
|
|
78
|
+
readonly largeTitle: boolean;
|
|
79
|
+
readonly stickyTitleFontSize: boolean;
|
|
80
|
+
readonly barButtonItems: boolean;
|
|
81
|
+
readonly searchController: boolean;
|
|
51
82
|
}
|
|
52
83
|
export interface KeyboardSpring {
|
|
53
84
|
readonly stiffness: number;
|
|
@@ -2,6 +2,7 @@ import { type DriveAnimationGraph, type DriveColorAnimationGraph, type LinearLoo
|
|
|
2
2
|
import { type CollapseBand, type ScrollMomentumPhysics } from '../engine/scroll-momentum-math.d.ts';
|
|
3
3
|
import { type CSSKeyframesDrive } from './css-keyframes-drive.d.ts';
|
|
4
4
|
import { type NativeWidgetSurfaceId, type NativeWidgetIdentity, type NativeWidgetMount } from './native-widgetContract.d.ts';
|
|
5
|
+
import type { NativeScreenTransitionClock } from '../../../peach-globals/src/lockstepCaptureBridgeContract.d.ts';
|
|
5
6
|
import type { ScreenTransitionDriveDescriptor } from '../../../peach-kit/src/transitions/screen-transition-math.d.ts';
|
|
6
7
|
import type { DeviceSpec, RuntimePlatform } from '../../../../../src/device-catalog.ts';
|
|
7
8
|
import type { AndroidEdgeEffectState } from '../engine/android-stretch-effect.d.ts';
|
|
@@ -1322,6 +1323,9 @@ export type CompositorHostToWorker = {
|
|
|
1322
1323
|
} | {
|
|
1323
1324
|
type: 'setScreenBarClockLag';
|
|
1324
1325
|
lagMs: number;
|
|
1326
|
+
} | {
|
|
1327
|
+
type: 'setScreenTransitionClock';
|
|
1328
|
+
clock: NativeScreenTransitionClock;
|
|
1325
1329
|
} | {
|
|
1326
1330
|
type: 'forceRender';
|
|
1327
1331
|
captureRequestId?: number;
|
|
@@ -4,7 +4,7 @@ import type { AppPreferenceValue, AppSettingsSnapshot, SystemPermissionApp, Syst
|
|
|
4
4
|
import type { AuxAppSurfaceId } from './aux-surface-types.d.ts';
|
|
5
5
|
import type { ExpoWidgetsActivityPublication } from './expo-widgets-activityContract.d.ts';
|
|
6
6
|
import type { OneNativeContentPublication } from './one-native-contentContract.d.ts';
|
|
7
|
-
import type {
|
|
7
|
+
import type { SootSimWebViewSpec, SootSimWebViewSource, SootSimImageCropperSpec, SootSimAndroidDateTimePickerResult, SootSimAndroidDateTimePickerSpec, SootSimImagePickerOptions, SootSimPhotoLibraryAsset, SootSimPhotoLibraryPage, SootsimSettingsRoute, SootSimWebViewNavigationType, SootSimWebKitEvent, SootSimWebKitReply } from '../../../peach-globals/src/index.d.ts';
|
|
8
8
|
import type { NotifPresentation, NotifSpec, SystemNotificationSettings, SystemPermissionDescriptor, SystemPermissionLocationAccuracy, SystemPermissionState } from '../../../peach-kit/src/runtime.d.ts';
|
|
9
9
|
export type KeyboardMode = 'letters' | 'numbers' | 'symbols' | 'numeric' | 'emoji';
|
|
10
10
|
export type IOSKeyboardType = 'default' | 'ascii-capable' | 'numbers-and-punctuation' | 'url' | 'number-pad' | 'ascii-capable-number-pad' | 'phone-pad' | 'name-phone-pad' | 'email-address' | 'decimal-pad' | 'twitter' | 'web-search' | 'visible-password' | 'numeric';
|
|
@@ -345,34 +345,9 @@ export interface KeyboardPopupState {
|
|
|
345
345
|
y: number;
|
|
346
346
|
width: number;
|
|
347
347
|
}
|
|
348
|
-
export
|
|
349
|
-
|
|
350
|
-
html?: string;
|
|
351
|
-
baseUrl?: string;
|
|
352
|
-
headers?: Record<string, string>;
|
|
353
|
-
method?: string;
|
|
354
|
-
bodyBase64?: string;
|
|
355
|
-
documentData?: PeachWebViewDocumentData;
|
|
356
|
-
}
|
|
357
|
-
export interface WebViewSpec extends Partial<NativeSurfacePresentation> {
|
|
358
|
-
cookieStore?: SootSimWebViewCookieStore;
|
|
359
|
-
webKit?: SootSimWebKitConfiguration;
|
|
360
|
-
captureOwner?: {
|
|
361
|
-
surfaceId: string;
|
|
362
|
-
generation: number;
|
|
363
|
-
};
|
|
364
|
-
source?: WebViewSourceSpec;
|
|
365
|
-
injectedJavaScript?: string;
|
|
366
|
-
injectedJavaScriptBeforeContentLoaded?: string;
|
|
367
|
-
injectedJavaScriptObject?: string;
|
|
348
|
+
export type WebViewSourceSpec = SootSimWebViewSource;
|
|
349
|
+
export interface WebViewSpec extends SootSimWebViewSpec {
|
|
368
350
|
expoDomWebViewId?: number;
|
|
369
|
-
hasOnOpenWindowEvent?: boolean;
|
|
370
|
-
hasOnShouldStartLoadWithRequest?: boolean;
|
|
371
|
-
incognito?: boolean;
|
|
372
|
-
javaScriptEnabled?: boolean;
|
|
373
|
-
scrollEnabled?: boolean;
|
|
374
|
-
startInLoadingState?: boolean;
|
|
375
|
-
testID?: string;
|
|
376
351
|
}
|
|
377
352
|
export interface ImagePickerSpec extends SootSimImagePickerOptions {
|
|
378
353
|
source?: 'library' | 'camera';
|
|
@@ -67,6 +67,14 @@ export type LockstepScheduledInput = {
|
|
|
67
67
|
pointerId: number;
|
|
68
68
|
deliver: (timestampMs: number) => Promise<void>;
|
|
69
69
|
};
|
|
70
|
+
export interface NativeScreenTransitionClock {
|
|
71
|
+
startTimeMs: number;
|
|
72
|
+
headerStartTimeMs: number;
|
|
73
|
+
frames: {
|
|
74
|
+
callbackTimeMs: number;
|
|
75
|
+
timestampMs: number;
|
|
76
|
+
}[];
|
|
77
|
+
}
|
|
70
78
|
export interface SootSimLockstepCaptureController {
|
|
71
79
|
readonly initialFrame: SootSimLockstepFrameReceipt;
|
|
72
80
|
readonly inputReceipts: LockstepInputReceipt[];
|
|
@@ -86,6 +94,7 @@ export interface SootSimLockstepCaptureController {
|
|
|
86
94
|
stepToOffset(anchor: SootSimLockstepFrameReceipt, offsetMs: number): Promise<SootSimLockstepFrameReceipt>;
|
|
87
95
|
endWorkletFrameReceipt(): void;
|
|
88
96
|
setScreenBarClockLag(lagMs: number): void;
|
|
97
|
+
setScreenTransitionClock(clock: NativeScreenTransitionClock): Promise<NativeScreenTransitionClock>;
|
|
89
98
|
end(): void;
|
|
90
99
|
}
|
|
91
100
|
export interface SootSimLockstepCaptureBridge {
|
|
@@ -5,6 +5,16 @@ import type { SootSimAccessibilityState, SootSimNodeInfo, PeachAccessibilityNode
|
|
|
5
5
|
import type { SootSimScrollOffsetSample } from './performanceBridgeContract.d.ts';
|
|
6
6
|
import type { SystemPermissionApp, AppSettingsSnapshot, SystemPermissionKind, SystemPermissionMutation } from './permissionsBridgeContract.d.ts';
|
|
7
7
|
import type { SootSimReplayTarget } from './replayBridgeContract.d.ts';
|
|
8
|
+
export type FrameProducerClockSample = {
|
|
9
|
+
deliveryTimeMs: number;
|
|
10
|
+
elapsedMs: number;
|
|
11
|
+
};
|
|
12
|
+
export type FrameProducerFrameReceipt = {
|
|
13
|
+
id: number;
|
|
14
|
+
registeredMs: number;
|
|
15
|
+
firstFrameMs: number | null;
|
|
16
|
+
replayedFrames?: FrameProducerClockSample[];
|
|
17
|
+
};
|
|
8
18
|
export interface SootSimTestQueryFilter {
|
|
9
19
|
type?: string;
|
|
10
20
|
hasText?: string;
|
|
@@ -221,11 +231,8 @@ export interface SootSimTestBridge {
|
|
|
221
231
|
getAnimationTrace(id: number, limit?: number): MaybeAsync<SootSimAnimationTraceSample[]>;
|
|
222
232
|
listAnimationTraces(): MaybeAsync<SootSimAnimationTraceStatus[]>;
|
|
223
233
|
startProducerFrameCapture(kind: string): MaybeAsync<void>;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
registeredMs: number;
|
|
227
|
-
firstFrameMs: number | null;
|
|
228
|
-
}[]>;
|
|
234
|
+
replayProducerFrameClock(id: number, frames: FrameProducerClockSample[]): MaybeAsync<void>;
|
|
235
|
+
readProducerFrameCapture(): MaybeAsync<FrameProducerFrameReceipt[]>;
|
|
229
236
|
stopProducerFrameCapture(): MaybeAsync<void>;
|
|
230
237
|
getRuntimeState(): MaybeAsync<SootSimRuntimeState>;
|
|
231
238
|
getExternalAppState?(): MaybeAsync<Record<string, unknown> | null>;
|
|
@@ -27,6 +27,8 @@ export type SootSimWebViewHostRequest = {
|
|
|
27
27
|
method?: string;
|
|
28
28
|
bodyBase64?: string;
|
|
29
29
|
documentData?: PeachWebViewDocumentData;
|
|
30
|
+
minimumFontSize?: number;
|
|
31
|
+
html?: string;
|
|
30
32
|
config: string;
|
|
31
33
|
beforeKey: string;
|
|
32
34
|
beforeContent: string;
|
|
@@ -35,6 +37,10 @@ export type SootSimWebViewHostRequest = {
|
|
|
35
37
|
} | {
|
|
36
38
|
kind: 'detach';
|
|
37
39
|
instanceId: string;
|
|
40
|
+
} | {
|
|
41
|
+
kind: 'preferences';
|
|
42
|
+
instanceId: string;
|
|
43
|
+
minimumFontSize: number;
|
|
38
44
|
} | {
|
|
39
45
|
kind: 'cookies';
|
|
40
46
|
instanceId: string;
|
|
@@ -202,6 +208,7 @@ export interface SootSimWebViewCookieStore {
|
|
|
202
208
|
policy: 0 | 1;
|
|
203
209
|
}
|
|
204
210
|
export interface SootSimWebViewSpec extends Partial<NativeSurfacePresentation> {
|
|
211
|
+
minimumFontSize?: number;
|
|
205
212
|
cookieStore?: SootSimWebViewCookieStore;
|
|
206
213
|
captureOwner?: {
|
|
207
214
|
surfaceId: string;
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84","file":"node/cli-6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84.cjs"}
|
|
@@ -48,7 +48,7 @@ API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
|
|
|
48
48
|
@discussion iOS versions after 8.0 but prior to 8.2 are saved as 8.0, and iOS version after 8.2 but prior to 9.0
|
|
49
49
|
are saved as 8.2.
|
|
50
50
|
*/
|
|
51
|
-
@property (readonly, assign) NSOperatingSystemVersion operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
51
|
+
@property (readonly, assign) NSOperatingSystemVersion operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
52
52
|
|
|
53
53
|
/*!
|
|
54
54
|
@method initWithSource:version:productType:operatingSystemVersion:
|
|
@@ -58,7 +58,7 @@ API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
|
|
|
58
58
|
- (instancetype)initWithSource:(HKSource *)source
|
|
59
59
|
version:(nullable NSString *)version
|
|
60
60
|
productType:(nullable NSString *)productType
|
|
61
|
-
operatingSystemVersion:(NSOperatingSystemVersion)operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
61
|
+
operatingSystemVersion:(NSOperatingSystemVersion)operatingSystemVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
62
62
|
|
|
63
63
|
/*!
|
|
64
64
|
@method initWithSource:version:
|
|
@@ -73,6 +73,6 @@ API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0))
|
|
|
73
73
|
// Constants to match on any value of that property when querying for samples from an HKSourceRevision
|
|
74
74
|
HK_EXTERN NSString * const HKSourceRevisionAnyVersion API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
75
75
|
HK_EXTERN NSString * const HKSourceRevisionAnyProductType API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
76
|
-
HK_EXTERN NSOperatingSystemVersion const HKSourceRevisionAnyOperatingSystem API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0));
|
|
76
|
+
HK_EXTERN NSOperatingSystemVersion const HKSourceRevisionAnyOperatingSystem API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
77
77
|
|
|
78
78
|
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CLLocation.h>
|
|
9
10
|
#import <HealthKit/HKDefines.h>
|
|
10
11
|
#import <HealthKit/HKSeriesBuilder.h>
|
|
11
12
|
|
|
@@ -57,7 +58,7 @@ API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
|
|
|
57
58
|
finishRouteWithMetadata: method.
|
|
58
59
|
*/
|
|
59
60
|
- (void)insertRouteData:(NSArray<CLLocation *> *)routeData
|
|
60
|
-
completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
|
|
61
|
+
completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) NS_REFINED_FOR_SWIFT;
|
|
61
62
|
|
|
62
63
|
/*!
|
|
63
64
|
@method addMetadata:completion:
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CLLocation.h>
|
|
9
10
|
#import <HealthKit/HKDefines.h>
|
|
10
11
|
#import <HealthKit/HKQuery.h>
|
|
11
12
|
|
|
@@ -41,7 +42,7 @@ API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
|
|
|
41
42
|
stopQuery called, the query is complete and no more calls to the handler will be made.
|
|
42
43
|
*/
|
|
43
44
|
- (instancetype)initWithRoute:(HKWorkoutRoute *)workoutRoute
|
|
44
|
-
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler;
|
|
45
|
+
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler NS_REFINED_FOR_SWIFT;
|
|
45
46
|
|
|
46
47
|
/*!
|
|
47
48
|
@method initWithRoute:dateInterval:dataHandler:
|
|
@@ -60,7 +61,7 @@ API_AVAILABLE(ios(11.0), watchos(4.0), macCatalyst(13.0), macos(13.0))
|
|
|
60
61
|
*/
|
|
61
62
|
- (instancetype)initWithRoute:(HKWorkoutRoute *)workoutRoute
|
|
62
63
|
dateInterval:(NSDateInterval *)dateInterval
|
|
63
|
-
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));
|
|
64
|
+
dataHandler:(void(^NS_SWIFT_SENDABLE)(HKWorkoutRouteQuery *query, NSArray<CLLocation *> * _Nullable routeData, BOOL done, NSError * _Nullable error))dataHandler API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0)) NS_REFINED_FOR_SWIFT;
|
|
64
65
|
|
|
65
66
|
@end
|
|
66
67
|
|
package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h
CHANGED
|
@@ -14,7 +14,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
14
14
|
@class UIPasteConfiguration;
|
|
15
15
|
|
|
16
16
|
UIKIT_EXTERN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
|
|
17
|
-
@protocol UIPasteConfigurationSupporting <NSObject>
|
|
17
|
+
PEACH_SWIFT_CLASS(UIKitCore) @protocol UIPasteConfigurationSupporting <NSObject>
|
|
18
18
|
|
|
19
19
|
@property (nonatomic, copy, nullable) UIPasteConfiguration *pasteConfiguration;
|
|
20
20
|
|
|
@@ -212,7 +212,7 @@ UIKIT_EXTERN NSString *const UIKeyInputDelete API_AVAILABLE(ios(15.0),
|
|
|
212
212
|
@end
|
|
213
213
|
|
|
214
214
|
#if TARGET_OS_IOS
|
|
215
|
-
@interface UIResponder (UIPasteConfigurationSupporting) <UIPasteConfigurationSupporting>
|
|
215
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIResponder (UIPasteConfigurationSupporting) <UIPasteConfigurationSupporting>
|
|
216
216
|
@end
|
|
217
217
|
#endif
|
|
218
218
|
|
package/src/nitro-compile.ts
CHANGED
|
@@ -208,6 +208,10 @@ export function collectNitroCompileInput(
|
|
|
208
208
|
...target,
|
|
209
209
|
swiftFlags: [
|
|
210
210
|
'-enable-bare-slash-regex',
|
|
211
|
+
'-Xfrontend',
|
|
212
|
+
'-import-module',
|
|
213
|
+
'-Xfrontend',
|
|
214
|
+
'Foundation',
|
|
211
215
|
...ndebug.flatMap((flag) => ['-Xcc', flag]),
|
|
212
216
|
...(target.swiftFlags ?? []),
|
|
213
217
|
],
|