peachsim 0.1.2723 → 0.1.2725
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/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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +57 -36
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-F3M2TKUX.mjs → acorn-W726S2IA.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-Y77FZJW2.mjs → chunk-2MNFO56N.mjs} +49 -35
- package/dist-lib/esm-chunks/{chunk-7XGUQL4X.mjs → chunk-3GTV2LCM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CQJV4EVW.mjs → chunk-3TIJK5UZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-K3CU2YXT.mjs → chunk-76CDSQWP.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-DZXB5BJN.mjs → chunk-7F5LC43J.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZQU5WPTG.mjs → chunk-AAQ2DFPN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AUTMC3QD.mjs → chunk-BTLEW436.mjs} +7 -8
- package/dist-lib/esm-chunks/{chunk-3IU4EP2Z.mjs → chunk-BWMTXR6G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SIULKQAK.mjs → chunk-D5RGF7UF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S3GS24G6.mjs → chunk-FV4DZWYD.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-ZKW75WRX.mjs → chunk-H73GWF5E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LIC5LYQJ.mjs → chunk-HM2MXBOG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GVSWDVPL.mjs → chunk-HMROXN4Q.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-N5UND445.mjs → chunk-JZDAJZBB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EYSRTHK7.mjs → chunk-LWQTRRI2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HA2OAZT5.mjs → chunk-MGH6TFFZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BGHKJMLZ.mjs → chunk-MWBFM6BI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S7SEZPUJ.mjs → chunk-NRIEADO4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IAV5XLVR.mjs → chunk-QRILDJ7M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RHEMYORC.mjs → chunk-UQ2MSEVY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PHPSRPSE.mjs → chunk-WII6ZXAJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TGO6L4RG.mjs → chunk-YCHKJV7N.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-T7IPZWTL.mjs → chunk-YKJUNRZF.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-G4DCGHYZ.mjs → chunk-YX5GEVDN.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-KDQ4RWIN.mjs → metro-layout-parser-5TW7JPFC.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KBXU457K.mjs → swift-package-prebuilt-PQXBXXR2.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-23DEMHHZ.mjs → swift-sdk-app-module-6HBBAK2W.mjs} +33 -24
- package/dist-lib/esm-chunks/{swift-sdk-image-ER4ESBTD.mjs → swift-sdk-image-XGU4LD2J.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-FZRGEKOY.mjs → swift-sdk-image-producer-CMFC7NVM.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +57 -36
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +254 -48
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +254 -48
- package/dist-lib/swift-compile.cjs +54 -33
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +0 -2
- package/dist-types/packages/peach-engine/src/engine/native-text-measure.d.ts +3 -6
- package/dist-types/packages/peach-engine/src/engine/native-text-metric-policy.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/native-text-runtimeContract.d.ts +0 -5
- package/package.json +1 -1
- package/src/binaryen.lock.json +1 -1
- package/src/one-direct-host-source.ts +194 -10
- package/src/one-native-controls-package.ts +81 -36
- package/src/swift-compile.ts +35 -18
- package/src/swift-sdk-app-module.ts +22 -10
- package/src/swift-sdk-image.ts +1 -1
- package/src/swiftSdkLinkContract.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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;
|
|
@@ -6177,7 +6177,7 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
6177
6177
|
|
|
6178
6178
|
// src/swift-compiler-digest.ts
|
|
6179
6179
|
function swiftArchiveCompilerDigestValue() {
|
|
6180
|
-
return true ? "
|
|
6180
|
+
return true ? "f104a6c94890ebd260039267b97161f7fa2e9d835e447a54dcc8f8603c9af43f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
6181
6181
|
}
|
|
6182
6182
|
var import_node_crypto10, import_node_fs25, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
6183
6183
|
var init_swift_compiler_digest = __esm({
|
|
@@ -6328,7 +6328,7 @@ var init_swift_standin_digest = __esm({
|
|
|
6328
6328
|
|
|
6329
6329
|
// src/expo-native-compiler-digest.ts
|
|
6330
6330
|
function expoNativeCompilerDigestValue() {
|
|
6331
|
-
return true ? "
|
|
6331
|
+
return true ? "37d83cb2b8c56fbb0e3999894956a5bd4fdd65e23a4734c4ae58fb86358d8f3a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
6332
6332
|
}
|
|
6333
6333
|
var import_node_crypto12;
|
|
6334
6334
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -29899,11 +29899,12 @@ var init_swift_sdk_image_map = __esm({
|
|
|
29899
29899
|
});
|
|
29900
29900
|
|
|
29901
29901
|
// src/swiftSdkLinkContract.ts
|
|
29902
|
-
var SWIFT_SDK_FUNCTION_ADDRESS_PREFIX, OBJC_LOAD_FUNCTION;
|
|
29902
|
+
var SWIFT_SDK_FUNCTION_ADDRESS_PREFIX, SWIFT_SDK_APP_TABLE_BASE, OBJC_LOAD_FUNCTION;
|
|
29903
29903
|
var init_swiftSdkLinkContract = __esm({
|
|
29904
29904
|
"src/swiftSdkLinkContract.ts"() {
|
|
29905
29905
|
"use strict";
|
|
29906
29906
|
SWIFT_SDK_FUNCTION_ADDRESS_PREFIX = "__peach_sdk_function_address.";
|
|
29907
|
+
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
29907
29908
|
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
29908
29909
|
}
|
|
29909
29910
|
});
|
|
@@ -37255,7 +37256,7 @@ var init_binaryen_lock = __esm({
|
|
|
37255
37256
|
"darwin-arm64": {
|
|
37256
37257
|
asset: "arm64-macos",
|
|
37257
37258
|
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
37258
|
-
sha256: "
|
|
37259
|
+
sha256: "2cadf6373604091be7784a1dde396ccbe67964e9a5ddb40be19bb52d65cb23b7"
|
|
37259
37260
|
}
|
|
37260
37261
|
}
|
|
37261
37262
|
};
|
|
@@ -44550,7 +44551,6 @@ exit "$status"
|
|
|
44550
44551
|
var swift_sdk_image_exports = {};
|
|
44551
44552
|
__export(swift_sdk_image_exports, {
|
|
44552
44553
|
SWIFT_SDK_APP_MEMORY_BASE: () => SWIFT_SDK_APP_MEMORY_BASE,
|
|
44553
|
-
SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
|
|
44554
44554
|
SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
|
|
44555
44555
|
SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
|
|
44556
44556
|
SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
|
|
@@ -45222,7 +45222,7 @@ function readSwiftSdkManifest(image) {
|
|
|
45222
45222
|
}));
|
|
45223
45223
|
return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block: block2, segments });
|
|
45224
45224
|
}
|
|
45225
|
-
var import_node_child_process37, import_node_crypto44, import_node_fs73, import_node_path73, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE,
|
|
45225
|
+
var import_node_child_process37, import_node_crypto44, import_node_fs73, import_node_path73, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
|
|
45226
45226
|
var init_swift_sdk_image = __esm({
|
|
45227
45227
|
"src/swift-sdk-image.ts"() {
|
|
45228
45228
|
"use strict";
|
|
@@ -45243,12 +45243,12 @@ var init_swift_sdk_image = __esm({
|
|
|
45243
45243
|
init_swift_sdk_image_wasm();
|
|
45244
45244
|
init_swift_toolchain();
|
|
45245
45245
|
init_swift_wasm_prune();
|
|
45246
|
+
init_swiftSdkLinkContract();
|
|
45246
45247
|
init_swiftTargetContract();
|
|
45247
45248
|
init_wasm_optimize();
|
|
45248
45249
|
run4 = (0, import_node_util10.promisify)(import_node_child_process37.execFile);
|
|
45249
45250
|
SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
45250
45251
|
SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
45251
|
-
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
45252
45252
|
EMPTY_APP = `import SwiftUI
|
|
45253
45253
|
|
|
45254
45254
|
@main
|
|
@@ -45509,7 +45509,6 @@ __export(swift_sdk_app_module_exports, {
|
|
|
45509
45509
|
linkSwiftAppModule: () => linkSwiftAppModule,
|
|
45510
45510
|
readSwiftSdkAppLink: () => readSwiftSdkAppLink,
|
|
45511
45511
|
readSwiftSdkUsage: () => readSwiftSdkUsage,
|
|
45512
|
-
selectSwiftSdkData: () => selectSwiftSdkData,
|
|
45513
45512
|
swiftAppModuleInputs: () => swiftAppModuleInputs,
|
|
45514
45513
|
swiftAppModuleThunkSection: () => swiftAppModuleThunkSection,
|
|
45515
45514
|
swiftSdkProjectionSpans: () => swiftSdkProjectionSpans,
|
|
@@ -46504,12 +46503,11 @@ function readSwiftSdkAppLink(file) {
|
|
|
46504
46503
|
return JSON.parse((0, import_node_zlib5.gunzipSync)((0, import_node_fs74.readFileSync)(file)).toString("utf8"));
|
|
46505
46504
|
}
|
|
46506
46505
|
function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
|
|
46507
|
-
const
|
|
46508
|
-
|
|
46509
|
-
|
|
46510
|
-
]);
|
|
46506
|
+
const binding = bindSwiftAppModule(linkage, sdk2);
|
|
46507
|
+
const { data, liveSlots } = selectSwiftSdkData(sdk2, usage, linkage, projection);
|
|
46508
|
+
const bytes = Buffer.concat([binding, data]);
|
|
46511
46509
|
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto45.createHash)("sha256").update(bytes).digest("hex");
|
|
46512
|
-
return { bytes, sha256: sha2565 };
|
|
46510
|
+
return { bytes, sha256: sha2565, liveSlots };
|
|
46513
46511
|
}
|
|
46514
46512
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
46515
46513
|
const map2 = readWasmLinkMap(mapFile, false);
|
|
@@ -47039,7 +47037,18 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
|
|
|
47039
47037
|
blob.set(run17.bytes, at + 12);
|
|
47040
47038
|
at += 12 + run17.bytes.length;
|
|
47041
47039
|
}
|
|
47042
|
-
|
|
47040
|
+
const selected = new Set(boundSlots);
|
|
47041
|
+
slots.forEach((slot, index) => {
|
|
47042
|
+
if (slot && liveFunctions[index]) selected.add(slot);
|
|
47043
|
+
});
|
|
47044
|
+
const liveSlots = Buffer.alloc((selected.size + 1) * 4);
|
|
47045
|
+
liveSlots.writeUInt32LE(selected.size, 0);
|
|
47046
|
+
let slotOffset = 4;
|
|
47047
|
+
for (const slot of selected) {
|
|
47048
|
+
liveSlots.writeUInt32LE(slot, slotOffset);
|
|
47049
|
+
slotOffset += 4;
|
|
47050
|
+
}
|
|
47051
|
+
return { data: blob, liveSlots };
|
|
47043
47052
|
}
|
|
47044
47053
|
function partitionParent(section2) {
|
|
47045
47054
|
return [
|
|
@@ -52703,14 +52712,17 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
52703
52712
|
return null;
|
|
52704
52713
|
if (!("sdk" in receipt)) return null;
|
|
52705
52714
|
const image = receipt.sdk;
|
|
52706
|
-
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
52715
|
+
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string" || typeof image.liveSlots !== "string")
|
|
52707
52716
|
return null;
|
|
52708
52717
|
const binding = (0, import_node_fs82.readFileSync)(import_node_path84.default.join(directory2, "sdk-binding.bin"));
|
|
52709
52718
|
if ((0, import_node_crypto50.createHash)("sha256").update(binding).digest("hex") !== image.binding) return null;
|
|
52719
|
+
const liveSlots = (0, import_node_fs82.readFileSync)(import_node_path84.default.join(directory2, "sdk-live-slots.bin"));
|
|
52720
|
+
if ((0, import_node_crypto50.createHash)("sha256").update(liveSlots).digest("hex") !== image.liveSlots)
|
|
52721
|
+
return null;
|
|
52710
52722
|
const sdk2 = {
|
|
52711
52723
|
key: image.key,
|
|
52712
52724
|
sha256: image.sha256,
|
|
52713
|
-
binding: { bytes: binding, sha256: image.binding }
|
|
52725
|
+
binding: { bytes: binding, sha256: image.binding, liveSlots }
|
|
52714
52726
|
};
|
|
52715
52727
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 }, sdk: sdk2 };
|
|
52716
52728
|
} catch (error) {
|
|
@@ -52726,8 +52738,13 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
52726
52738
|
try {
|
|
52727
52739
|
(0, import_node_fs82.writeFileSync)(import_node_path84.default.join(pending2, "app.wasm"), artifact.bytes);
|
|
52728
52740
|
(0, import_node_fs82.writeFileSync)(import_node_path84.default.join(pending2, "icu.gz"), artifact.icu.gzip);
|
|
52729
|
-
if (artifact.sdk)
|
|
52741
|
+
if (artifact.sdk) {
|
|
52730
52742
|
(0, import_node_fs82.writeFileSync)(import_node_path84.default.join(pending2, "sdk-binding.bin"), artifact.sdk.binding.bytes);
|
|
52743
|
+
(0, import_node_fs82.writeFileSync)(
|
|
52744
|
+
import_node_path84.default.join(pending2, "sdk-live-slots.bin"),
|
|
52745
|
+
artifact.sdk.binding.liveSlots
|
|
52746
|
+
);
|
|
52747
|
+
}
|
|
52731
52748
|
(0, import_node_fs82.writeFileSync)(
|
|
52732
52749
|
import_node_path84.default.join(pending2, "artifact.json"),
|
|
52733
52750
|
JSON.stringify({
|
|
@@ -52737,12 +52754,13 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
52737
52754
|
sdk: artifact.sdk && {
|
|
52738
52755
|
key: artifact.sdk.key,
|
|
52739
52756
|
sha256: artifact.sdk.sha256,
|
|
52740
|
-
binding: artifact.sdk.binding.sha256
|
|
52757
|
+
binding: artifact.sdk.binding.sha256,
|
|
52758
|
+
liveSlots: (0, import_node_crypto50.createHash)("sha256").update(artifact.sdk.binding.liveSlots).digest("hex")
|
|
52741
52759
|
}
|
|
52742
52760
|
})
|
|
52743
52761
|
);
|
|
52744
52762
|
const outputs = ["app.wasm", "icu.gz"];
|
|
52745
|
-
if (artifact.sdk) outputs.push("sdk-binding.bin");
|
|
52763
|
+
if (artifact.sdk) outputs.push("sdk-binding.bin", "sdk-live-slots.bin");
|
|
52746
52764
|
for (const file of [...outputs, "artifact.json"]) {
|
|
52747
52765
|
(0, import_node_fs82.renameSync)(import_node_path84.default.join(pending2, file), import_node_path84.default.join(directory2, file));
|
|
52748
52766
|
}
|
|
@@ -53666,10 +53684,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
53666
53684
|
import_node_path84.default.join(staged, "packages/peachsim/sdk/ios")
|
|
53667
53685
|
);
|
|
53668
53686
|
if (moduleRestructured || sdkRestructured || hadKey === null) {
|
|
53669
|
-
(
|
|
53670
|
-
(0, import_node_fs82.rmSync)(import_node_path84.default.join(slot, WASM_TRIPLE, "release", "description.json"), {
|
|
53671
|
-
force: true
|
|
53672
|
-
});
|
|
53687
|
+
retireSwiftBuildPlan(slot);
|
|
53673
53688
|
}
|
|
53674
53689
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
53675
53690
|
if (!file.startsWith("../")) continue;
|
|
@@ -53734,7 +53749,12 @@ ${args.prebuilt.modules}
|
|
|
53734
53749
|
${statOf(import_node_path84.default.join(args.prebuilt.modules, entry))}`);
|
|
53735
53750
|
return hash.digest("hex");
|
|
53736
53751
|
}
|
|
53752
|
+
function retireSwiftBuildPlan(scratch2) {
|
|
53753
|
+
(0, import_node_fs82.rmSync)(import_node_path84.default.join(scratch2, "release.yaml"), { force: true });
|
|
53754
|
+
(0, import_node_fs82.rmSync)(import_node_path84.default.join(scratch2, WASM_TRIPLE, "release", "description.json"), { force: true });
|
|
53755
|
+
}
|
|
53737
53756
|
function retireSwiftLinkTargets(retired) {
|
|
53757
|
+
retireSwiftBuildPlan(retired);
|
|
53738
53758
|
for (const name3 of [
|
|
53739
53759
|
"ModuleCache",
|
|
53740
53760
|
"peach-product-checkpoints",
|
|
@@ -53766,20 +53786,21 @@ function retireStaleSwiftLink(root, baseStamp, stamp, preserveClangObjects = fal
|
|
|
53766
53786
|
} catch (error) {
|
|
53767
53787
|
if (!vanished(error)) throw error;
|
|
53768
53788
|
}
|
|
53769
|
-
(0, import_node_fs82.mkdirSync)(root, { recursive: true });
|
|
53770
53789
|
const combined = `${baseStamp}
|
|
53771
|
-
${stamp}`;
|
|
53772
|
-
(
|
|
53773
|
-
`);
|
|
53790
|
+
${preserveClangObjects ? "swift-targets-v2\n" : ""}${stamp}`;
|
|
53791
|
+
if (previous === combined) return false;
|
|
53774
53792
|
const retired = import_node_path84.default.join(root, ".build");
|
|
53775
|
-
|
|
53793
|
+
const hadBuild = (0, import_node_fs82.existsSync)(retired);
|
|
53776
53794
|
const [previousBase] = previous?.split("\n") ?? [];
|
|
53777
|
-
if (
|
|
53778
|
-
|
|
53779
|
-
|
|
53795
|
+
if (hadBuild) {
|
|
53796
|
+
if (preserveClangObjects && previousBase === baseStamp)
|
|
53797
|
+
retireSwiftLinkTargets(retired);
|
|
53798
|
+
else (0, import_node_fs82.rmSync)(retired, { recursive: true, force: true });
|
|
53780
53799
|
}
|
|
53781
|
-
(0, import_node_fs82.
|
|
53782
|
-
|
|
53800
|
+
(0, import_node_fs82.mkdirSync)(root, { recursive: true });
|
|
53801
|
+
(0, import_node_fs82.writeFileSync)(receipt, `${combined}
|
|
53802
|
+
`);
|
|
53803
|
+
return hadBuild;
|
|
53783
53804
|
}
|
|
53784
53805
|
async function compileSwiftProjectUnit(input, options2) {
|
|
53785
53806
|
for (let attempt = 1; ; attempt++) {
|
|
@@ -54806,7 +54827,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
54806
54827
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
54807
54828
|
MULTI_MANIFEST_VERSION = 76;
|
|
54808
54829
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
54809
|
-
compilerSourceDigest = true ? "
|
|
54830
|
+
compilerSourceDigest = true ? "65c18cf90c6d5327457dfe6ae7fe052f0acac7fb60d8df897cbd58095efd6c7f" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
54810
54831
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
54811
54832
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
54812
54833
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -118588,6 +118609,110 @@ public final class PeachOneDirectStage: NSObject {
|
|
|
118588
118609
|
}
|
|
118589
118610
|
}
|
|
118590
118611
|
|
|
118612
|
+
@MainActor
|
|
118613
|
+
private final class PeachDirectSwipeConfiguration: ObservableObject {
|
|
118614
|
+
struct Action: Identifiable {
|
|
118615
|
+
let id: Int
|
|
118616
|
+
let title: String
|
|
118617
|
+
let symbol: String?
|
|
118618
|
+
let destructive: Bool
|
|
118619
|
+
let tint: UIColor?
|
|
118620
|
+
}
|
|
118621
|
+
|
|
118622
|
+
struct Edge {
|
|
118623
|
+
var actions: [Action] = []
|
|
118624
|
+
var fullSwipe = false
|
|
118625
|
+
|
|
118626
|
+
init(_ items: [[String: Any]] = [], fullSwipe: Bool = false) {
|
|
118627
|
+
self.fullSwipe = fullSwipe
|
|
118628
|
+
actions = items.enumerated().map { index, item in
|
|
118629
|
+
Action(id: index, title: item["title"] as? String ?? "", symbol: item["systemImage"] as? String,
|
|
118630
|
+
destructive: item["destructive"] as? Bool ?? false, tint: item["color"] as? UIColor)
|
|
118631
|
+
}
|
|
118632
|
+
}
|
|
118633
|
+
}
|
|
118634
|
+
|
|
118635
|
+
struct Edges {
|
|
118636
|
+
var leading = Edge()
|
|
118637
|
+
var trailing = Edge()
|
|
118638
|
+
}
|
|
118639
|
+
|
|
118640
|
+
@Published var edges = Edges()
|
|
118641
|
+
var emit: ((String, NSDictionary) -> Void)?
|
|
118642
|
+
}
|
|
118643
|
+
|
|
118644
|
+
@MainActor
|
|
118645
|
+
private struct PeachDirectSwipeRow: View {
|
|
118646
|
+
@ObservedObject var configuration: PeachDirectSwipeConfiguration
|
|
118647
|
+
@ObservedObject var children: OneNativeChildren
|
|
118648
|
+
|
|
118649
|
+
var body: some View {
|
|
118650
|
+
Group {
|
|
118651
|
+
ForEach(children.items) { child in child.content }
|
|
118652
|
+
}
|
|
118653
|
+
.swipeActions(edge: .leading, allowsFullSwipe: configuration.edges.leading.fullSwipe) {
|
|
118654
|
+
buttons(configuration.edges.leading, edge: "leading")
|
|
118655
|
+
}
|
|
118656
|
+
.swipeActions(edge: .trailing, allowsFullSwipe: configuration.edges.trailing.fullSwipe) {
|
|
118657
|
+
buttons(configuration.edges.trailing, edge: "trailing")
|
|
118658
|
+
}
|
|
118659
|
+
}
|
|
118660
|
+
|
|
118661
|
+
@ViewBuilder
|
|
118662
|
+
private func buttons(_ group: PeachDirectSwipeConfiguration.Edge, edge: String) -> some View {
|
|
118663
|
+
ForEach(group.actions) { action in
|
|
118664
|
+
let role: ButtonRole? = action.destructive ? .destructive : nil
|
|
118665
|
+
let activate: () -> Void = { configuration.emit?("action", ["edge": edge, "index": action.id]) }
|
|
118666
|
+
let tint = action.tint.map { Color(uiColor: $0) }
|
|
118667
|
+
if let symbol = action.symbol {
|
|
118668
|
+
Button(action.title, systemImage: symbol, role: role, action: activate).tint(tint)
|
|
118669
|
+
} else {
|
|
118670
|
+
Button(action.title, role: role, action: activate).tint(tint)
|
|
118671
|
+
}
|
|
118672
|
+
}
|
|
118673
|
+
}
|
|
118674
|
+
}
|
|
118675
|
+
|
|
118676
|
+
@MainActor
|
|
118677
|
+
@objc(PeachDirectSwipeActionsView)
|
|
118678
|
+
public final class PeachDirectSwipeActionsView: OneNativeContainerView {
|
|
118679
|
+
private let configuration: PeachDirectSwipeConfiguration
|
|
118680
|
+
private let slot: OneNativeContainerSlotView
|
|
118681
|
+
|
|
118682
|
+
@objc public init() {
|
|
118683
|
+
let configuration = PeachDirectSwipeConfiguration()
|
|
118684
|
+
self.configuration = configuration
|
|
118685
|
+
slot = OneNativeContainerSlotView(frame: .zero)
|
|
118686
|
+
super.init(wrap: { children, _ in
|
|
118687
|
+
AnyView(PeachDirectSwipeRow(configuration: configuration, children: children))
|
|
118688
|
+
})
|
|
118689
|
+
insertChild(slot, at: 0)
|
|
118690
|
+
}
|
|
118691
|
+
|
|
118692
|
+
required init?(coder: NSCoder) { fatalError("init(coder:) is unavailable") }
|
|
118693
|
+
|
|
118694
|
+
@objc(configureLeading:trailing:fullSwipe:emit:)
|
|
118695
|
+
public func configure(leading: [[String: Any]], trailing: [[String: Any]], fullSwipe: [String: Bool],
|
|
118696
|
+
emit: @escaping (String, NSDictionary) -> Void
|
|
118697
|
+
) {
|
|
118698
|
+
configuration.emit = emit
|
|
118699
|
+
configuration.edges = .init(leading: .init(leading, fullSwipe: fullSwipe["leading"] == true),
|
|
118700
|
+
trailing: .init(trailing, fullSwipe: fullSwipe["trailing"] == true))
|
|
118701
|
+
}
|
|
118702
|
+
|
|
118703
|
+
@objc public func setRow(_ view: UIView?) {
|
|
118704
|
+
guard slot.content !== view else { return }
|
|
118705
|
+
slot.content?.removeFromSuperview()
|
|
118706
|
+
slot.content = view
|
|
118707
|
+
refreshRow(for: slot)
|
|
118708
|
+
}
|
|
118709
|
+
|
|
118710
|
+
public override func layoutSubviews() {
|
|
118711
|
+
slot.configure(height: bounds.height, width: 0)
|
|
118712
|
+
super.layoutSubviews()
|
|
118713
|
+
}
|
|
118714
|
+
}
|
|
118715
|
+
|
|
118591
118716
|
@MainActor
|
|
118592
118717
|
private final class PeachDirectTableView: UITableView {
|
|
118593
118718
|
var onLayoutBounds: ((CGSize) -> Void)?
|
|
@@ -119721,26 +119846,28 @@ public struct OneDirectStageView: View {
|
|
|
119721
119846
|
public init() {}
|
|
119722
119847
|
|
|
119723
119848
|
public var body: some View {
|
|
119724
|
-
OneDirectStageRepresentable(tick: tick)
|
|
119849
|
+
OneDirectStageRepresentable(tick: tick, onDirty: { tick &+= 1 })
|
|
119725
119850
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
119726
|
-
.onAppear {
|
|
119727
|
-
PeachOneDirectStage.shared.onStageDirty = {
|
|
119728
|
-
tick &+= 1
|
|
119729
|
-
}
|
|
119730
|
-
}
|
|
119731
119851
|
}
|
|
119732
119852
|
}
|
|
119733
119853
|
|
|
119734
119854
|
private struct OneDirectStageRepresentable: UIViewRepresentable {
|
|
119735
119855
|
let tick: UInt64
|
|
119856
|
+
let onDirty: () -> Void
|
|
119736
119857
|
|
|
119737
119858
|
func makeUIView(context: Context) -> UIView {
|
|
119738
|
-
PeachOneDirectStage.shared
|
|
119859
|
+
let stage = PeachOneDirectStage.shared
|
|
119860
|
+
stage.onStageDirty = onDirty
|
|
119861
|
+
return stage.stageView
|
|
119739
119862
|
}
|
|
119740
119863
|
|
|
119741
119864
|
func updateUIView(_ uiView: UIView, context: Context) {
|
|
119742
119865
|
_ = tick
|
|
119743
119866
|
}
|
|
119867
|
+
|
|
119868
|
+
static func dismantleUIView(_ uiView: UIView, coordinator: ()) {
|
|
119869
|
+
PeachOneDirectStage.shared.onStageDirty = nil
|
|
119870
|
+
}
|
|
119744
119871
|
}
|
|
119745
119872
|
`;
|
|
119746
119873
|
PEACH_ONE_HOST_SHIMS = {
|
|
@@ -119862,6 +119989,9 @@ uint32_t peach_one_node_css_color(uint32_t nodeLo, uint32_t nodeHi, const char*
|
|
|
119862
119989
|
uint32_t sourceLen, double* rgbaOut);
|
|
119863
119990
|
PEACH_ONE_GUEST_IMPORT("node_layout_size")
|
|
119864
119991
|
uint32_t peach_one_node_layout_size(uint32_t nodeLo, uint32_t nodeHi, double* sizeOut);
|
|
119992
|
+
PEACH_ONE_GUEST_IMPORT("slot_content_frame")
|
|
119993
|
+
uint32_t peach_one_slot_content_frame(uint32_t ownerLo, uint32_t ownerHi,
|
|
119994
|
+
uint32_t contentLo, uint32_t contentHi, double x, double y, double width, double height);
|
|
119865
119995
|
PEACH_ONE_GUEST_IMPORT("wake_stage")
|
|
119866
119996
|
void peach_one_wake_stage(void);
|
|
119867
119997
|
}
|
|
@@ -119920,6 +120050,61 @@ UIColor* PeachPlatformColor(NSString* keyword) {
|
|
|
119920
120050
|
return keyword ? colors[keyword.lowercaseString] : nil;
|
|
119921
120051
|
}
|
|
119922
120052
|
|
|
120053
|
+
@interface PeachDirectSwipeActionsContainer : NSObject <PeachContainer>
|
|
120054
|
+
@end
|
|
120055
|
+
|
|
120056
|
+
static NSArray<NSDictionary*>* SwiftSwipeActions(id items) {
|
|
120057
|
+
if (![items isKindOfClass:NSArray.class]) return @[];
|
|
120058
|
+
NSArray* entries = static_cast<NSArray*>(items);
|
|
120059
|
+
NSMutableArray* actions = [NSMutableArray arrayWithCapacity:entries.count];
|
|
120060
|
+
for (NSDictionary* item in entries) {
|
|
120061
|
+
if (![item isKindOfClass:NSDictionary.class]) return @[];
|
|
120062
|
+
NSMutableDictionary* action = [item mutableCopy];
|
|
120063
|
+
action[@"color"] = PeachProcessedColor(item[@"color"]);
|
|
120064
|
+
[actions addObject:action];
|
|
120065
|
+
}
|
|
120066
|
+
return actions;
|
|
120067
|
+
}
|
|
120068
|
+
|
|
120069
|
+
@implementation PeachDirectSwipeActionsContainer {
|
|
120070
|
+
PeachDirectSwipeActionsView* _view;
|
|
120071
|
+
peach_node _child;
|
|
120072
|
+
__weak UIView* _row;
|
|
120073
|
+
}
|
|
120074
|
+
|
|
120075
|
+
- (void)configure:(NSDictionary*)spec emit:(PeachContainerEmit)emit {
|
|
120076
|
+
if (!_view) _view = [PeachDirectSwipeActionsView new];
|
|
120077
|
+
NSDictionary* fullSwipe = [spec[@"fullSwipe"] isKindOfClass:NSDictionary.class] ? spec[@"fullSwipe"] : @{};
|
|
120078
|
+
[_view configureLeading:SwiftSwipeActions(spec[@"leading"])
|
|
120079
|
+
trailing:SwiftSwipeActions(spec[@"trailing"])
|
|
120080
|
+
fullSwipe:fullSwipe
|
|
120081
|
+
emit:emit];
|
|
120082
|
+
}
|
|
120083
|
+
|
|
120084
|
+
- (void)child:(peach_node)node { _child = node; }
|
|
120085
|
+
|
|
120086
|
+
- (void)mountIn:(UIView*)container views:(id<PeachViewLookup>)views {
|
|
120087
|
+
_row = _child ? [views viewForNode:_child] : nil;
|
|
120088
|
+
_child = 0;
|
|
120089
|
+
[_view setRow:_row];
|
|
120090
|
+
if (_view.superview != container) [container addSubview:_view];
|
|
120091
|
+
_view.frame = container.bounds;
|
|
120092
|
+
}
|
|
120093
|
+
|
|
120094
|
+
- (BOOL)ownsView:(UIView*)view { return view && view == _row; }
|
|
120095
|
+
|
|
120096
|
+
- (void)unmount {
|
|
120097
|
+
[_view setRow:nil];
|
|
120098
|
+
[_view removeFromSuperview];
|
|
120099
|
+
_row = nil;
|
|
120100
|
+
}
|
|
120101
|
+
|
|
120102
|
+
- (void)detach {
|
|
120103
|
+
[self unmount];
|
|
120104
|
+
_view = nil;
|
|
120105
|
+
}
|
|
120106
|
+
@end
|
|
120107
|
+
|
|
119923
120108
|
@interface PeachDirectTableListContainer : NSObject <PeachContainer>
|
|
119924
120109
|
- (void)refreshLayoutIn:(UIView*)container views:(id<PeachViewLookup>)views;
|
|
119925
120110
|
@end
|
|
@@ -120071,11 +120256,24 @@ int32_t emitEventToHost(peach_node node, NSString* event, NSDictionary* payload)
|
|
|
120071
120256
|
return peach_one_emit_container_event(nodeLo(node), nodeHi(node), evPtr, evLen, jsPtr, jsLen);
|
|
120072
120257
|
}
|
|
120073
120258
|
|
|
120074
|
-
id<PeachContainer> makeContainer(NSString* kind, peach_node node) {
|
|
120075
|
-
if ([kind isEqualToString:@"swiftUI"])
|
|
120259
|
+
id<PeachContainer> makeContainer(NSString* kind, peach_node node, NSDictionary* spec) {
|
|
120260
|
+
if ([kind isEqualToString:@"swiftUI"]) {
|
|
120261
|
+
PeachSwiftUI* swift = [PeachSwiftUI new];
|
|
120262
|
+
NSString* control = spec[@"control"];
|
|
120263
|
+
if ([control isEqual:@"OneNativeContainerSlot"] || [control isEqual:@"OneNativeTab"]) {
|
|
120264
|
+
swift.slotContentLayout = ^(peach_node content, CGRect frame) {
|
|
120265
|
+
if (peach_one_slot_content_frame(nodeLo(node), nodeHi(node), nodeLo(content),
|
|
120266
|
+
nodeHi(content), frame.origin.x, frame.origin.y, frame.size.width, frame.size.height)) {
|
|
120267
|
+
[PeachOneDirectStage.shared markDirty];
|
|
120268
|
+
}
|
|
120269
|
+
};
|
|
120270
|
+
}
|
|
120271
|
+
return swift;
|
|
120272
|
+
}
|
|
120076
120273
|
if ([kind isEqualToString:@"sheet"]) return [PeachSheet new];
|
|
120077
120274
|
if ([kind isEqualToString:@"menu"]) return [PeachMenu new];
|
|
120078
120275
|
if ([kind isEqualToString:@"contextMenu"]) return [PeachContextMenu new];
|
|
120276
|
+
if ([kind isEqualToString:@"swipeActions"]) return [PeachDirectSwipeActionsContainer new];
|
|
120079
120277
|
if ([kind isEqualToString:@"tableList"]) return [PeachDirectTableListContainer new];
|
|
120080
120278
|
if ([kind isEqualToString:@"popover"]) {
|
|
120081
120279
|
return [[PeachPopover alloc] initWithDismissRequest:^BOOL(NSInteger revision) {
|
|
@@ -120184,7 +120382,7 @@ uint32_t peach_one_container_configure(uint32_t targetLo, uint32_t targetHi, con
|
|
|
120184
120382
|
}
|
|
120185
120383
|
if (!record.container) {
|
|
120186
120384
|
record.kind = kind;
|
|
120187
|
-
record.container = makeContainer(kind, node);
|
|
120385
|
+
record.container = makeContainer(kind, node, spec);
|
|
120188
120386
|
if (!record.container) return 0;
|
|
120189
120387
|
}
|
|
120190
120388
|
PeachContainerEmit emit = ^(NSString* event, NSDictionary* payload) {
|
|
@@ -120387,6 +120585,13 @@ void peach_one_container_command(uint32_t targetLo, uint32_t targetHi, const cha
|
|
|
120387
120585
|
@autoreleasepool {
|
|
120388
120586
|
const peach_node node = joinNode(targetLo, targetHi);
|
|
120389
120587
|
NSString* name = nsStringFromBytes(namePtr, nameLen);
|
|
120588
|
+
NSString* prefix = @"contextMenuInteraction:";
|
|
120589
|
+
if (node && [name hasPrefix:prefix]) {
|
|
120590
|
+
NSString* event = [name substringFromIndex:prefix.length];
|
|
120591
|
+
NSString* action = [event isEqualToString:@"action"] ? nsStringFromBytes(jsonPtr, jsonLen) : nil;
|
|
120592
|
+
emitEventToHost(node, event, action ? @{@"id": action} : @{});
|
|
120593
|
+
return;
|
|
120594
|
+
}
|
|
120390
120595
|
NSDictionary* payload = jsonDictFromBytes(jsonPtr, jsonLen);
|
|
120391
120596
|
if (node == 0) {
|
|
120392
120597
|
if ([name isEqualToString:@"completeAction"]) {
|
|
@@ -121723,7 +121928,7 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
|
|
|
121723
121928
|
watched.add(sourcePath);
|
|
121724
121929
|
}
|
|
121725
121930
|
files2.set("Sources/ControlsHost/ios/PeachOneDirectHost.mm", PEACH_ONE_DIRECT_HOST_MM);
|
|
121726
|
-
files2.set(
|
|
121931
|
+
files2.set(GUEST_ENTRY, GUEST_MAIN_SWIFT);
|
|
121727
121932
|
if (bindings) {
|
|
121728
121933
|
files2.set("Sources/One/One.swift", oneSDKModule);
|
|
121729
121934
|
for (const relative6 of ONE_SDK_RUNTIME_SOURCES) {
|
|
@@ -121832,7 +122037,7 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
|
|
|
121832
122037
|
...oneSDKShards.size ? { oneSDKShards } : {}
|
|
121833
122038
|
};
|
|
121834
122039
|
}
|
|
121835
|
-
var import_node_crypto93, import_node_fs155, import_node_module22, import_node_path158, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT, GUEST_MAIN_SWIFT, ONE_SDK_RUNTIME_SOURCES, ONE_NATIVE_STYLE_SHARDS, ONE_NATIVE_STYLE_SHARD_MIN_BYTES, DIRECT_HOST_SWIFT_SEEDS, DIRECT_HOST_IOS_FILES;
|
|
122040
|
+
var import_node_crypto93, import_node_fs155, import_node_module22, import_node_path158, import_node_url8, ONE_SDK_DEFINES, GUEST_ENTRY, BRIDGE_SWIFT, GUEST_MAIN_SWIFT, ONE_SDK_RUNTIME_SOURCES, ONE_NATIVE_STYLE_SHARDS, ONE_NATIVE_STYLE_SHARD_MIN_BYTES, DIRECT_HOST_SWIFT_SEEDS, DIRECT_HOST_IOS_FILES;
|
|
121836
122041
|
var init_one_native_controls_package = __esm({
|
|
121837
122042
|
"src/one-native-controls-package.ts"() {
|
|
121838
122043
|
"use strict";
|
|
@@ -121855,6 +122060,7 @@ var init_one_native_controls_package = __esm({
|
|
|
121855
122060
|
init_swift_submit();
|
|
121856
122061
|
init_swift_toolchain();
|
|
121857
122062
|
ONE_SDK_DEFINES = ["ONE_IOS_26_SDK", "ONE_IOS_27_SDK", "ONE_IOS_27_1_SDK"];
|
|
122063
|
+
GUEST_ENTRY = "Sources/Controls/OneNativeControlsGuest.swift";
|
|
121858
122064
|
BRIDGE_SWIFT = `@_spi(Peach) import SwiftUI
|
|
121859
122065
|
@_spi(Peach) import UIKit
|
|
121860
122066
|
import PeachJSON
|
|
@@ -127857,7 +128063,7 @@ var init_nitro_superset = __esm({
|
|
|
127857
128063
|
init_nitroContract();
|
|
127858
128064
|
init_swift_standin_digest();
|
|
127859
128065
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
127860
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
128066
|
+
NITRO_COMPILER_DIGEST = true ? "3bb92dce458a79e08d4cfa92d7c065894bfc73a21379d325f3a4bb95ac8d1c4b" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
127861
128067
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
127862
128068
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
127863
128069
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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;
|
|
@@ -1061,7 +1061,7 @@ var init_swift_standin_digest = __esm({
|
|
|
1061
1061
|
|
|
1062
1062
|
// src/expo-native-compiler-digest.ts
|
|
1063
1063
|
function expoNativeCompilerDigestValue() {
|
|
1064
|
-
return true ? "
|
|
1064
|
+
return true ? "37d83cb2b8c56fbb0e3999894956a5bd4fdd65e23a4734c4ae58fb86358d8f3a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
1065
1065
|
}
|
|
1066
1066
|
var import_node_crypto6;
|
|
1067
1067
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -5586,7 +5586,7 @@ var init_binaryen_lock = __esm({
|
|
|
5586
5586
|
"darwin-arm64": {
|
|
5587
5587
|
asset: "arm64-macos",
|
|
5588
5588
|
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
5589
|
-
sha256: "
|
|
5589
|
+
sha256: "2cadf6373604091be7784a1dde396ccbe67964e9a5ddb40be19bb52d65cb23b7"
|
|
5590
5590
|
}
|
|
5591
5591
|
}
|
|
5592
5592
|
};
|
|
@@ -6099,7 +6099,7 @@ var init_swift_compile = __esm({
|
|
|
6099
6099
|
ExpoModulesCore: []
|
|
6100
6100
|
};
|
|
6101
6101
|
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
6102
|
-
compilerSourceDigest = true ? "
|
|
6102
|
+
compilerSourceDigest = true ? "65c18cf90c6d5327457dfe6ae7fe052f0acac7fb60d8df897cbd58095efd6c7f" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
6103
6103
|
NOT_ON_IOS = new RegExp(
|
|
6104
6104
|
`\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
|
|
6105
6105
|
"g"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "../esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-MWBFM6BI.mjs";
|
|
3
3
|
|
|
4
4
|
// src/host/fetch-proxy-overrides.ts
|
|
5
5
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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/menu.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
rnxPublicBrand
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
5
|
-
import "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-BWMTXR6G.mjs";
|
|
5
|
+
import "./esm-chunks/chunk-MWBFM6BI.mjs";
|
|
6
6
|
|
|
7
7
|
// src/menuContract.ts
|
|
8
8
|
var SOOTSIM_ENGINE_EVENT_NAME = "sootsim:engine-event";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (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,8 +1,8 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isRecord
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
5
|
-
import "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-HM2MXBOG.mjs";
|
|
5
|
+
import "./esm-chunks/chunk-MWBFM6BI.mjs";
|
|
6
6
|
|
|
7
7
|
// src/metro-fingerprint-registry.ts
|
|
8
8
|
var RNX_METRO_FINGERPRINT_SCHEMA_VERSION = 2;
|