peachsim 0.1.2272 → 0.1.2274
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/bridge-flow-runner.ts +4 -1
- package/detox/gestures.ts +3 -1
- 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 +74 -17
- 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 +3 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +68 -11
- 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 +74 -17
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -6
- 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 +6 -6
- 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 +6 -6
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- 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 +79 -18
- package/dist-lib/swift-compile.cjs +31 -2
- package/dist-lib/swift-compile.mjs +31 -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 +30 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +33 -4
- package/dist-lib/vite.cjs +6 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -5
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +86 -37
- package/dist-types/packages/peach-engine/src/engine/scroll-range.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +45 -0
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +81 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +9 -2
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-server.d.ts +21 -0
- package/dist-types/packages/peach-engine/src/settings/schema.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/nitro-adapter.lock.json +237 -237
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-toolchain.ts +37 -0
- package/src/turbo-runtime.lock.json +17 -17
- package/src/turbo-source.ts +32 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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;
|
|
@@ -3137,6 +3137,8 @@ function swiftSdkBundle(swift, id, options) {
|
|
|
3137
3137
|
return resolved;
|
|
3138
3138
|
}
|
|
3139
3139
|
var sdkFileHashes = /* @__PURE__ */ new Map();
|
|
3140
|
+
var sdkFilesHashed = 0;
|
|
3141
|
+
var loadedSdkHashFiles = /* @__PURE__ */ new Set();
|
|
3140
3142
|
function swiftSdkPayloadChecksum(bundle) {
|
|
3141
3143
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
3142
3144
|
function visit(relative) {
|
|
@@ -3156,6 +3158,7 @@ function swiftSdkPayloadChecksum(bundle) {
|
|
|
3156
3158
|
if (cached?.stamp !== stamp) {
|
|
3157
3159
|
cached = { stamp, checksum: swiftFileChecksum(file) };
|
|
3158
3160
|
sdkFileHashes.set(file, cached);
|
|
3161
|
+
sdkFilesHashed++;
|
|
3159
3162
|
}
|
|
3160
3163
|
hash.update(
|
|
3161
3164
|
JSON.stringify([relative, "file", Number(stat.mode & 0o111n), cached.checksum]) + "\n"
|
|
@@ -3180,10 +3183,36 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
3180
3183
|
`Swift SDK ${sdk.wasmSdkId} has no verified archive binding for ${sdk.wasmSdkChecksum}. Hydrate it with installSwiftWasmSdk before compiling.`
|
|
3181
3184
|
);
|
|
3182
3185
|
const receipt = JSON.parse(import_node_fs5.default.readFileSync(file, "utf8"));
|
|
3186
|
+
const stamps = file.replace(/\.json$/, ".files.json");
|
|
3187
|
+
if (!loadedSdkHashFiles.has(stamps)) {
|
|
3188
|
+
loadedSdkHashFiles.add(stamps);
|
|
3189
|
+
const saved = import_node_fs5.default.existsSync(stamps) ? JSON.parse(import_node_fs5.default.readFileSync(stamps, "utf8")) : null;
|
|
3190
|
+
if (saved && typeof saved === "object") {
|
|
3191
|
+
for (const [entry, value] of Object.entries(saved))
|
|
3192
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string")
|
|
3193
|
+
sdkFileHashes.set(entry, { stamp: value[0], checksum: value[1] });
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
const hashedBefore = sdkFilesHashed;
|
|
3183
3197
|
if (!receipt || typeof receipt !== "object" || !("wasmSdkId" in receipt) || receipt.wasmSdkId !== sdk.wasmSdkId || !("wasmSdkChecksum" in receipt) || receipt.wasmSdkChecksum !== sdk.wasmSdkChecksum || !("payloadChecksum" in receipt) || receipt.payloadChecksum !== swiftSdkPayloadChecksum(bundle))
|
|
3184
3198
|
throw new Error(
|
|
3185
3199
|
`Swift SDK ${sdk.wasmSdkId} installed payload differs from its verified archive ${sdk.wasmSdkChecksum}`
|
|
3186
3200
|
);
|
|
3201
|
+
if (sdkFilesHashed === hashedBefore) return;
|
|
3202
|
+
const temporary = `${stamps}.${process.pid}.tmp`;
|
|
3203
|
+
try {
|
|
3204
|
+
import_node_fs5.default.writeFileSync(
|
|
3205
|
+
temporary,
|
|
3206
|
+
JSON.stringify(
|
|
3207
|
+
Object.fromEntries(
|
|
3208
|
+
[...sdkFileHashes].filter(([entry]) => entry.startsWith(bundle + import_node_path3.default.sep)).map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]])
|
|
3209
|
+
)
|
|
3210
|
+
)
|
|
3211
|
+
);
|
|
3212
|
+
import_node_fs5.default.renameSync(temporary, stamps);
|
|
3213
|
+
} finally {
|
|
3214
|
+
import_node_fs5.default.rmSync(temporary, { force: true });
|
|
3215
|
+
}
|
|
3187
3216
|
}
|
|
3188
3217
|
function swiftFileChecksum(file) {
|
|
3189
3218
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
@@ -13442,7 +13471,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13442
13471
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13443
13472
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13444
13473
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13445
|
-
var compilerSourceDigest = true ? "
|
|
13474
|
+
var compilerSourceDigest = true ? "e224c0014bb1a4c2827b71265a45046589da0583b0861ada1e1890b739732b96" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13446
13475
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13447
13476
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13448
13477
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -3087,6 +3087,8 @@ function swiftSdkBundle(swift, id, options) {
|
|
|
3087
3087
|
return resolved;
|
|
3088
3088
|
}
|
|
3089
3089
|
var sdkFileHashes = /* @__PURE__ */ new Map();
|
|
3090
|
+
var sdkFilesHashed = 0;
|
|
3091
|
+
var loadedSdkHashFiles = /* @__PURE__ */ new Set();
|
|
3090
3092
|
function swiftSdkPayloadChecksum(bundle) {
|
|
3091
3093
|
const hash = createHash2("sha256");
|
|
3092
3094
|
function visit(relative) {
|
|
@@ -3106,6 +3108,7 @@ function swiftSdkPayloadChecksum(bundle) {
|
|
|
3106
3108
|
if (cached?.stamp !== stamp) {
|
|
3107
3109
|
cached = { stamp, checksum: swiftFileChecksum(file) };
|
|
3108
3110
|
sdkFileHashes.set(file, cached);
|
|
3111
|
+
sdkFilesHashed++;
|
|
3109
3112
|
}
|
|
3110
3113
|
hash.update(
|
|
3111
3114
|
JSON.stringify([relative, "file", Number(stat.mode & 0o111n), cached.checksum]) + "\n"
|
|
@@ -3130,10 +3133,36 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
3130
3133
|
`Swift SDK ${sdk.wasmSdkId} has no verified archive binding for ${sdk.wasmSdkChecksum}. Hydrate it with installSwiftWasmSdk before compiling.`
|
|
3131
3134
|
);
|
|
3132
3135
|
const receipt = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
3136
|
+
const stamps = file.replace(/\.json$/, ".files.json");
|
|
3137
|
+
if (!loadedSdkHashFiles.has(stamps)) {
|
|
3138
|
+
loadedSdkHashFiles.add(stamps);
|
|
3139
|
+
const saved = fs.existsSync(stamps) ? JSON.parse(fs.readFileSync(stamps, "utf8")) : null;
|
|
3140
|
+
if (saved && typeof saved === "object") {
|
|
3141
|
+
for (const [entry, value] of Object.entries(saved))
|
|
3142
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string")
|
|
3143
|
+
sdkFileHashes.set(entry, { stamp: value[0], checksum: value[1] });
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
const hashedBefore = sdkFilesHashed;
|
|
3133
3147
|
if (!receipt || typeof receipt !== "object" || !("wasmSdkId" in receipt) || receipt.wasmSdkId !== sdk.wasmSdkId || !("wasmSdkChecksum" in receipt) || receipt.wasmSdkChecksum !== sdk.wasmSdkChecksum || !("payloadChecksum" in receipt) || receipt.payloadChecksum !== swiftSdkPayloadChecksum(bundle))
|
|
3134
3148
|
throw new Error(
|
|
3135
3149
|
`Swift SDK ${sdk.wasmSdkId} installed payload differs from its verified archive ${sdk.wasmSdkChecksum}`
|
|
3136
3150
|
);
|
|
3151
|
+
if (sdkFilesHashed === hashedBefore) return;
|
|
3152
|
+
const temporary = `${stamps}.${process.pid}.tmp`;
|
|
3153
|
+
try {
|
|
3154
|
+
fs.writeFileSync(
|
|
3155
|
+
temporary,
|
|
3156
|
+
JSON.stringify(
|
|
3157
|
+
Object.fromEntries(
|
|
3158
|
+
[...sdkFileHashes].filter(([entry]) => entry.startsWith(bundle + path4.sep)).map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]])
|
|
3159
|
+
)
|
|
3160
|
+
)
|
|
3161
|
+
);
|
|
3162
|
+
fs.renameSync(temporary, stamps);
|
|
3163
|
+
} finally {
|
|
3164
|
+
fs.rmSync(temporary, { force: true });
|
|
3165
|
+
}
|
|
3137
3166
|
}
|
|
3138
3167
|
function swiftFileChecksum(file) {
|
|
3139
3168
|
const hash = createHash2("sha256");
|
|
@@ -13428,7 +13457,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13428
13457
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13429
13458
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13430
13459
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13431
|
-
var compilerSourceDigest = true ? "
|
|
13460
|
+
var compilerSourceDigest = true ? "e224c0014bb1a4c2827b71265a45046589da0583b0861ada1e1890b739732b96" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13432
13461
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13433
13462
|
const hash = createHash13("sha256");
|
|
13434
13463
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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;
|
|
@@ -750,6 +750,8 @@ function swiftSdkBundle(swift, id, options) {
|
|
|
750
750
|
return resolved;
|
|
751
751
|
}
|
|
752
752
|
var sdkFileHashes = /* @__PURE__ */ new Map();
|
|
753
|
+
var sdkFilesHashed = 0;
|
|
754
|
+
var loadedSdkHashFiles = /* @__PURE__ */ new Set();
|
|
753
755
|
function swiftSdkPayloadChecksum(bundle) {
|
|
754
756
|
const hash = (0, import_node_crypto.createHash)("sha256");
|
|
755
757
|
function visit(relative) {
|
|
@@ -769,6 +771,7 @@ function swiftSdkPayloadChecksum(bundle) {
|
|
|
769
771
|
if (cached?.stamp !== stamp) {
|
|
770
772
|
cached = { stamp, checksum: swiftFileChecksum(file) };
|
|
771
773
|
sdkFileHashes.set(file, cached);
|
|
774
|
+
sdkFilesHashed++;
|
|
772
775
|
}
|
|
773
776
|
hash.update(
|
|
774
777
|
JSON.stringify([relative, "file", Number(stat.mode & 0o111n), cached.checksum]) + "\n"
|
|
@@ -793,10 +796,36 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
793
796
|
`Swift SDK ${sdk.wasmSdkId} has no verified archive binding for ${sdk.wasmSdkChecksum}. Hydrate it with installSwiftWasmSdk before compiling.`
|
|
794
797
|
);
|
|
795
798
|
const receipt = JSON.parse(import_node_fs.default.readFileSync(file, "utf8"));
|
|
799
|
+
const stamps = file.replace(/\.json$/, ".files.json");
|
|
800
|
+
if (!loadedSdkHashFiles.has(stamps)) {
|
|
801
|
+
loadedSdkHashFiles.add(stamps);
|
|
802
|
+
const saved = import_node_fs.default.existsSync(stamps) ? JSON.parse(import_node_fs.default.readFileSync(stamps, "utf8")) : null;
|
|
803
|
+
if (saved && typeof saved === "object") {
|
|
804
|
+
for (const [entry, value] of Object.entries(saved))
|
|
805
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string")
|
|
806
|
+
sdkFileHashes.set(entry, { stamp: value[0], checksum: value[1] });
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
const hashedBefore = sdkFilesHashed;
|
|
796
810
|
if (!receipt || typeof receipt !== "object" || !("wasmSdkId" in receipt) || receipt.wasmSdkId !== sdk.wasmSdkId || !("wasmSdkChecksum" in receipt) || receipt.wasmSdkChecksum !== sdk.wasmSdkChecksum || !("payloadChecksum" in receipt) || receipt.payloadChecksum !== swiftSdkPayloadChecksum(bundle))
|
|
797
811
|
throw new Error(
|
|
798
812
|
`Swift SDK ${sdk.wasmSdkId} installed payload differs from its verified archive ${sdk.wasmSdkChecksum}`
|
|
799
813
|
);
|
|
814
|
+
if (sdkFilesHashed === hashedBefore) return;
|
|
815
|
+
const temporary = `${stamps}.${process.pid}.tmp`;
|
|
816
|
+
try {
|
|
817
|
+
import_node_fs.default.writeFileSync(
|
|
818
|
+
temporary,
|
|
819
|
+
JSON.stringify(
|
|
820
|
+
Object.fromEntries(
|
|
821
|
+
[...sdkFileHashes].filter(([entry]) => entry.startsWith(bundle + import_node_path.default.sep)).map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]])
|
|
822
|
+
)
|
|
823
|
+
)
|
|
824
|
+
);
|
|
825
|
+
import_node_fs.default.renameSync(temporary, stamps);
|
|
826
|
+
} finally {
|
|
827
|
+
import_node_fs.default.rmSync(temporary, { force: true });
|
|
828
|
+
}
|
|
800
829
|
}
|
|
801
830
|
function installSwiftSdkArchive(swift, sdk, archive) {
|
|
802
831
|
validateSwiftSdkIdentity(sdk);
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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;
|
|
@@ -4917,6 +4917,8 @@ function swiftSdkBundle(swift, id, options) {
|
|
|
4917
4917
|
return resolved;
|
|
4918
4918
|
}
|
|
4919
4919
|
var sdkFileHashes = /* @__PURE__ */ new Map();
|
|
4920
|
+
var sdkFilesHashed = 0;
|
|
4921
|
+
var loadedSdkHashFiles = /* @__PURE__ */ new Set();
|
|
4920
4922
|
function swiftSdkPayloadChecksum(bundle) {
|
|
4921
4923
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
4922
4924
|
function visit(relative2) {
|
|
@@ -4936,6 +4938,7 @@ function swiftSdkPayloadChecksum(bundle) {
|
|
|
4936
4938
|
if (cached?.stamp !== stamp) {
|
|
4937
4939
|
cached = { stamp, checksum: swiftFileChecksum(file) };
|
|
4938
4940
|
sdkFileHashes.set(file, cached);
|
|
4941
|
+
sdkFilesHashed++;
|
|
4939
4942
|
}
|
|
4940
4943
|
hash.update(
|
|
4941
4944
|
JSON.stringify([relative2, "file", Number(stat.mode & 0o111n), cached.checksum]) + "\n"
|
|
@@ -4960,10 +4963,36 @@ function verifySwiftSdk(swift, sdk2) {
|
|
|
4960
4963
|
`Swift SDK ${sdk2.wasmSdkId} has no verified archive binding for ${sdk2.wasmSdkChecksum}. Hydrate it with installSwiftWasmSdk before compiling.`
|
|
4961
4964
|
);
|
|
4962
4965
|
const receipt = JSON.parse(import_node_fs6.default.readFileSync(file, "utf8"));
|
|
4966
|
+
const stamps = file.replace(/\.json$/, ".files.json");
|
|
4967
|
+
if (!loadedSdkHashFiles.has(stamps)) {
|
|
4968
|
+
loadedSdkHashFiles.add(stamps);
|
|
4969
|
+
const saved = import_node_fs6.default.existsSync(stamps) ? JSON.parse(import_node_fs6.default.readFileSync(stamps, "utf8")) : null;
|
|
4970
|
+
if (saved && typeof saved === "object") {
|
|
4971
|
+
for (const [entry, value] of Object.entries(saved))
|
|
4972
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string")
|
|
4973
|
+
sdkFileHashes.set(entry, { stamp: value[0], checksum: value[1] });
|
|
4974
|
+
}
|
|
4975
|
+
}
|
|
4976
|
+
const hashedBefore = sdkFilesHashed;
|
|
4963
4977
|
if (!receipt || typeof receipt !== "object" || !("wasmSdkId" in receipt) || receipt.wasmSdkId !== sdk2.wasmSdkId || !("wasmSdkChecksum" in receipt) || receipt.wasmSdkChecksum !== sdk2.wasmSdkChecksum || !("payloadChecksum" in receipt) || receipt.payloadChecksum !== swiftSdkPayloadChecksum(bundle))
|
|
4964
4978
|
throw new Error(
|
|
4965
4979
|
`Swift SDK ${sdk2.wasmSdkId} installed payload differs from its verified archive ${sdk2.wasmSdkChecksum}`
|
|
4966
4980
|
);
|
|
4981
|
+
if (sdkFilesHashed === hashedBefore) return;
|
|
4982
|
+
const temporary = `${stamps}.${process.pid}.tmp`;
|
|
4983
|
+
try {
|
|
4984
|
+
import_node_fs6.default.writeFileSync(
|
|
4985
|
+
temporary,
|
|
4986
|
+
JSON.stringify(
|
|
4987
|
+
Object.fromEntries(
|
|
4988
|
+
[...sdkFileHashes].filter(([entry]) => entry.startsWith(bundle + import_node_path4.default.sep)).map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]])
|
|
4989
|
+
)
|
|
4990
|
+
)
|
|
4991
|
+
);
|
|
4992
|
+
import_node_fs6.default.renameSync(temporary, stamps);
|
|
4993
|
+
} finally {
|
|
4994
|
+
import_node_fs6.default.rmSync(temporary, { force: true });
|
|
4995
|
+
}
|
|
4967
4996
|
}
|
|
4968
4997
|
function installSwiftSdkArchive(swift, sdk2, archive) {
|
|
4969
4998
|
validateSwiftSdkIdentity(sdk2);
|
|
@@ -18255,7 +18284,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18255
18284
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18256
18285
|
var MULTI_MANIFEST_VERSION = 68;
|
|
18257
18286
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18258
|
-
var compilerSourceDigest = true ? "
|
|
18287
|
+
var compilerSourceDigest = true ? "e224c0014bb1a4c2827b71265a45046589da0583b0861ada1e1890b739732b96" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18259
18288
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18260
18289
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
18261
18290
|
hash.update(`swift-compile
|
|
@@ -25400,7 +25429,7 @@ var import_node_fs33 = require("node:fs");
|
|
|
25400
25429
|
var import_node_path33 = require("node:path");
|
|
25401
25430
|
|
|
25402
25431
|
// src/swift-coverage/provenance.ts
|
|
25403
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"
|
|
25432
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"774c42f06f8d5c1f3f3a09f94379db2046af0016f1fcd6cbe595a9c2da5dcf95","xcode-target-members.ts":"d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
25404
25433
|
|
|
25405
25434
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
25406
25435
|
var import_node_fs32 = require("node:fs");
|
|
@@ -32433,7 +32462,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
32433
32462
|
return hash.digest("hex");
|
|
32434
32463
|
}
|
|
32435
32464
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
32436
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
32465
|
+
var STANDIN_SOURCE_DIGEST = true ? "e50e15b51e04a8baf3bead1d63950c4e56b018ae4b82457dcd899c53ed0b974a" : standinSourceDigest();
|
|
32437
32466
|
|
|
32438
32467
|
// src/swift-standins.ts
|
|
32439
32468
|
var import_node_child_process31 = require("node:child_process");
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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: "495d946b48ebe21480616cc63d9967bc511db950ab59c25e834fcda28eb4a17c", file: "node/cli-495d946b48ebe21480616cc63d9967bc511db950ab59c25e834fcda28eb4a17c.cjs" };
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
2748
|
|
|
@@ -3100,7 +3100,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3100
3100
|
var init_swift_standin_digest = __esm({
|
|
3101
3101
|
"src/swift-standin-digest.ts"() {
|
|
3102
3102
|
"use strict";
|
|
3103
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3103
|
+
STANDIN_SOURCE_DIGEST = true ? "e50e15b51e04a8baf3bead1d63950c4e56b018ae4b82457dcd899c53ed0b974a" : standinSourceDigest();
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
|
|
@@ -3547,7 +3547,7 @@ var swiftCoverageProvenance;
|
|
|
3547
3547
|
var init_provenance = __esm({
|
|
3548
3548
|
"src/swift-coverage/provenance.ts"() {
|
|
3549
3549
|
"use strict";
|
|
3550
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"
|
|
3550
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"774c42f06f8d5c1f3f3a09f94379db2046af0016f1fcd6cbe595a9c2da5dcf95","xcode-target-members.ts":"d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
3551
3551
|
}
|
|
3552
3552
|
});
|
|
3553
3553
|
|
|
@@ -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 ? "e224c0014bb1a4c2827b71265a45046589da0583b0861ada1e1890b739732b96" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4757
4757
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4758
4758
|
"CFAllocator",
|
|
4759
4759
|
"CFArray",
|
|
@@ -5277,7 +5277,7 @@ var init_react_native_core = __esm({
|
|
|
5277
5277
|
init_swift_distribution();
|
|
5278
5278
|
init_swift_package();
|
|
5279
5279
|
init_swiftContract();
|
|
5280
|
-
recipe = true ? "
|
|
5280
|
+
recipe = true ? "4639768c70ada4c4bab053ea7917512ac1e98bc7b1f9adc1f95635279d6ba363" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5281
5281
|
}
|
|
5282
5282
|
});
|
|
5283
5283
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2274 | (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;
|
|
@@ -10,7 +10,6 @@ export * as engine_app_catalog_wire from './engine/app-catalog-wire.d.ts';
|
|
|
10
10
|
export * as engine_config_plugin_fonts from './engine/config-plugin-fonts.d.ts';
|
|
11
11
|
export * as engine_config_plugin_splash from './engine/config-plugin-splash.d.ts';
|
|
12
12
|
export * as engine_expo_manifest from './engine/expo-manifest.d.ts';
|
|
13
|
-
export * as engine_scroll_platform from './engine/scroll-platform.d.ts';
|
|
14
13
|
export * as guest_import_meta from './guest-import-meta.d.ts';
|
|
15
14
|
export * as guest_module_overrides from './guest-module-overrides.d.ts';
|
|
16
15
|
export * as ios_chrome_metrics from './ios/chrome-metrics.d.ts';
|
|
@@ -19,6 +18,7 @@ export * as ios_frame_svg from './ios/frame-svg.d.ts';
|
|
|
19
18
|
export * as metro_fingerprint from './metro-fingerprint.d.ts';
|
|
20
19
|
export * as metro_fingerprint_registry_client from './metro-fingerprint-registry-client.d.ts';
|
|
21
20
|
export * as peach_warm_manifest from './peach-warm-manifest.d.ts';
|
|
21
|
+
export * as platform_personality from './platform/personality.d.ts';
|
|
22
22
|
export * as preview_bundle_layout from './preview/bundle-layout.d.ts';
|
|
23
23
|
export * as preview_compress from './preview/compress.d.ts';
|
|
24
24
|
export * as preview_compress_node from './preview/compress-node.d.ts';
|
|
@@ -11,10 +11,6 @@ export declare const SF_PRO_VERTICAL_METRICS: {
|
|
|
11
11
|
lineGap: number;
|
|
12
12
|
unitsPerEm: number;
|
|
13
13
|
};
|
|
14
|
-
export declare function iosEmojiFontMetrics(fontSize: number, systemFont: boolean): {
|
|
15
|
-
ascent: number;
|
|
16
|
-
descent: number;
|
|
17
|
-
};
|
|
18
14
|
export declare function iosEmojiGlyphBearing(fontSize: number, systemFont: boolean): number;
|
|
19
15
|
export declare const SF_PRO_VARIANT_FONT_FAMILY = "SF Pro Variant";
|
|
20
16
|
export declare const SF_PRO_ROUNDED_FONT_FAMILY = "SF Pro Rounded";
|
|
@@ -120,7 +116,6 @@ export interface FontVerticalMetrics {
|
|
|
120
116
|
}
|
|
121
117
|
export declare function registerEngineFontVerticalMetrics(family: string, metrics: FontVerticalMetrics): void;
|
|
122
118
|
export declare function getRegisteredFontVerticalMetrics(family: string | undefined, fontWeight?: unknown, fontStyle?: unknown): FontVerticalMetrics | undefined;
|
|
123
|
-
export declare function resolveCustomFontBaselineOffset(metrics: FontVerticalMetrics, fontSize: number, lineHeight: unknown, skiaBaseline: number, runAscenderRise?: number | null): number;
|
|
124
119
|
export declare function resetRegisteredFontFamilies(): void;
|
|
125
120
|
export declare function resolveFontVariantFeatures(fontVariant: readonly string[] | undefined): string[];
|
|
126
121
|
export declare function needsSystemVariantFace(fontVariant: readonly string[] | undefined, fontFamily: string | undefined, caseSensitiveForms?: true): boolean;
|
|
@@ -254,6 +254,8 @@ export declare function setGpuSceneFramesHeld(held: boolean): void;
|
|
|
254
254
|
export declare function shouldSkipLiveFramePublish(channelId: string): boolean;
|
|
255
255
|
export declare function clearLiveFrameInflight(channelId: string): void;
|
|
256
256
|
export declare function storeLiveFrame(channelId: string, bitmap: ImageFrameSource): void;
|
|
257
|
+
export declare function presentLiveFrameImage(channelId: string, image: SkImage | null): void;
|
|
258
|
+
export declare function noteLiveFrameLayerPresent(channelId: string): void;
|
|
257
259
|
export declare function clearLiveFrame(channelId: string): void;
|
|
258
260
|
export declare function storeWebViewFrame(surfaceId: string, generation: number, instanceId: string, bitmap: ImageBitmap, contentSize: {
|
|
259
261
|
width: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DeviceSpec } from '../../../../../src/device-catalog.ts';
|
|
2
1
|
import type { ScrollRange } from './scroll-range.d.ts';
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
2
|
+
export declare function iosMomentumFrameDuration(elapsedMs: number): number;
|
|
3
|
+
export declare function androidMomentumFrameDuration(elapsedMs: number): number;
|
|
4
|
+
export declare function iosScrollMomentumReleaseStep(previousUpdateMs: number | null, releaseMs: number): number;
|
|
5
5
|
export declare const IOS_SET_CONTENT_OFFSET_MS = 300;
|
|
6
6
|
export type TimedScrollCurve = 'ios-set-content-offset' | 'ios-status-bar-scroll-to-top';
|
|
7
7
|
export type TimedScrollControl = {
|
|
@@ -126,8 +126,6 @@ export declare function advanceScrollMomentumSpring(state: ScrollMomentumState,
|
|
|
126
126
|
}): ScrollMomentumStep;
|
|
127
127
|
export declare function restingScrollOffset(state: ScrollMomentumState, config: ScrollMomentumConfig): number;
|
|
128
128
|
export declare function roundToIosPixel(value: number, scale: number): number;
|
|
129
|
-
export declare function appliedScrollOffset(value: number, spec: DeviceSpec | undefined): number;
|
|
130
|
-
export declare function nativeScrollEventOffset(value: number, spec: DeviceSpec | undefined): number;
|
|
131
129
|
export declare function advanceScrollMomentum(state: ScrollMomentumState, dtMs: number, config: ScrollMomentumConfig): ScrollMomentumStep;
|
|
132
130
|
export type ScrollRelease = {
|
|
133
131
|
velocityX: number;
|
|
@@ -1,61 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { androidMomentumFrameDuration, iosMomentumFrameDuration, iosScrollMomentumReleaseStep, roundToIosPixel } from './scroll-momentum-math.d.ts';
|
|
2
|
+
import { estimateAndroidScrollReleaseVelocity, estimateIosScrollReleaseVelocity } from './scroll-velocity.d.ts';
|
|
3
|
+
import type { ScrollPersonality } from '../platform/personality.d.ts';
|
|
2
4
|
export declare const IOS_REFRESH_TITLE_FONT_SIZE = 12;
|
|
3
5
|
export declare function getIOSRefreshTitleFontSize(): number;
|
|
4
|
-
export declare function getRefreshHoldOffset(platform: string | undefined, hasTitle: boolean, titleFontSize?: number): number;
|
|
5
6
|
export declare const REFRESH_TRIGGER_THRESHOLD = 60;
|
|
6
|
-
export declare function getRefreshTriggerThreshold(platform: string | undefined, viewportHeight: number, hasTitle: boolean, titleFontSize?: number): number;
|
|
7
7
|
export declare function getRefreshMaximumSnappingHeight(viewportHeight: number, hasTitle: boolean, titleFontSize?: number): number;
|
|
8
8
|
export type ScrollDirectionalLock = 'horizontal' | 'vertical' | null;
|
|
9
9
|
export declare function selectScrollDirectionalLock(dx: number, dy: number, horizontalAvailable: boolean, verticalAvailable: boolean, selected: ScrollDirectionalLock): ScrollDirectionalLock;
|
|
10
|
-
export declare function scrollTouchSlop(platform: string | undefined, primaryDelta: number): number;
|
|
11
10
|
export interface ScrollDragOrigin {
|
|
12
11
|
x: number;
|
|
13
12
|
y: number;
|
|
14
13
|
timestamp?: number;
|
|
15
14
|
}
|
|
16
|
-
export declare function scrollDragAdmission(
|
|
17
|
-
export declare function scrollDragDelta(
|
|
18
|
-
export declare function scrollDragMatchesAxis(platform: string | undefined, primaryDelta: number, crossDelta: number): boolean;
|
|
15
|
+
export declare function scrollDragAdmission(scroll: ScrollPersonality, primaryDelta: number, crossDelta: number): 'pending' | 'reject' | 'begin';
|
|
16
|
+
export declare function scrollDragDelta(scroll: ScrollPersonality, pointerDelta: number, slop: number, beganDrag: boolean): number;
|
|
19
17
|
export declare function bouncesAlongAxis(opts: {
|
|
20
18
|
props: Record<string, unknown> | null | undefined;
|
|
21
19
|
horizontal: boolean;
|
|
22
20
|
contentSize: number;
|
|
23
21
|
viewportSize: number;
|
|
24
22
|
}): boolean;
|
|
25
|
-
export declare function allowsRubberBandScroll(
|
|
26
|
-
|
|
27
|
-
bounces?: unknown;
|
|
28
|
-
}): boolean;
|
|
29
|
-
export declare function shouldTrackAndroidRefreshPull(opts: {
|
|
30
|
-
platform?: string;
|
|
23
|
+
export declare function allowsRubberBandScroll(scroll: ScrollPersonality, bounces: unknown): boolean;
|
|
24
|
+
export declare function tracksHeldRefreshPull(scroll: ScrollPersonality, opts: {
|
|
31
25
|
horizontal?: boolean;
|
|
32
26
|
refreshEnabled?: boolean;
|
|
33
27
|
refreshing?: boolean;
|
|
34
28
|
}): boolean;
|
|
35
|
-
export
|
|
36
|
-
platform?: string;
|
|
37
|
-
overScrollMode?: unknown;
|
|
38
|
-
contentSize: number;
|
|
39
|
-
viewportSize: number;
|
|
40
|
-
}): boolean;
|
|
41
|
-
export declare function resolveScrollDecelerationRate(opts: {
|
|
42
|
-
platform?: string;
|
|
43
|
-
decelerationRate?: unknown;
|
|
44
|
-
}): number;
|
|
45
|
-
export declare function resolveScrollMomentumPhysics(opts: {
|
|
46
|
-
platform?: string;
|
|
47
|
-
decelerationRate?: unknown;
|
|
48
|
-
}): ScrollMomentumPhysics;
|
|
49
|
-
export declare function resolveAndroidFadingEdgeLength(opts: {
|
|
50
|
-
platform?: string;
|
|
51
|
-
fadingEdgeLength?: unknown;
|
|
52
|
-
}): number;
|
|
53
|
-
export declare function resolveScrollIndicatorMetrics(opts: {
|
|
54
|
-
platform?: string;
|
|
55
|
-
persistentScrollbar?: unknown;
|
|
56
|
-
indicatorStyle?: unknown;
|
|
57
|
-
colorScheme?: string;
|
|
58
|
-
}): {
|
|
29
|
+
export interface ScrollIndicatorMetrics {
|
|
59
30
|
width: number;
|
|
60
31
|
minLength: number;
|
|
61
32
|
margin: number;
|
|
@@ -63,5 +34,83 @@ export declare function resolveScrollIndicatorMetrics(opts: {
|
|
|
63
34
|
alpha: number;
|
|
64
35
|
white: boolean;
|
|
65
36
|
idleOpacity: number | null;
|
|
37
|
+
}
|
|
38
|
+
declare function iosDecelerationRate(decelerationRate: unknown): number;
|
|
39
|
+
export declare const IOS_SCROLL: {
|
|
40
|
+
refreshHoldOffset: (hasTitle: boolean, titleFontSize?: number | undefined) => number;
|
|
41
|
+
refreshTriggerThreshold: (viewportHeight: number, hasTitle: boolean, titleFontSize?: number | undefined) => number;
|
|
42
|
+
refreshPullHoldsContent: false;
|
|
43
|
+
touchSlop: (primaryDelta: number) => number;
|
|
44
|
+
beginMoveApplies: true;
|
|
45
|
+
dragMatchesAxis: (primaryDelta: number, crossDelta: number) => boolean;
|
|
46
|
+
rejectedMoveMovesSlopOrigin: true;
|
|
47
|
+
directionalLock: true;
|
|
48
|
+
releaseVelocity: typeof estimateIosScrollReleaseVelocity;
|
|
49
|
+
momentumReleaseStep: typeof iosScrollMomentumReleaseStep;
|
|
50
|
+
momentumFrameDuration: typeof iosMomentumFrameDuration;
|
|
51
|
+
decelerationRate: typeof iosDecelerationRate;
|
|
52
|
+
momentumPhysics: (decelerationRate: unknown) => {
|
|
53
|
+
kind: "ios-exponential";
|
|
54
|
+
decelerationRate: number;
|
|
55
|
+
};
|
|
56
|
+
rubberBand: true;
|
|
57
|
+
appliedOffset: typeof roundToIosPixel;
|
|
58
|
+
nativeEventOffset: typeof roundToIosPixel;
|
|
59
|
+
startOffset: (leadingInset: number) => number;
|
|
60
|
+
edgeEffect: () => false;
|
|
61
|
+
fadingEdgeLength: () => number;
|
|
62
|
+
indicator: (opts: {
|
|
63
|
+
persistentScrollbar?: unknown;
|
|
64
|
+
indicatorStyle?: unknown;
|
|
65
|
+
colorScheme?: string;
|
|
66
|
+
}) => {
|
|
67
|
+
width: number;
|
|
68
|
+
minLength: number;
|
|
69
|
+
margin: number;
|
|
70
|
+
radius: number;
|
|
71
|
+
alpha: number;
|
|
72
|
+
white: boolean;
|
|
73
|
+
idleOpacity: null;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
declare function androidDecelerationRate(decelerationRate: unknown): number;
|
|
77
|
+
declare function androidAppliedOffset(value: number, scale: number): number;
|
|
78
|
+
export declare const ANDROID_SCROLL: {
|
|
79
|
+
refreshHoldOffset: () => number;
|
|
80
|
+
refreshTriggerThreshold: () => number;
|
|
81
|
+
refreshPullHoldsContent: true;
|
|
82
|
+
touchSlop: () => number;
|
|
83
|
+
beginMoveApplies: false;
|
|
84
|
+
dragMatchesAxis: (primaryDelta: number, crossDelta: number) => boolean;
|
|
85
|
+
rejectedMoveMovesSlopOrigin: false;
|
|
86
|
+
directionalLock: false;
|
|
87
|
+
releaseVelocity: typeof estimateAndroidScrollReleaseVelocity;
|
|
88
|
+
momentumReleaseStep: () => number;
|
|
89
|
+
momentumFrameDuration: typeof androidMomentumFrameDuration;
|
|
90
|
+
decelerationRate: typeof androidDecelerationRate;
|
|
91
|
+
momentumPhysics: (decelerationRate: unknown) => {
|
|
92
|
+
kind: "android-over-scroller";
|
|
93
|
+
friction: number;
|
|
94
|
+
};
|
|
95
|
+
rubberBand: false;
|
|
96
|
+
appliedOffset: typeof androidAppliedOffset;
|
|
97
|
+
nativeEventOffset: (value: number, scale: number) => number;
|
|
98
|
+
startOffset: () => number;
|
|
99
|
+
edgeEffect: (overScrollMode: unknown, contentSize: number, viewportSize: number) => boolean;
|
|
100
|
+
fadingEdgeLength: (fadingEdgeLength: unknown) => number;
|
|
101
|
+
indicator: (opts: {
|
|
102
|
+
persistentScrollbar?: unknown;
|
|
103
|
+
indicatorStyle?: unknown;
|
|
104
|
+
colorScheme?: string;
|
|
105
|
+
}) => {
|
|
106
|
+
width: number;
|
|
107
|
+
minLength: number;
|
|
108
|
+
margin: number;
|
|
109
|
+
radius: number;
|
|
110
|
+
alpha: number;
|
|
111
|
+
white: false;
|
|
112
|
+
idleOpacity: number | null;
|
|
113
|
+
};
|
|
66
114
|
};
|
|
67
115
|
export declare function iosConcentricCornerInset(radius: number, dx: number, dy: number): number;
|
|
116
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DeviceSpec, RuntimePlatform } from '../../../../../src/device-catalog.ts';
|
|
1
2
|
export interface ScrollContentInset {
|
|
2
3
|
top: number;
|
|
3
4
|
bottom: number;
|
|
@@ -10,5 +11,7 @@ export interface ScrollRange {
|
|
|
10
11
|
min: number;
|
|
11
12
|
max: number;
|
|
12
13
|
}
|
|
13
|
-
export declare function getScrollStartOffset(leadingInset: number, platform:
|
|
14
|
+
export declare function getScrollStartOffset(leadingInset: number, platform: RuntimePlatform | undefined): number;
|
|
15
|
+
export declare function appliedScrollOffset(value: number, spec: DeviceSpec | undefined): number;
|
|
16
|
+
export declare function nativeScrollEventOffset(value: number, spec: DeviceSpec | undefined): number;
|
|
14
17
|
export declare function getScrollEndOffset(contentSize: number, viewportSize: number, endInset: number, minOffset: number): number;
|