peachsim 0.1.1716 → 0.1.1738
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/README.md +21 -3
- package/cli/app-bundle-resources.ts +2 -1
- package/cli/app-fonts.ts +4 -4
- package/cli/app-splash.ts +4 -4
- package/cli/app-stubs.ts +17 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/control.ts +83 -822
- package/cli/commands/coverage-swift.ts +112 -4
- package/cli/commands/daemon.ts +8 -0
- package/cli/commands/detox.ts +3 -0
- package/cli/commands/doctor.ts +19 -2
- package/cli/commands/inspect/actions.ts +74 -14
- package/cli/commands/inspect/core.ts +5 -1
- package/cli/commands/inspect/settling.ts +5 -2
- package/cli/commands/inspect/wait-ready.ts +6 -0
- package/cli/commands/inspect.ts +48 -45
- package/cli/commands/kotlin.ts +12 -2
- package/cli/commands/package.ts +760 -0
- package/cli/commands/serve.ts +6 -0
- package/cli/commands/shell-url.ts +838 -0
- package/cli/commands/swift.ts +42 -102
- package/cli/commands/test.ts +20 -0
- package/cli/commands/upload.ts +1 -1
- package/cli/device-option.ts +1 -1
- package/cli/main.ts +13 -1
- package/cli/native-input.ts +199 -0
- package/cli/outbound-endpoints.ts +26 -1
- package/cli/packaged-app-launcher.ts +95 -0
- package/cli/scene-video.ts +36 -12
- package/detox/index.ts +196 -24
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- 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 +39889 -31873
- 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 +195 -63
- package/dist-lib/dev-bundle-resolution.cjs +14 -13
- package/dist-lib/expo-swift-bundle.cjs +18507 -11835
- package/dist-lib/expo-swift-metadata.cjs +4 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +27 -3
- package/dist-lib/host/bridge-host.cjs +28373 -24090
- package/dist-lib/host/fetch-proxy-handler.cjs +235 -225
- 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 +915 -399
- 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 +335 -47
- package/dist-lib/menu.cjs +13 -1
- package/dist-lib/menu.mjs +13 -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 +918 -411
- package/dist-lib/native-app-identity-project.cjs +703 -283
- package/dist-lib/native-app-identity-project.mjs +500 -87
- package/dist-lib/native-app-identity.cjs +13 -2
- package/dist-lib/native-app-identity.mjs +13 -2
- 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 +5 -2
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +28 -23
- package/dist-lib/public-origins-lib.json +418 -224
- package/dist-lib/react-native-host-modules.cjs +35 -2
- package/dist-lib/react-native-host-modules.mjs +35 -2
- package/dist-lib/reap-browser.cjs +12 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +15 -8
- package/dist-lib/sdk.cjs +17 -7
- package/dist-lib/sdk.mjs +16 -7
- package/dist-lib/skills.cjs +44825 -29141
- package/dist-lib/swift-compile.cjs +616 -400
- package/dist-lib/swift-compile.mjs +528 -315
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +105 -17
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4660 -2252
- package/dist-lib/vite.cjs +248 -234
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +9 -6
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +11 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +5 -12
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +36 -2
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +9 -2
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +12 -25
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +3 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -3
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +711 -46
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +7 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
- package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
- package/sdk/ios/usr/include/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +10 -0
- package/sdk/ios/usr/include/sys/cdefs.h +5 -0
- package/sdk/ios/usr/include/sys/ioccom.h +99 -0
- package/sdk/ios/usr/include/sys/syslog.h +236 -0
- package/sdk/ios/usr/include/syslog.h +24 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/fcntl.h +4 -2
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/stdio.h +24 -0
- package/sdk/ios/wasm/include/stdlib.h +32 -7
- package/sdk/ios/wasm/include/sys/file.h +7 -0
- package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/ios/wasm/include/sys/syscall.h +9 -0
- package/sdk/ios/wasm/include/sys/time.h +10 -0
- package/sdk/ios/wasm/include/unistd.h +12 -3
- package/sdk/native-hashes.json +4 -3
- package/skills/contrast/SKILL.md +2 -1
- package/skills/peach-debug/SKILL.md +0 -1
- package/skills/peach-perf/SKILL.md +0 -1
- package/skills/peach-setup/SKILL.md +0 -1
- package/skills/peach-test/SKILL.md +7 -4
- package/skills/peach-visual/SKILL.md +0 -1
- package/src/admitted-mac-build.ts +3 -0
- package/src/android-app-identity.ts +18 -0
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/android-root-module.ts +9 -9
- package/src/appPackageContract.ts +83 -0
- package/src/bridge-contract.ts +50 -0
- package/src/bundle-channel.mjs +41 -6
- package/src/cli-runtime.ts +9 -5
- package/src/dev-bundle-resolution.ts +7 -27
- package/src/dom-source-reference.ts +15 -0
- package/src/expo-discovery-cache.ts +134 -26
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-manifest-body.ts +33 -0
- package/src/expo-native-workspace.ts +158 -38
- package/src/expo-swift-host.ts +350 -75
- package/src/expo-swift-ready.ts +5 -1
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +10 -0
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +41 -2
- package/src/host/app-package-handler.ts +47 -0
- package/src/host/bridge-host.ts +8 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/staged-host-files.ts +18 -0
- package/src/index.ts +3 -0
- package/src/kotlin-host.ts +225 -48
- package/src/kotlin-instance-source.ts +126 -0
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +14 -0
- package/src/native-app-identity-project.ts +7 -2
- package/src/native-app-identity.ts +11 -0
- package/src/native-firebase-config.ts +24 -1
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +270 -270
- package/src/nitro-adapter.ts +56 -50
- package/src/nitro-bundle.ts +92 -74
- package/src/nitro-compile.ts +45 -14
- package/src/nitro-dependencies.ts +63 -46
- package/src/nitro-source.ts +64 -26
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +71 -21
- package/src/react-native-bridge-modules.ts +70 -42
- package/src/react-native-host-modules.ts +34 -1
- package/src/reactNativeConfigurationContract.ts +14 -0
- package/src/reap-browser.ts +15 -3
- package/src/sdk.ts +5 -0
- package/src/settingsContract.ts +38 -1
- package/src/sim-client.ts +4 -1
- package/src/storageSnapshotContract.ts +32 -81
- package/src/swift-compile.ts +268 -89
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/provenance.ts +1 -0
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
- package/src/swift-coverage/xcode-assets.ts +89 -131
- package/src/swift-coverage/xcode.ts +10 -2
- package/src/swift-cxx-reachable.ts +2 -1
- package/src/swift-distribution.lock.json +20 -16
- package/src/swift-host.ts +98 -22
- package/src/swift-icu.ts +1 -1
- package/src/swift-link-roots.ts +118 -0
- package/src/swift-objc-compile.ts +144 -22
- package/src/swift-objc-import.ts +6 -0
- package/src/swift-objc-standin.ts +2 -14
- package/src/swift-package-manifest.ts +14 -6
- package/src/swift-packages.ts +75 -11
- package/src/swift-pdf-raster.ts +1 -0
- package/src/swift-root-lock.ts +17 -1
- package/src/swift-source-pods.ts +2 -10
- package/src/swift-standin-emit.ts +597 -57
- package/src/swift-standins.ts +599 -56
- package/src/swift-submit.ts +7 -1
- package/src/swift-toolchain.ts +140 -17
- package/src/turbo-bundle.ts +81 -0
- package/src/turbo-codegen-intake.ts +91 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +17 -12
- package/src/vite-plugin.ts +28 -15
- package/src/xcode-project.ts +223 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1738 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NativeEvaluationLease } from '../native-evaluation-lease.d.ts';
|
|
2
2
|
export type NativeCookie = {
|
|
3
3
|
name: string;
|
|
4
4
|
value: string;
|
|
@@ -19,16 +19,25 @@ export type StoredCookie = NativeCookie & {
|
|
|
19
19
|
};
|
|
20
20
|
export type CookieStore = Map<string, StoredCookie>;
|
|
21
21
|
export type CookieStoreErrorKind = 'invalid-url' | 'invalid-cookie' | 'domain-mismatch';
|
|
22
|
-
declare class
|
|
22
|
+
declare class NativeCookieJar extends Map<string, StoredCookie> {
|
|
23
|
+
persistence?: {
|
|
24
|
+
storage: Storage;
|
|
25
|
+
key: string;
|
|
26
|
+
value: string | null;
|
|
27
|
+
};
|
|
23
28
|
private changed;
|
|
24
29
|
set(key: string, value: StoredCookie): this;
|
|
25
30
|
delete(key: string): boolean;
|
|
26
31
|
clear(): void;
|
|
27
32
|
}
|
|
28
|
-
export declare function bindNativeCookieStore(
|
|
33
|
+
export declare function bindNativeCookieStore(lease: NativeEvaluationLease): void;
|
|
34
|
+
export declare function cookieStoresForEvaluation(lease: NativeEvaluationLease): {
|
|
35
|
+
native: NativeCookieJar;
|
|
36
|
+
webKit: NativeCookieJar;
|
|
37
|
+
};
|
|
29
38
|
export declare const cookieStores: {
|
|
30
|
-
readonly native:
|
|
31
|
-
readonly webKit:
|
|
39
|
+
readonly native: NativeCookieJar;
|
|
40
|
+
readonly webKit: NativeCookieJar;
|
|
32
41
|
};
|
|
33
42
|
export declare function createCookieOperations(): {
|
|
34
43
|
storeResponseCookies: (store: CookieStore, url: string, headers: readonly string[]) => void;
|
|
@@ -70,12 +79,12 @@ declare const { storeResponseCookies, cookiesMatching, parseCookieUrl, normalize
|
|
|
70
79
|
};
|
|
71
80
|
export { cookieKey };
|
|
72
81
|
export declare const nativeFetchCookies: {
|
|
73
|
-
request(url: string, store?:
|
|
74
|
-
response(url: string, headers: readonly string[], store?:
|
|
82
|
+
request(url: string, store?: NativeCookieJar): string;
|
|
83
|
+
response(url: string, headers: readonly string[], store?: NativeCookieJar): void;
|
|
75
84
|
};
|
|
76
85
|
export declare const webKitCookieOperationsSource: string;
|
|
77
86
|
export declare const webKitCookieStorage: {
|
|
78
|
-
readonly default:
|
|
87
|
+
readonly default: NativeCookieJar;
|
|
79
88
|
isolated: () => CookieStore;
|
|
80
89
|
response(store: CookieStore, url: string, headers: readonly string[]): void;
|
|
81
90
|
observe(store: CookieStore, changed: () => void): () => void;
|
|
@@ -22,6 +22,7 @@ export declare function setPaintContinuationRenderCallback(cb: ((node: SootSimNo
|
|
|
22
22
|
export declare function glassTakesAnimatedParameters(node: SootSimNode): boolean;
|
|
23
23
|
export declare function prewarmPaintBoundaries(root: SootSimNode, ctx: RenderContext, budgetMs: number, realizeInto?: Surface | null, reach?: PrewarmReach, requireProgress?: boolean, paintedNodeIds?: ReadonlySet<number>): {
|
|
24
24
|
records: number;
|
|
25
|
+
nodesCompleted: number;
|
|
25
26
|
rasterPromotions: number;
|
|
26
27
|
complete: boolean;
|
|
27
28
|
realizeMs: number;
|
|
@@ -86,12 +86,15 @@ export interface SystemFontDesign {
|
|
|
86
86
|
tracking: ReadonlyArray<readonly [number, number]>;
|
|
87
87
|
}
|
|
88
88
|
export declare function registerSystemFontDesign(family: string, design: SystemFontDesign): void;
|
|
89
|
-
export declare function resolveFontWeightAxis(fontWeight: unknown,
|
|
90
|
-
export declare function resolveOpticalSizeAxis(fontSize: number,
|
|
89
|
+
export declare function resolveFontWeightAxis(fontWeight: unknown, requestedFamily?: string): number;
|
|
90
|
+
export declare function resolveOpticalSizeAxis(fontSize: number, requestedFamily?: string): number;
|
|
91
91
|
export declare function resolveFontVariations(fontFamily: string | undefined, fontSize: number, fontWeight: unknown, fontStyle?: unknown, fontVariationSettings?: SootSimStyle['fontVariationSettings']): {
|
|
92
92
|
axis: string;
|
|
93
93
|
value: number;
|
|
94
94
|
}[] | undefined;
|
|
95
|
+
export declare function isIosSystemDesignName(family: string): boolean;
|
|
96
|
+
export declare function systemDesignProviderFamilies(companionFamily: string): string[];
|
|
97
|
+
export declare function canonicalRegisteredFamily(family: string): string;
|
|
95
98
|
export declare function markSystemCompanionFontFamily(family: string): void;
|
|
96
99
|
export declare function getFontRegistrationGeneration(): number;
|
|
97
100
|
export declare function noteTextSymbolRegistered(): void;
|
|
@@ -119,8 +122,8 @@ export declare function needsSystemVariantFace(fontVariant: readonly string[] |
|
|
|
119
122
|
export declare function resolveFontFamilies(family?: string, fontWeight?: unknown, fontStyle?: unknown, fontVariant?: readonly string[], caseSensitiveForms?: true): string[];
|
|
120
123
|
export declare function resolveAndroidEmojiFontFamilies(): readonly string[];
|
|
121
124
|
export declare function isSystemFontFamily(requestedFamily: string | undefined): boolean;
|
|
122
|
-
export declare function resolveSystemLetterSpacing(letterSpacing: unknown, fontSize: number,
|
|
123
|
-
export declare function resolveSystemTighteningLimit(fontSize: number,
|
|
125
|
+
export declare function resolveSystemLetterSpacing(letterSpacing: unknown, fontSize: number, requestedFamily?: string, fontWeight?: unknown): number;
|
|
126
|
+
export declare function resolveSystemTighteningLimit(fontSize: number, requestedFamily?: string): number;
|
|
124
127
|
export declare function resolveSystemTextOffset(fontFamily: string | undefined, physicalPixel: number): {
|
|
125
128
|
x: number;
|
|
126
129
|
y: number;
|
|
@@ -107,6 +107,7 @@ interface CacheRow {
|
|
|
107
107
|
resizeHeight: number | null;
|
|
108
108
|
rasterTarget: RasterDecodeTarget | null;
|
|
109
109
|
}
|
|
110
|
+
export declare function countWindowPendingFetches(reachesWindow: (node: SootSimNode) => boolean): number;
|
|
110
111
|
export declare function getImageLoaderStats(): {
|
|
111
112
|
cacheEntries: number;
|
|
112
113
|
cacheRows: {
|
|
@@ -123,8 +124,8 @@ export declare function getImageLoaderStats(): {
|
|
|
123
124
|
inImagePaint: boolean;
|
|
124
125
|
cachePixelBudget: number;
|
|
125
126
|
cacheMaxEntries: number;
|
|
126
|
-
pendingFetches: number;
|
|
127
127
|
pendingBytes: number;
|
|
128
|
+
fetchesInFlight: number;
|
|
128
129
|
failedUris: number;
|
|
129
130
|
snapshots: number;
|
|
130
131
|
snapshotPerf: {
|
|
@@ -327,7 +328,7 @@ export declare function getImageNodeDecodedScale(node: SootSimNode): number | nu
|
|
|
327
328
|
export declare function getImageNodeTransform(node: SootSimNode, transformKey: string): readonly (SkImage | null)[] | null;
|
|
328
329
|
export declare function storeImageNodeTransform(node: SootSimNode, transformKey: string, images: readonly (SkImage | null)[]): boolean;
|
|
329
330
|
export declare function getImageNodeRepeatShaders(node: SootSimNode, transformKey: string, tileModes: readonly (readonly [TileMode, TileMode])[]): readonly (SkShader | null)[] | null;
|
|
330
|
-
export declare function getImageSize(uri: string, headers?: Record<string, string
|
|
331
|
+
export declare function getImageSize(uri: string, headers?: Record<string, string>, nativeUserAgent?: string | null): Promise<{
|
|
331
332
|
width: number;
|
|
332
333
|
height: number;
|
|
333
334
|
} | null>;
|
|
@@ -349,10 +350,12 @@ export declare function engineDeployBase(): string;
|
|
|
349
350
|
export declare function resolveImageFetchUri(uri: string): string;
|
|
350
351
|
export declare function hasSootSimFile(uri: string): boolean;
|
|
351
352
|
export declare function readSootSimFileBytes(uri: string): Uint8Array | null;
|
|
353
|
+
export declare function sootSimFileSize(uri: string): number | null;
|
|
352
354
|
export declare function storeImageBytes(uri: string, buffer: ArrayBuffer, headers?: Record<string, string>): void;
|
|
353
355
|
export declare function registerRecordedImageBytes(uri: string, buffer: ArrayBuffer, headers?: Record<string, string>): void;
|
|
354
|
-
export declare function awaitImageBytes(uri: string, headers?: Record<string, string
|
|
355
|
-
export declare function loadBytesForUri(uri: string, headers?: Record<string, string>, signal?: AbortSignal, onProgress?: (event: ImageDownloadProgress) => void, downloadTimeoutMs?: number): Promise<Uint8Array>;
|
|
356
|
+
export declare function awaitImageBytes(uri: string, headers?: Record<string, string>, nativeUserAgent?: string | null): Promise<ArrayBuffer>;
|
|
357
|
+
export declare function loadBytesForUri(uri: string, headers?: Record<string, string>, signal?: AbortSignal, onProgress?: (event: ImageDownloadProgress) => void, downloadTimeoutMs?: number, nativeUserAgent?: string | null): Promise<Uint8Array>;
|
|
358
|
+
export declare function setNodeNativeUserAgentResolver(resolver: ((node: SootSimNode) => string | null) | null): void;
|
|
356
359
|
export declare function setSvgRasterizeFallback(fallback: ((bytes: Uint8Array, targetWidth: number, targetHeight: number) => Promise<Uint8Array | null>) | null): void;
|
|
357
360
|
export declare function isSvgUri(uri: string): boolean;
|
|
358
361
|
export declare function looksLikeSvgBytes(bytes: Uint8Array): boolean;
|
|
@@ -363,13 +366,13 @@ export declare function hasImageLoadInFlight(): boolean;
|
|
|
363
366
|
export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext): void;
|
|
364
367
|
export declare function drawsLiveImage(node: SootSimNode): boolean;
|
|
365
368
|
export declare function touchPaintedImage(node: SootSimNode, ctx: RenderContext): void;
|
|
366
|
-
export declare function releaseDetachedSubtreeImages(root: SootSimNode): void;
|
|
369
|
+
export declare function releaseDetachedSubtreeImages(root: SootSimNode, releasePixels: boolean): void;
|
|
367
370
|
export declare function requeueAttachedSubtreeImages(root: SootSimNode): void;
|
|
368
371
|
export declare function clearImageRepeatShader(node: SootSimNode): void;
|
|
369
372
|
export declare function clearImageNodeRepeatShaders(node: SootSimNode): void;
|
|
370
373
|
export declare function releaseImageNode(node: SootSimNode): void;
|
|
371
374
|
export declare function readImagePrefetchRequest(uri: string, exactCacheKey: string): ImageDecodeRequest | null;
|
|
372
|
-
export declare function prefetchImage(uri: string, requestId?: number, exactCacheKey?: string, headers?: Record<string, string>, paintNode?: SootSimNode): Promise<boolean>;
|
|
375
|
+
export declare function prefetchImage(uri: string, requestId?: number, exactCacheKey?: string, headers?: Record<string, string>, paintNode?: SootSimNode, nativeUserAgent?: string | null): Promise<boolean>;
|
|
373
376
|
export declare function sniffImageMediaType(bytes: Uint8Array): string | null;
|
|
374
377
|
export declare function clearImageCache(uri: string): void;
|
|
375
378
|
export declare function resolveSvgRasterTargetDimensions(intrinsicWidth: number, intrinsicHeight: number, resizeWidth?: number, resizeHeight?: number): {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type DamageRect } from './damage-rect.d.ts';
|
|
2
1
|
import { type GlassInteractionGlow, type GlassMotionScope, type GlassShapeArrow, type GlassShape, type GlassStyle } from './glass-material.d.ts';
|
|
3
2
|
import { resolveAnimatedLiquidGlassRect } from './liquid-glass-rect.d.ts';
|
|
4
3
|
import { type LiquidGlassType } from './liquid-glass-shaders.d.ts';
|
|
@@ -258,10 +257,6 @@ export declare function drawWithLensFold(opts: {
|
|
|
258
257
|
export declare function resetGlassFrameCache(frameTimeMs: number, surface?: Surface, damage?: FrameDamage | null, dpr?: number): void;
|
|
259
258
|
export declare function liquidGlassFrameEpoch(): number;
|
|
260
259
|
export declare function beginGlassJsFrame(frameTimeMs: number): void;
|
|
261
|
-
export declare function replayedLiquidGlassSamples(ck: CanvasKit): {
|
|
262
|
-
bounds: DamageRect | null;
|
|
263
|
-
moved: boolean;
|
|
264
|
-
};
|
|
265
260
|
export declare function initLiquidGlass(ck: CanvasKit): RuntimeEffect[];
|
|
266
261
|
export declare function disposeLiquidGlass(): void;
|
|
267
262
|
export declare function makeLiquidGlassAdaptiveForegroundShader(ck: CanvasKit, backdropCacheKey: number, foregroundOffset: [number, number]): Shader | null;
|
|
@@ -8,6 +8,14 @@ declare function readJsHeap(): {
|
|
|
8
8
|
usedJSHeapSize: number;
|
|
9
9
|
totalJSHeapSize: number;
|
|
10
10
|
jsHeapSizeLimit: number;
|
|
11
|
+
externalMemory: number;
|
|
12
|
+
mallocedMemory: number;
|
|
13
|
+
} | {
|
|
14
|
+
externalMemory?: undefined;
|
|
15
|
+
mallocedMemory?: undefined;
|
|
16
|
+
usedJSHeapSize: number;
|
|
17
|
+
totalJSHeapSize: number;
|
|
18
|
+
jsHeapSizeLimit: number;
|
|
11
19
|
} | null;
|
|
12
20
|
export interface EngineMemoryCounts {
|
|
13
21
|
nodesRegistered: number;
|
|
@@ -15,7 +23,9 @@ export interface EngineMemoryCounts {
|
|
|
15
23
|
detachedTypes: Record<string, number>;
|
|
16
24
|
objects: ReturnType<typeof readLiveObjectCounts> & ReturnType<typeof hostLedger>;
|
|
17
25
|
activeNativeAnimations: number;
|
|
18
|
-
imageLoader: ReturnType<typeof getImageLoaderStats
|
|
26
|
+
imageLoader: ReturnType<typeof getImageLoaderStats> & {
|
|
27
|
+
pendingFetches: number;
|
|
28
|
+
};
|
|
19
29
|
workerHeap: ReturnType<typeof readJsHeap>;
|
|
20
30
|
wasmHeapBytes: number | null;
|
|
21
31
|
swiftWasmHeapBytes: number | null;
|
|
@@ -30,17 +30,6 @@ export declare function hasParsedMetalEffects(): boolean;
|
|
|
30
30
|
export declare function noteMetalEffects(style: {
|
|
31
31
|
_filter?: readonly ParsedFilterOp[];
|
|
32
32
|
}): void;
|
|
33
|
-
declare class NodeRegistry {
|
|
34
|
-
private map;
|
|
35
|
-
private reaper;
|
|
36
|
-
set(id: number, node: SootSimNode | SootSimTextNode): this;
|
|
37
|
-
get(id: number): SootSimNode | SootSimTextNode | undefined;
|
|
38
|
-
delete(id: number): boolean;
|
|
39
|
-
values(): IterableIterator<SootSimNode | SootSimTextNode>;
|
|
40
|
-
get size(): number;
|
|
41
|
-
}
|
|
42
|
-
declare const handleToNode: NodeRegistry;
|
|
43
|
-
export { handleToNode };
|
|
44
33
|
export declare function registerHoistUnlinker(unlinker: (node: SootSimNode) => void): void;
|
|
45
34
|
export declare function registerBackdropGroupSyncer(syncer: (node: SootSimNode, style: Readonly<SootSimStyle> | null) => void): void;
|
|
46
35
|
export declare function registerLottieNodeDisposer(disposer: (node: SootSimNode) => void): void;
|
|
@@ -50,6 +39,8 @@ export declare function releaseDetachedSubtree(node: SootSimNode | SootSimTextNo
|
|
|
50
39
|
export declare function releaseOrphanedNodes(): number;
|
|
51
40
|
export declare function queueAllImageLoads(): void;
|
|
52
41
|
export declare function syncNodeScreenDetachState(node: SootSimNode, wasDetached: boolean): void;
|
|
42
|
+
export declare function readPanCapabilityVersion(): number;
|
|
43
|
+
export declare function propsCanStartPan(props: Record<string, unknown>): boolean;
|
|
53
44
|
export declare function readTreeVersion(): number;
|
|
54
45
|
export declare function readLayoutVersion(): number;
|
|
55
46
|
export declare function readScrollVersion(): number;
|
|
@@ -71,7 +62,7 @@ export declare const PAINT_NONE = 0;
|
|
|
71
62
|
export declare const PAINT_OWN = 1;
|
|
72
63
|
export declare const PAINT_TREE = 2;
|
|
73
64
|
export type PaintChange = typeof PAINT_NONE | typeof PAINT_OWN | typeof PAINT_TREE;
|
|
74
|
-
export declare function markWireNodeChanged(node?: SootSimNode | SootSimTextNode | null, paintChange?: PaintChange): void;
|
|
65
|
+
export declare function markWireNodeChanged(node?: SootSimNode | SootSimTextNode | null, paintChange?: PaintChange, shapeChanged?: boolean): void;
|
|
75
66
|
export declare function setStyleChangeListener(listener: (node: SootSimNode) => void): void;
|
|
76
67
|
export declare function hasUnownedLiveAnimatedStyle(node: SootSimNode): boolean;
|
|
77
68
|
export declare function refreshLiveAnimatedSceneGeometry(node: SootSimNode): void;
|
|
@@ -193,6 +184,7 @@ export declare class SootSimNode {
|
|
|
193
184
|
private _connectedAnimatedStyles;
|
|
194
185
|
_wireRevision: number;
|
|
195
186
|
_wireSubtreeRevision: number;
|
|
187
|
+
_wireShapeRevision: number;
|
|
196
188
|
_styleEpoch: number;
|
|
197
189
|
_nativeAnimationScanRevision: number;
|
|
198
190
|
_nativeAnimationScanKeysRevision: number;
|
|
@@ -540,6 +532,7 @@ export declare class SootSimNode {
|
|
|
540
532
|
_paintBoundary?: import('./paint-boundary-types.d.ts').PaintBoundaryState | null;
|
|
541
533
|
__lastBackdropSig?: string;
|
|
542
534
|
constructor(type: SootSimNodeType, props?: Record<string, any>, nativeRenderer?: NativeRenderer, fabricTextEpsilon?: number, resolvedStyle?: SootSimStyle, svgCurrentColorUsesPaintOpacity?: boolean);
|
|
535
|
+
private hostChildrenChangePending;
|
|
543
536
|
notifyHostChildrenChange(): void;
|
|
544
537
|
appendChild(child: SootSimNode): void;
|
|
545
538
|
insertBefore(child: SootSimNode, before: SootSimNode): void;
|
|
@@ -22,7 +22,7 @@ interface DamageNative {
|
|
|
22
22
|
_peach_damage_glow_complete(id: number, failed: number): void;
|
|
23
23
|
_peach_damage_reset(id: number): void;
|
|
24
24
|
_peach_damage_begin(id: number, width: number, height: number, dpr: number, threshold: number, forced: number, root: number, floor: number): void;
|
|
25
|
-
_peach_damage_end(id: number
|
|
25
|
+
_peach_damage_end(id: number): void;
|
|
26
26
|
_peach_damage_read(id: number, which: number): void;
|
|
27
27
|
_peach_layout_damage_slots(count: number): number;
|
|
28
28
|
_peach_layout_damage(id: number, count: number, mode: number): number;
|
|
@@ -103,5 +103,5 @@ export interface DamageFrameEnd {
|
|
|
103
103
|
damage: DamageRect | null;
|
|
104
104
|
deferred: DamageRect | null;
|
|
105
105
|
}
|
|
106
|
-
export declare function endDamageFrame(damage: FrameDamage
|
|
106
|
+
export declare function endDamageFrame(damage: FrameDamage): DamageFrameEnd;
|
|
107
107
|
export {};
|
|
@@ -11,6 +11,11 @@ export interface ParagraphBaselineInputs {
|
|
|
11
11
|
textFontScale: number | null;
|
|
12
12
|
contentHeight: number;
|
|
13
13
|
deviceScale: number;
|
|
14
|
+
fieldLine?: {
|
|
15
|
+
lineTop: number;
|
|
16
|
+
hostContentTop: number;
|
|
17
|
+
hostContentHeight: number;
|
|
18
|
+
};
|
|
14
19
|
}
|
|
15
20
|
export declare function compressedTextKitBaseline(style: SootSimStyle, fontSize: number, paragraphLineHeight: number | null): number | null;
|
|
16
21
|
export declare function iosParagraphBaselineOffset(input: ParagraphBaselineInputs): number | null;
|
|
@@ -4,6 +4,7 @@ import type { Canvas, Paragraph as NativeParagraph } from 'canvaskit-wasm';
|
|
|
4
4
|
export type Paragraph = NativeParagraph | AttributedParagraph;
|
|
5
5
|
type AttributedRuntime = typeof import('./attributed-paragraph.d.ts');
|
|
6
6
|
export declare function hasAttributedParagraphStyle(node: SootSimNode): boolean;
|
|
7
|
+
export declare function admitAttributedParagraphRuntime(): Promise<void>;
|
|
7
8
|
export declare function pendingAttributedParagraphForTree(root: SootSimNode): Promise<void> | null;
|
|
8
9
|
export declare function getAttributedParagraphRuntime(): AttributedRuntime;
|
|
9
10
|
export declare function isAttributedParagraph(paragraph: Paragraph | null | undefined): paragraph is AttributedParagraph;
|
|
@@ -253,6 +253,8 @@ type SootSimLiquidGlassStyle = Omit<LiquidGlassConfig, 'cornerRadius' | 'bodyOpa
|
|
|
253
253
|
interactionIntensity?: SootSimAnimatedNumber;
|
|
254
254
|
};
|
|
255
255
|
export interface SootSimStyle {
|
|
256
|
+
resizeMode?: 'cover' | 'contain' | 'stretch' | 'center' | 'repeat' | 'none';
|
|
257
|
+
objectFit?: 'contain' | 'cover' | 'fill' | 'scale-down' | 'none';
|
|
256
258
|
_paragraphStyle?: AttributedParagraphStyle;
|
|
257
259
|
userInterfaceStyle?: 'light' | 'dark';
|
|
258
260
|
flex?: number;
|
|
@@ -553,6 +555,7 @@ export interface LayoutContext extends RenderContextBase {
|
|
|
553
555
|
export interface PrewarmPass {
|
|
554
556
|
requireProgress: boolean;
|
|
555
557
|
completed: WeakSet<SootSimNode> | null;
|
|
558
|
+
nodesCompleted: number;
|
|
556
559
|
reachSkips: number;
|
|
557
560
|
deadlineMs: number;
|
|
558
561
|
records: number;
|
|
@@ -4,12 +4,14 @@ export type NativePreviewProjectBinding = {
|
|
|
4
4
|
projectId: string;
|
|
5
5
|
routeKey: string;
|
|
6
6
|
previewSessionId: string;
|
|
7
|
+
storageScope: string;
|
|
7
8
|
};
|
|
8
9
|
export type NativePreviewNetworkBinding = {
|
|
9
10
|
useProjectServer: false;
|
|
10
11
|
projectId?: never;
|
|
11
12
|
routeKey?: never;
|
|
12
13
|
previewSessionId?: never;
|
|
14
|
+
storageScope?: never;
|
|
13
15
|
};
|
|
14
16
|
export type NativePreviewBundleShared = {
|
|
15
17
|
appFonts?: string | null;
|
|
@@ -1168,6 +1168,7 @@ export interface CompositorStats {
|
|
|
1168
1168
|
};
|
|
1169
1169
|
images: ImageLoaderStats & {
|
|
1170
1170
|
totalCacheEntries: number;
|
|
1171
|
+
pendingFetches: number;
|
|
1171
1172
|
memoryTrims: number;
|
|
1172
1173
|
gpuCacheBytes: number | null;
|
|
1173
1174
|
};
|
|
@@ -1350,6 +1351,7 @@ export type CompositorHostToWorker = {
|
|
|
1350
1351
|
requestId: number;
|
|
1351
1352
|
uri: string;
|
|
1352
1353
|
headers?: Record<string, string>;
|
|
1354
|
+
appId?: string;
|
|
1353
1355
|
} | {
|
|
1354
1356
|
type: 'imagePrefetch';
|
|
1355
1357
|
requestId: number;
|
|
@@ -1357,6 +1359,7 @@ export type CompositorHostToWorker = {
|
|
|
1357
1359
|
imageRequestId?: number;
|
|
1358
1360
|
exactCacheKey?: string;
|
|
1359
1361
|
headers?: Record<string, string>;
|
|
1362
|
+
appId?: string;
|
|
1360
1363
|
} | {
|
|
1361
1364
|
type: 'imageStoreBytes';
|
|
1362
1365
|
requestId: number;
|
|
@@ -1368,6 +1371,7 @@ export type CompositorHostToWorker = {
|
|
|
1368
1371
|
requestId: number;
|
|
1369
1372
|
uri: string;
|
|
1370
1373
|
headers?: Record<string, string>;
|
|
1374
|
+
appId?: string;
|
|
1371
1375
|
} | {
|
|
1372
1376
|
type: 'imageAbort';
|
|
1373
1377
|
requestId: number;
|
|
@@ -1530,6 +1534,7 @@ export type ShellToCompositorMessage = {
|
|
|
1530
1534
|
surfaces: Array<{
|
|
1531
1535
|
surfaceId: AuxAppSurfaceId;
|
|
1532
1536
|
appId: string | null;
|
|
1537
|
+
nativeUserAgent: string | null;
|
|
1533
1538
|
generation: number;
|
|
1534
1539
|
paused: boolean;
|
|
1535
1540
|
wantsChromeLuminance: boolean;
|
|
@@ -1762,6 +1767,10 @@ export type CompositorWorkerToHost = {
|
|
|
1762
1767
|
key: string;
|
|
1763
1768
|
} | {
|
|
1764
1769
|
type: 'bootstrapped';
|
|
1770
|
+
} | {
|
|
1771
|
+
type: 'log';
|
|
1772
|
+
level: 'warn' | 'error';
|
|
1773
|
+
args: string[];
|
|
1765
1774
|
} | {
|
|
1766
1775
|
type: 'ready';
|
|
1767
1776
|
adapter: GraphiteAdapterIdentity;
|
|
@@ -318,6 +318,7 @@ export type HostServiceRequest = {
|
|
|
318
318
|
requestId: number;
|
|
319
319
|
uri: string;
|
|
320
320
|
headers?: Record<string, string>;
|
|
321
|
+
appId?: string;
|
|
321
322
|
} | {
|
|
322
323
|
type: 'rnVideoThumbnail';
|
|
323
324
|
requestId: number;
|
|
@@ -330,6 +331,7 @@ export type HostServiceRequest = {
|
|
|
330
331
|
imageRequestId?: number;
|
|
331
332
|
exactCacheKey?: string;
|
|
332
333
|
headers?: Record<string, string>;
|
|
334
|
+
appId?: string;
|
|
333
335
|
} | {
|
|
334
336
|
type: 'rnImageStoreBytes';
|
|
335
337
|
requestId: number;
|
|
@@ -341,6 +343,7 @@ export type HostServiceRequest = {
|
|
|
341
343
|
requestId: number;
|
|
342
344
|
uri: string;
|
|
343
345
|
headers?: Record<string, string>;
|
|
346
|
+
appId?: string;
|
|
344
347
|
} | {
|
|
345
348
|
type: 'rnImageAbort';
|
|
346
349
|
requestId: number;
|
|
@@ -11,7 +11,7 @@ export declare function isNativeUICommandPresentation(request: NativeUIRequest):
|
|
|
11
11
|
export declare function isNativeUICommandSettlement(event: NativeUIEvent): event is NativeUICommandSettlement;
|
|
12
12
|
export declare function nativeUICommandPresentationKind(event: NativeUICommandSettlement): NativeUICommandPresentation['kind'];
|
|
13
13
|
type NativeUIRead = Extract<ShellTestBridgeRequest, {
|
|
14
|
-
method: 'listSemanticInspectable' | 'captureAccessibilityTree' | 'findByText' | 'resolveTapTarget' | 'queryAll';
|
|
14
|
+
method: 'listSemanticInspectable' | 'captureAccessibilityTree' | 'findByText' | 'resolveTapTarget' | 'verifyTapTargetAt' | 'queryAll';
|
|
15
15
|
}>;
|
|
16
16
|
export type NativeUICommand = NativeUIRead | {
|
|
17
17
|
type: 'tap';
|
|
@@ -117,7 +117,7 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
117
117
|
} | {
|
|
118
118
|
type: 'init';
|
|
119
119
|
nativeWidget?: import('./native-widgetContract.d.ts').NativeWidgetMount;
|
|
120
|
-
compositorBackend
|
|
120
|
+
compositorBackend?: CompositorBackend;
|
|
121
121
|
shellPort: MessagePort;
|
|
122
122
|
hostTimeOrigin: number;
|
|
123
123
|
animationClock: AnimationClockSnapshot;
|
|
@@ -132,7 +132,7 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
132
132
|
bodyPose: InterfacePose;
|
|
133
133
|
reactNativeConfiguration: ReactNativeConfigurationSnapshot;
|
|
134
134
|
nativeResourcesPort: MessagePort;
|
|
135
|
-
canvasKitWasmModule
|
|
135
|
+
canvasKitWasmModule?: WebAssembly.Module;
|
|
136
136
|
engineBase: string;
|
|
137
137
|
fontUrls: string[];
|
|
138
138
|
fontBuffers?: Record<string, ArrayBuffer>;
|
|
@@ -465,6 +465,11 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
465
465
|
type: 'bundleStripCapture';
|
|
466
466
|
requestId: number;
|
|
467
467
|
};
|
|
468
|
+
export type LocalTenantInit = Extract<HostToWorker, {
|
|
469
|
+
type: 'init';
|
|
470
|
+
}> & Required<Pick<Extract<HostToWorker, {
|
|
471
|
+
type: 'init';
|
|
472
|
+
}>, 'canvasKitWasmModule' | 'compositorBackend'>>;
|
|
468
473
|
export interface SerializedRecordedEntry {
|
|
469
474
|
url: string;
|
|
470
475
|
urlhash: string;
|
|
@@ -121,6 +121,7 @@ export interface ShellInputs {
|
|
|
121
121
|
threeMode: boolean;
|
|
122
122
|
showHomeIndicator: boolean;
|
|
123
123
|
predictiveText: boolean;
|
|
124
|
+
hardwareKeyboard: boolean;
|
|
124
125
|
device: ShellDeviceSync;
|
|
125
126
|
duoFold: DuoFoldWireState;
|
|
126
127
|
androidSystemBars: AndroidSystemBarsState;
|
|
@@ -432,6 +433,10 @@ export type ShellHostToWorker = {
|
|
|
432
433
|
type: 'registerAppFonts';
|
|
433
434
|
requestId: number;
|
|
434
435
|
specs: AppFontWireSpec[];
|
|
436
|
+
} | {
|
|
437
|
+
type: 'nativeFetchUserAgent';
|
|
438
|
+
appId: string;
|
|
439
|
+
userAgent: string | null;
|
|
435
440
|
} | {
|
|
436
441
|
type: 'scrollMirror';
|
|
437
442
|
payload: import('./scroll-mirror.d.ts').ScrollMirrorEnvelope;
|
|
@@ -6,7 +6,7 @@ import type { HostToWorker } from './protocol.d.ts';
|
|
|
6
6
|
import type { ShellHostToWorker } from './shell-protocol.d.ts';
|
|
7
7
|
import type { WireSurfaceUpdate } from './shell-tree-wire.d.ts';
|
|
8
8
|
export type TenantToShellPeerMessage = Extract<ShellHostToWorker, {
|
|
9
|
-
type: 'worklet' | 'workletBatch' | 'scrollMirror' | 'scrollControl' | 'nativeUIRequest' | 'gestureSeamRequest' | 'gestureSeamRequestBatch' | 'nativeMenuGestureBegin' | 'cursorMirror' | 'editMenuMirror' | 'loupeMirror' | 'registerAppFonts' | 'requestEngineResource' | 'engineResource' | 'storageSync';
|
|
9
|
+
type: 'worklet' | 'workletBatch' | 'scrollMirror' | 'scrollControl' | 'nativeUIRequest' | 'gestureSeamRequest' | 'gestureSeamRequestBatch' | 'nativeMenuGestureBegin' | 'cursorMirror' | 'editMenuMirror' | 'loupeMirror' | 'registerAppFonts' | 'nativeFetchUserAgent' | 'requestEngineResource' | 'engineResource' | 'storageSync';
|
|
10
10
|
}>;
|
|
11
11
|
export type ShellToTenantPeerMessage = Extract<HostToWorker, {
|
|
12
12
|
type: 'worklet' | 'scrollControl' | 'scrollSlotsRetired' | 'gestureSeamEvent' | 'screenEdgeSwipeCommit' | 'shellScreenInteractive' | 'screenFormSheetCommit' | 'screenTransitionStarted' | 'screenTransitionProgress' | 'cursorRectBack' | 'editMenuRectsBack' | 'imageLifecycleEvent' | 'lottieLifecycleEvent' | 'appFontsRegistered' | 'engineResource' | 'requestEngineResource';
|
|
@@ -62,6 +62,10 @@ export type ValueSpec = {
|
|
|
62
62
|
kind: 'hostValue';
|
|
63
63
|
codec: string;
|
|
64
64
|
data: unknown;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'custom';
|
|
67
|
+
unpack: WorkletFunctionSpec;
|
|
68
|
+
packed: ValueSpec;
|
|
65
69
|
} | {
|
|
66
70
|
kind: 'fn';
|
|
67
71
|
reanimated2?: true;
|
|
@@ -230,10 +234,11 @@ export declare function markWorkletBuiltin<T extends object>(name: string, value
|
|
|
230
234
|
export declare function markWorkletHostFunction<T extends (...args: never[]) => void>(fn: T): T;
|
|
231
235
|
export declare function isWorkletHostFunction(value: unknown): value is (...args: unknown[]) => void;
|
|
232
236
|
export interface WorkletHostValueCodec<T extends object, D> {
|
|
233
|
-
pack(value: T): D;
|
|
237
|
+
pack(value: T, carrier?: WorkletRuntime): D;
|
|
234
238
|
unpack(data: D): T;
|
|
235
239
|
receive?(data: D, decode: (value: ValueSpec) => unknown): void;
|
|
236
240
|
disposeRuntime?(runtime: WorkletRuntime): void;
|
|
241
|
+
retirePeer?(runtime: WorkletRuntime): void;
|
|
237
242
|
}
|
|
238
243
|
export interface WorkletHostValueUpdate {
|
|
239
244
|
codec: string;
|
|
@@ -241,6 +246,13 @@ export interface WorkletHostValueUpdate {
|
|
|
241
246
|
}
|
|
242
247
|
export declare function registerWorkletHostValueCodec<T extends object, D>(name: string, codec: WorkletHostValueCodec<T, D>): void;
|
|
243
248
|
export declare function markWorkletHostValue<T extends object>(target: T, codec: string): T;
|
|
249
|
+
export interface CustomSerializableRegistration {
|
|
250
|
+
name: string;
|
|
251
|
+
determine: (value: object) => boolean;
|
|
252
|
+
pack: (value: object) => unknown;
|
|
253
|
+
unpack: WorkletFn;
|
|
254
|
+
}
|
|
255
|
+
export declare function getCustomSerializationRegistry(): CustomSerializableRegistration[];
|
|
244
256
|
export interface WorkletDispatchOptions {
|
|
245
257
|
awaitReply?: boolean;
|
|
246
258
|
callerThread?: WorkletThreadIdentity;
|
|
@@ -274,6 +286,10 @@ export type AnimatedPropsWriteSlots = Record<string, {
|
|
|
274
286
|
export type WorkletMessagePayload = ({
|
|
275
287
|
type: 'runWorklet';
|
|
276
288
|
reanimated2?: true;
|
|
289
|
+
reanimated2Surface?: {
|
|
290
|
+
surfaceId: string;
|
|
291
|
+
generation: number;
|
|
292
|
+
};
|
|
277
293
|
runId: number;
|
|
278
294
|
code: string;
|
|
279
295
|
hash: number;
|
|
@@ -301,6 +317,10 @@ export type WorkletMessagePayload = ({
|
|
|
301
317
|
} | {
|
|
302
318
|
type: 'hostValueUpdates';
|
|
303
319
|
updates: WorkletHostValueUpdate[];
|
|
320
|
+
} | {
|
|
321
|
+
type: 'workletBundleModules';
|
|
322
|
+
key: string;
|
|
323
|
+
modules: WorkletBundleModule[];
|
|
304
324
|
} | {
|
|
305
325
|
type: 'workletDone';
|
|
306
326
|
runId: number;
|
|
@@ -560,6 +580,9 @@ export declare class WorkletRuntime {
|
|
|
560
580
|
private uiSyncReply;
|
|
561
581
|
private namedRuntimeDelegate;
|
|
562
582
|
private readonly bundleModuleGraph;
|
|
583
|
+
private shippedBundleGraphs;
|
|
584
|
+
private shippedBundleSources;
|
|
585
|
+
private peerOwnedBundleKeys;
|
|
563
586
|
private disposed;
|
|
564
587
|
private channel;
|
|
565
588
|
private sab;
|
|
@@ -651,6 +674,7 @@ export declare class WorkletRuntime {
|
|
|
651
674
|
private frameCallbackSchedule;
|
|
652
675
|
private frameCallbackRunToken;
|
|
653
676
|
private nativeFrames;
|
|
677
|
+
private frameTail;
|
|
654
678
|
private cssRuntime;
|
|
655
679
|
private cssRuntimeLoadPromise;
|
|
656
680
|
private pendingCSSMessages;
|
|
@@ -885,6 +909,7 @@ export declare class WorkletRuntime {
|
|
|
885
909
|
private queueJSCallbackRelease;
|
|
886
910
|
private serializeValueForDispatch;
|
|
887
911
|
private serializeClosureForDispatch;
|
|
912
|
+
private shipBundleGraph;
|
|
888
913
|
private serializeWorkletFunctionForDispatch;
|
|
889
914
|
private serializeRemoteFunctionForDispatch;
|
|
890
915
|
postJSCallback(id: number, args: unknown[]): void;
|
|
@@ -923,7 +948,10 @@ export declare class WorkletRuntime {
|
|
|
923
948
|
private bindRemoteWorklet;
|
|
924
949
|
}
|
|
925
950
|
export declare function freezeReanimated2Records<T>(value: T, seen?: WeakSet<WeakKey>): T;
|
|
926
|
-
export declare function invokeNativeWorklet(body: (...args: unknown[]) => unknown, receiver: unknown, args: unknown[], closure: object, reanimated2?: boolean
|
|
951
|
+
export declare function invokeNativeWorklet(body: (...args: unknown[]) => unknown, receiver: unknown, args: unknown[], closure: object, reanimated2?: boolean, surface?: {
|
|
952
|
+
surfaceId: string;
|
|
953
|
+
generation: number;
|
|
954
|
+
}): unknown;
|
|
927
955
|
export interface SharedValueProxy {
|
|
928
956
|
_id: number;
|
|
929
957
|
_isReanimatedSharedValue: true;
|
|
@@ -967,6 +995,12 @@ export declare function serializeValue(value: unknown): ValueSpec;
|
|
|
967
995
|
export declare function serializeValueSnapshot(value: unknown): ValueSpec;
|
|
968
996
|
export declare function serializeClosure(closure: WorkletClosure): ClosureSpec;
|
|
969
997
|
export declare function markObjectSV(target: object): void;
|
|
998
|
+
interface WorkletBundleModule {
|
|
999
|
+
id: number;
|
|
1000
|
+
source: string;
|
|
1001
|
+
dependencyMap: number[];
|
|
1002
|
+
name: string;
|
|
1003
|
+
}
|
|
970
1004
|
interface SanitizeState {
|
|
971
1005
|
seen: WeakMap<object, unknown>;
|
|
972
1006
|
active: WeakSet<object>;
|
|
@@ -29,5 +29,10 @@ export interface SootSimAudioRecorderBridge {
|
|
|
29
29
|
export interface SootSimMediaSessionBridge {
|
|
30
30
|
readonly session: Pick<MediaSession, 'metadata' | 'playbackState' | 'setActionHandler' | 'setPositionState'>;
|
|
31
31
|
readonly MediaMetadata: new (init?: MediaMetadataInit) => MediaMetadata;
|
|
32
|
+
readonly stateVersions: Readonly<{
|
|
33
|
+
metadata: number;
|
|
34
|
+
playbackState: number;
|
|
35
|
+
}>;
|
|
36
|
+
setOwnedActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler): () => boolean;
|
|
32
37
|
reset(): void;
|
|
33
38
|
}
|
|
@@ -7,7 +7,7 @@ export { SOOTSIM_NATIVE_PUBLIC_INSTANCE, isSootSimNativePublicInstance, withSoot
|
|
|
7
7
|
export type { NativeViewMeasureMode, NativeViewMeasure, PeachNativeWorkletEventDispatcher, SootSimNativePublicInstance, NumericTextPaintRequest, } from './nativeViewContract.d.ts';
|
|
8
8
|
export { SOOTSIM_BOOT_STAGE_ORDER, SOOTSIM_TENANT_READY_MARK, SOOTSIM_BOOT_MARKS_GLOBAL, dispatchSootsimEvent, listenSootsimEvent, } from './eventBridgeContract.d.ts';
|
|
9
9
|
export type { SootsimBridgeStatusDetail, SootsimActiveAppChangeDetail, SootsimSettingsPage, SootsimSettingsRoute, SootsimNavigateAppDetail, SootsimNavigateHomeDetail, SootsimEmbedVisibilityDetail, SootsimEmbedInteraction, SootsimEngineFailureDetail, SootsimBootStage, SootsimBootMarkName, SootsimBootMark, SootsimHostKeyDetail, SootsimHapticActivityDetail, SootsimColorScheme, SootsimTopOverlayKind, SootsimEventMap, SootsimEventName, } from './eventBridgeContract.d.ts';
|
|
10
|
-
export type { SootSimTestQueryFilter, SootSimTextCandidatesOptions, SootSimTextCandidate, SootSimTextCandidatesResult, SootSimDumpTreeOptions, SootSimInspectPointOptions, SootSimListInspectableOptions, SootSimRequestEntry, SootSimRequestCounts, SootSimTestBridge, SootSimTestBridgeMethod, SootSimTestBridgeArgs, SootSimTestBridgeResult, } from './testBridgeContract.d.ts';
|
|
10
|
+
export type { SootSimTestQueryFilter, SootSimTextCandidatesOptions, SootSimTextCandidate, SootSimTextCandidatesResult, SootSimDumpTreeOptions, SootSimInspectPointOptions, SootSimTapTargetOptions, SootSimListInspectableOptions, SootSimRequestEntry, SootSimRequestCounts, SootSimTestBridge, SootSimTestBridgeMethod, SootSimTestBridgeArgs, SootSimTestBridgeResult, } from './testBridgeContract.d.ts';
|
|
11
11
|
export type { SootSimInspectNeighborDirection, SootSimGestureCallback, SootSimTapPathEntry, SootSimTapRefusal, SootSimTapTargetMatch, SootSimTapTargetVerification, SootSimNativePresentationInfo, SootSimTapResult, SootSimTapTargetStrategy, SootSimTapTargetInfo, SootSimRouteInfo, SootSimUndeclaredScreen, SootSimScrollToResult, SootSimCursorState, SootSimLoupeState, SootSimEditMenuRect, SootSimEditMenuItem, SootSimEditMenuState, SootSimTextSelection, SootSimTextSelectionHandles, SootSimAnimationSource, SootSimAnimationInfo, SootSimAnimationTraceSample, SootSimAnimationTraceStatus, SootSimRuntimeState, SootSimScreenTransitionWaitOptions, SootSimScreenTransitionWaitResult, SootSimInspectDeviceInfo, SootSimInspectAncestor, SootSimInspectBoxModel, SootSimInspectImageSource, SootSimInspectHookKind, SootSimInspectHookSummary, SootSimInspectCommitCause, SootSimInspectLastCommit, SootSimInspectReactInfo, SootSimInspectNavigationInfo, SootSimInspectTimelineEntry, SootSimInspectTreeNode, SootSimInspectInfo, PeachSemanticInspectInfo, PointerDispatchOptions, PeachAccessibilityNode, PeachSwiftUiAccessibility, PeachDebugSnapshotOperation, SootSimTargetMatcher, SootSimTargetObservation, PeachPeerStatsProgress, PeachPeerStats, SootSimAccessibilityState, SootSimAccessibilityValue, SootSimAccessibilityLiveRegion, SootSimFocusedNodeInfo, SootSimAccessibilityInput, SootSimNodeInfo, SootSimStyleTokenBinding, SootSimCapturedTextSegment, SootSimCapturedTextLine, SootSimRenderTreeNode, SootSimRenderTreeSnapshot, SootSimCaptureTransactionReceipt, SootSimCaptureBoundLongPressReceipt, SootSimCaptureBoundTapReceipt, SootSimDebugNodeInfo, SootSimVisibleFrame, SootSimVisibilityNodeRef, SootSimVisibleFrameHidden, SootSimLayout, SootSimDeviceSpec, } from './nodeContract.d.ts';
|
|
12
12
|
export type { SootSimInteractBridge } from './interactionBridgeContract.d.ts';
|
|
13
13
|
export { isTextInputEditCommand } from './keyboardBridgeContract.d.ts';
|
|
@@ -31,9 +31,20 @@ export interface SootSimKeyboardBridge {
|
|
|
31
31
|
hasHostedEditorFocus?(): MaybeAsync<boolean>;
|
|
32
32
|
getMode?(): MaybeAsync<string>;
|
|
33
33
|
getLayout?(): {
|
|
34
|
+
visible: boolean;
|
|
34
35
|
spec: {
|
|
35
36
|
secureTextEntry: boolean;
|
|
36
37
|
} | null;
|
|
38
|
+
mode: string;
|
|
39
|
+
shifted: boolean;
|
|
40
|
+
capsLock: boolean;
|
|
41
|
+
accessoryBarId: string | null;
|
|
42
|
+
frame: {
|
|
43
|
+
screenX: number;
|
|
44
|
+
screenY: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
};
|
|
37
48
|
};
|
|
38
49
|
getKeyRect?(label: string): MaybeAsync<{
|
|
39
50
|
x: number;
|