peachsim 0.1.2625 → 0.1.2627
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/commands/diagnose-native.ts +717 -0
- package/cli/commands/perf-native.ts +120 -51
- 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 +87 -17
- 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-SHZZDBSI.mjs → acorn-D2TBEXUS.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-DVMKYLDN.mjs → chunk-2Z47MJY7.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-6PZI7TYE.mjs → chunk-3Z6TOSBM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-P542MMIN.mjs → chunk-4PPBABST.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RJWEWNAJ.mjs → chunk-6KAXUVL3.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-F4YHL4UM.mjs → chunk-7WWBP4L4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q5NI4L3Z.mjs → chunk-AE2VDAUH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ULHG6CND.mjs → chunk-BF54TN4C.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-JRU2VXUU.mjs → chunk-D26XDATF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-M2FEKSK3.mjs → chunk-M2K2SAAV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SRIRVPNX.mjs → chunk-MMKRGY33.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RXXCTHJG.mjs → chunk-N75KNJIA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A4R4YGFJ.mjs → chunk-NFO2NQR3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KA4AQDVF.mjs → chunk-OKKGDF2H.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A66VNSO6.mjs → chunk-OZDM3CIC.mjs} +80 -14
- package/dist-lib/esm-chunks/{chunk-JVEJLPJC.mjs → chunk-PFIQXQK2.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-Z6AH6AQC.mjs → chunk-PNMDP4NZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W4HQINQ6.mjs → chunk-PZAWOGX5.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-XQBHCWS4.mjs → chunk-SUBMWAYT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-R4FFTWPL.mjs → chunk-U5CS65KA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3XZGWT62.mjs → chunk-UTJKHY4H.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LJYNZ5HM.mjs → chunk-VLH5JM4H.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7Z7YJ4FU.mjs → chunk-WCQX636N.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2LDG7OD4.mjs → chunk-XTQ3XPCU.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-OCCZJOSA.mjs → chunk-ZSEZ76MX.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-GJHR7FCR.mjs → metro-layout-parser-XZK47I2X.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-UVRGKTD4.mjs → swift-package-prebuilt-G2TXZCDX.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-U3MUJ7QD.mjs → swift-sdk-app-module-E47CAEFE.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-U4W7QMAT.mjs → swift-sdk-image-F4JLUOXQ.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-TFFZDNRK.mjs → swift-sdk-image-producer-4GDVFOQZ.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +87 -17
- 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 +148 -52
- package/dist-lib/host/fetch-proxy-handler.cjs +71 -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 +148 -52
- package/dist-lib/swift-compile.cjs +68 -2
- 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/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/native-package-slice-build.ts +28 -4
- package/src/one-native-controls-package.ts +61 -35
- package/src/react-native-core-build.ts +12 -12
- package/src/react-native-core.ts +3 -7
- package/src/swift-compiler-digest.ts +37 -10
package/dist-lib/esm-chunks/{swift-sdk-app-module-U3MUJ7QD.mjs → swift-sdk-app-module-E47CAEFE.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
6
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
7
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BF54TN4C.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ADDEND_RELOCATIONS,
|
|
11
11
|
KEEP_WASM_NAMES,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
wasmReader,
|
|
34
34
|
wasmSections,
|
|
35
35
|
writeWasmCustomSection
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-OZDM3CIC.mjs";
|
|
37
|
+
import "./chunk-PFIQXQK2.mjs";
|
|
38
|
+
import "./chunk-XTQ3XPCU.mjs";
|
|
39
|
+
import "./chunk-D26XDATF.mjs";
|
|
40
|
+
import "./chunk-VLH5JM4H.mjs";
|
|
41
|
+
import "./chunk-2Z47MJY7.mjs";
|
|
42
42
|
import {
|
|
43
43
|
SWIFT_WASM_TRIPLE
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-NFO2NQR3.mjs";
|
|
45
|
+
import "./chunk-AE2VDAUH.mjs";
|
|
46
|
+
import "./chunk-ZSEZ76MX.mjs";
|
|
47
|
+
import "./chunk-U5CS65KA.mjs";
|
|
48
|
+
import "./chunk-WCQX636N.mjs";
|
|
49
|
+
import "./chunk-MMKRGY33.mjs";
|
|
50
|
+
import "./chunk-OKKGDF2H.mjs";
|
|
51
|
+
import "./chunk-4PPBABST.mjs";
|
|
52
52
|
|
|
53
53
|
// src/swift-sdk-app-module.ts
|
|
54
54
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
swiftSdkImageFile,
|
|
15
15
|
swiftSdkImageKey,
|
|
16
16
|
swiftSdkImageProducts
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-BF54TN4C.mjs";
|
|
18
|
+
import "./chunk-OZDM3CIC.mjs";
|
|
19
|
+
import "./chunk-PFIQXQK2.mjs";
|
|
20
|
+
import "./chunk-XTQ3XPCU.mjs";
|
|
21
|
+
import "./chunk-D26XDATF.mjs";
|
|
22
|
+
import "./chunk-VLH5JM4H.mjs";
|
|
23
|
+
import "./chunk-2Z47MJY7.mjs";
|
|
24
|
+
import "./chunk-NFO2NQR3.mjs";
|
|
25
|
+
import "./chunk-AE2VDAUH.mjs";
|
|
26
|
+
import "./chunk-ZSEZ76MX.mjs";
|
|
27
|
+
import "./chunk-U5CS65KA.mjs";
|
|
28
|
+
import "./chunk-WCQX636N.mjs";
|
|
29
|
+
import "./chunk-MMKRGY33.mjs";
|
|
30
|
+
import "./chunk-OKKGDF2H.mjs";
|
|
31
|
+
import "./chunk-4PPBABST.mjs";
|
|
32
32
|
export {
|
|
33
33
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
34
34
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PFIQXQK2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NFO2NQR3.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OKKGDF2H.mjs";
|
|
12
|
+
import "./chunk-4PPBABST.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (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;
|
|
@@ -17922,7 +17922,10 @@ var init_react_native_core_digest = __esm({
|
|
|
17922
17922
|
});
|
|
17923
17923
|
|
|
17924
17924
|
// src/swift-compiler-digest.ts
|
|
17925
|
-
|
|
17925
|
+
function swiftArchiveCompilerDigestValue() {
|
|
17926
|
+
return true ? "53326609252f356d24373d653503ae1ad7e08db0a4b20c5236e7e7d1c769ee7f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
17927
|
+
}
|
|
17928
|
+
var import_node_crypto15, import_node_fs31, import_node_path30, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
17926
17929
|
var init_swift_compiler_digest = __esm({
|
|
17927
17930
|
"src/swift-compiler-digest.ts"() {
|
|
17928
17931
|
"use strict";
|
|
@@ -17930,6 +17933,72 @@ var init_swift_compiler_digest = __esm({
|
|
|
17930
17933
|
import_node_fs31 = require("node:fs");
|
|
17931
17934
|
import_node_path30 = __toESM(require("node:path"), 1);
|
|
17932
17935
|
init_swift_objc_sdk_tree();
|
|
17936
|
+
SWIFT_DIGEST_SOURCES = [
|
|
17937
|
+
"swift-compile.ts",
|
|
17938
|
+
"swift-sdk-surface.ts",
|
|
17939
|
+
"swift-wasm-archive.ts",
|
|
17940
|
+
"swift-lexical.ts",
|
|
17941
|
+
"swift-header-compiler.ts",
|
|
17942
|
+
"swift-header-dependencies.ts",
|
|
17943
|
+
"swift-reproducible.ts",
|
|
17944
|
+
"write-build-file.ts",
|
|
17945
|
+
"xcode-header-search.ts",
|
|
17946
|
+
"case-insensitive-header-overlay.ts",
|
|
17947
|
+
"swift-package.ts",
|
|
17948
|
+
"swift-package-prebuilt.ts",
|
|
17949
|
+
"swift-package-prebuilt-targets.ts",
|
|
17950
|
+
"swift-objc-prebuilt.ts",
|
|
17951
|
+
"swift-objc-prebuilt-catalog.ts",
|
|
17952
|
+
"swift-toolchain.ts",
|
|
17953
|
+
"swift-shared-sdk.ts",
|
|
17954
|
+
"swift-distribution-mirror.ts",
|
|
17955
|
+
"swift-design-time.ts",
|
|
17956
|
+
"binaryen.lock.json",
|
|
17957
|
+
"swift-root-lock.ts",
|
|
17958
|
+
"process-table.ts",
|
|
17959
|
+
"swift-link-roots.ts",
|
|
17960
|
+
"swift-wasm-prune.ts",
|
|
17961
|
+
"wasm-optimize.ts",
|
|
17962
|
+
"wasm-features.ts",
|
|
17963
|
+
"wasm-narrow-boundary.ts",
|
|
17964
|
+
"../../peach-kit/src/nativeWasmContract.ts",
|
|
17965
|
+
"swift-guest-image-ledger.ts",
|
|
17966
|
+
"swift-guest-archive.ts",
|
|
17967
|
+
"swift-guest-link-plan.ts",
|
|
17968
|
+
"swift-guest-link.ts",
|
|
17969
|
+
"swift-guest-compile.ts",
|
|
17970
|
+
"swift-guest-dyld-functions.ts",
|
|
17971
|
+
"swift-guest-linked-spans.ts",
|
|
17972
|
+
"swift-guest-source-plan.ts",
|
|
17973
|
+
"swift-guest-runtime-plan.ts",
|
|
17974
|
+
"swift-guest-source-inputs.ts",
|
|
17975
|
+
"swift-guest-manifest.ts",
|
|
17976
|
+
"swift-guest-projection.ts",
|
|
17977
|
+
"swift-guest-projection-storage.ts",
|
|
17978
|
+
"swiftGuestImageContract.ts",
|
|
17979
|
+
"swift-runtime-products.ts",
|
|
17980
|
+
"swift-sdk-app-module.ts",
|
|
17981
|
+
"swift-sdk-image-map.ts",
|
|
17982
|
+
"swift-sdk-image-wasm.ts",
|
|
17983
|
+
"swift-sdk-image.ts",
|
|
17984
|
+
"../../peach-kit/src/nativeSdkBindingContract.ts",
|
|
17985
|
+
"swiftRuntimeProductContract.ts",
|
|
17986
|
+
"swiftTargetContract.ts",
|
|
17987
|
+
"swift-objc-import.ts",
|
|
17988
|
+
"swiftContract.ts",
|
|
17989
|
+
"swift-objc-platform.ts",
|
|
17990
|
+
"swift-objc-standin.ts",
|
|
17991
|
+
"swift-objc-sdk.ts"
|
|
17992
|
+
];
|
|
17993
|
+
LINKED_IMAGE_SOURCES = /* @__PURE__ */ new Set([
|
|
17994
|
+
"binaryen.lock.json",
|
|
17995
|
+
"swift-sdk-app-module.ts",
|
|
17996
|
+
"swift-sdk-image.ts",
|
|
17997
|
+
"wasm-optimize.ts"
|
|
17998
|
+
]);
|
|
17999
|
+
SWIFT_ARCHIVE_DIGEST_SOURCES = SWIFT_DIGEST_SOURCES.filter(
|
|
18000
|
+
(file) => !LINKED_IMAGE_SOURCES.has(file)
|
|
18001
|
+
);
|
|
17933
18002
|
}
|
|
17934
18003
|
});
|
|
17935
18004
|
|
|
@@ -18005,7 +18074,7 @@ var init_swift_standin_digest = __esm({
|
|
|
18005
18074
|
|
|
18006
18075
|
// src/expo-native-compiler-digest.ts
|
|
18007
18076
|
function expoNativeCompilerDigestValue() {
|
|
18008
|
-
return true ? "
|
|
18077
|
+
return true ? "e9c127a6fe6b767d364983920ce71499b88057f966ac63fcb102ddd3ae4209fd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
18009
18078
|
}
|
|
18010
18079
|
var import_node_crypto17;
|
|
18011
18080
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -98285,7 +98354,18 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
98285
98354
|
const entry = reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode);
|
|
98286
98355
|
const directory2 = nativeEntryCache("react-native", entry.name, entry.key);
|
|
98287
98356
|
const work = import_node_path125.default.join(cacheDir(), "react-native-core-build", entry.key);
|
|
98288
|
-
|
|
98357
|
+
const {
|
|
98358
|
+
compiler: _compiler,
|
|
98359
|
+
distribution: _distribution,
|
|
98360
|
+
recipe: _recipe,
|
|
98361
|
+
...nativeInputs
|
|
98362
|
+
} = entry.inputs;
|
|
98363
|
+
const buildRoot = import_node_path125.default.join(
|
|
98364
|
+
cacheDir(),
|
|
98365
|
+
"react-native-core-products",
|
|
98366
|
+
nativeEntryKey(nativeInputs)
|
|
98367
|
+
);
|
|
98368
|
+
return withSwiftRootLock(`${buildRoot}.core-lock`, async () => {
|
|
98289
98369
|
if (import_node_fs123.default.existsSync(import_node_path125.default.join(directory2, "descriptor.json"))) return directory2;
|
|
98290
98370
|
const module2 = { root: moduleRoot, ...swiftModuleToolchain(moduleRoot) };
|
|
98291
98371
|
const floor = reactNativeCoreFloor(reactNativeRoot);
|
|
@@ -98322,17 +98402,6 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
98322
98402
|
}
|
|
98323
98403
|
const input = collectTurboCompileInput(producer, null, floor);
|
|
98324
98404
|
input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
|
|
98325
|
-
const {
|
|
98326
|
-
compiler: _compiler,
|
|
98327
|
-
distribution: _distribution,
|
|
98328
|
-
recipe: _recipe,
|
|
98329
|
-
...nativeInputs
|
|
98330
|
-
} = entry.inputs;
|
|
98331
|
-
const buildRoot = import_node_path125.default.join(
|
|
98332
|
-
cacheDir(),
|
|
98333
|
-
"react-native-core-products",
|
|
98334
|
-
nativeEntryKey(nativeInputs)
|
|
98335
|
-
);
|
|
98336
98405
|
await compileSwiftProjectUnit(input, {
|
|
98337
98406
|
...module2,
|
|
98338
98407
|
moduleRoot: module2.root,
|
|
@@ -98503,7 +98572,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
98503
98572
|
"react-native": manifest.version,
|
|
98504
98573
|
headers: headers.digest("hex"),
|
|
98505
98574
|
sources: sources.digest("hex"),
|
|
98506
|
-
compiler:
|
|
98575
|
+
compiler: swiftArchiveCompilerDigestValue(),
|
|
98507
98576
|
recipe,
|
|
98508
98577
|
mode,
|
|
98509
98578
|
"ios-deployment-target": reactNativeCoreFloor(reactNativeRoot),
|
|
@@ -98557,10 +98626,11 @@ var init_react_native_core = __esm({
|
|
|
98557
98626
|
init_native_static_libraries();
|
|
98558
98627
|
init_react_native_core_digest();
|
|
98559
98628
|
init_swift_compile();
|
|
98629
|
+
init_swift_compiler_digest();
|
|
98560
98630
|
init_swift_distribution();
|
|
98561
98631
|
init_swift_package();
|
|
98562
98632
|
init_swiftContract();
|
|
98563
|
-
recipe = true ? "
|
|
98633
|
+
recipe = true ? "737e4942681b979bd94d697440cd3fc71975f9bb732444bd4e08d57dd493e833" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
98564
98634
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
98565
98635
|
building = /* @__PURE__ */ new Map();
|
|
98566
98636
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (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,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-AE2VDAUH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-PZAWOGX5.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-U5CS65KA.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-UTJKHY4H.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-OKKGDF2H.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-4PPBABST.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2627 | (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.2627 | (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;
|
|
@@ -5923,7 +5923,10 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
5923
5923
|
});
|
|
5924
5924
|
|
|
5925
5925
|
// src/swift-compiler-digest.ts
|
|
5926
|
-
|
|
5926
|
+
function swiftArchiveCompilerDigestValue() {
|
|
5927
|
+
return true ? "53326609252f356d24373d653503ae1ad7e08db0a4b20c5236e7e7d1c769ee7f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
5928
|
+
}
|
|
5929
|
+
var import_node_crypto9, import_node_fs23, import_node_path23, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
5927
5930
|
var init_swift_compiler_digest = __esm({
|
|
5928
5931
|
"src/swift-compiler-digest.ts"() {
|
|
5929
5932
|
"use strict";
|
|
@@ -5931,6 +5934,72 @@ var init_swift_compiler_digest = __esm({
|
|
|
5931
5934
|
import_node_fs23 = require("node:fs");
|
|
5932
5935
|
import_node_path23 = __toESM(require("node:path"), 1);
|
|
5933
5936
|
init_swift_objc_sdk_tree();
|
|
5937
|
+
SWIFT_DIGEST_SOURCES = [
|
|
5938
|
+
"swift-compile.ts",
|
|
5939
|
+
"swift-sdk-surface.ts",
|
|
5940
|
+
"swift-wasm-archive.ts",
|
|
5941
|
+
"swift-lexical.ts",
|
|
5942
|
+
"swift-header-compiler.ts",
|
|
5943
|
+
"swift-header-dependencies.ts",
|
|
5944
|
+
"swift-reproducible.ts",
|
|
5945
|
+
"write-build-file.ts",
|
|
5946
|
+
"xcode-header-search.ts",
|
|
5947
|
+
"case-insensitive-header-overlay.ts",
|
|
5948
|
+
"swift-package.ts",
|
|
5949
|
+
"swift-package-prebuilt.ts",
|
|
5950
|
+
"swift-package-prebuilt-targets.ts",
|
|
5951
|
+
"swift-objc-prebuilt.ts",
|
|
5952
|
+
"swift-objc-prebuilt-catalog.ts",
|
|
5953
|
+
"swift-toolchain.ts",
|
|
5954
|
+
"swift-shared-sdk.ts",
|
|
5955
|
+
"swift-distribution-mirror.ts",
|
|
5956
|
+
"swift-design-time.ts",
|
|
5957
|
+
"binaryen.lock.json",
|
|
5958
|
+
"swift-root-lock.ts",
|
|
5959
|
+
"process-table.ts",
|
|
5960
|
+
"swift-link-roots.ts",
|
|
5961
|
+
"swift-wasm-prune.ts",
|
|
5962
|
+
"wasm-optimize.ts",
|
|
5963
|
+
"wasm-features.ts",
|
|
5964
|
+
"wasm-narrow-boundary.ts",
|
|
5965
|
+
"../../peach-kit/src/nativeWasmContract.ts",
|
|
5966
|
+
"swift-guest-image-ledger.ts",
|
|
5967
|
+
"swift-guest-archive.ts",
|
|
5968
|
+
"swift-guest-link-plan.ts",
|
|
5969
|
+
"swift-guest-link.ts",
|
|
5970
|
+
"swift-guest-compile.ts",
|
|
5971
|
+
"swift-guest-dyld-functions.ts",
|
|
5972
|
+
"swift-guest-linked-spans.ts",
|
|
5973
|
+
"swift-guest-source-plan.ts",
|
|
5974
|
+
"swift-guest-runtime-plan.ts",
|
|
5975
|
+
"swift-guest-source-inputs.ts",
|
|
5976
|
+
"swift-guest-manifest.ts",
|
|
5977
|
+
"swift-guest-projection.ts",
|
|
5978
|
+
"swift-guest-projection-storage.ts",
|
|
5979
|
+
"swiftGuestImageContract.ts",
|
|
5980
|
+
"swift-runtime-products.ts",
|
|
5981
|
+
"swift-sdk-app-module.ts",
|
|
5982
|
+
"swift-sdk-image-map.ts",
|
|
5983
|
+
"swift-sdk-image-wasm.ts",
|
|
5984
|
+
"swift-sdk-image.ts",
|
|
5985
|
+
"../../peach-kit/src/nativeSdkBindingContract.ts",
|
|
5986
|
+
"swiftRuntimeProductContract.ts",
|
|
5987
|
+
"swiftTargetContract.ts",
|
|
5988
|
+
"swift-objc-import.ts",
|
|
5989
|
+
"swiftContract.ts",
|
|
5990
|
+
"swift-objc-platform.ts",
|
|
5991
|
+
"swift-objc-standin.ts",
|
|
5992
|
+
"swift-objc-sdk.ts"
|
|
5993
|
+
];
|
|
5994
|
+
LINKED_IMAGE_SOURCES = /* @__PURE__ */ new Set([
|
|
5995
|
+
"binaryen.lock.json",
|
|
5996
|
+
"swift-sdk-app-module.ts",
|
|
5997
|
+
"swift-sdk-image.ts",
|
|
5998
|
+
"wasm-optimize.ts"
|
|
5999
|
+
]);
|
|
6000
|
+
SWIFT_ARCHIVE_DIGEST_SOURCES = SWIFT_DIGEST_SOURCES.filter(
|
|
6001
|
+
(file) => !LINKED_IMAGE_SOURCES.has(file)
|
|
6002
|
+
);
|
|
5934
6003
|
}
|
|
5935
6004
|
});
|
|
5936
6005
|
|
|
@@ -6006,7 +6075,7 @@ var init_swift_standin_digest = __esm({
|
|
|
6006
6075
|
|
|
6007
6076
|
// src/expo-native-compiler-digest.ts
|
|
6008
6077
|
function expoNativeCompilerDigestValue() {
|
|
6009
|
-
return true ? "
|
|
6078
|
+
return true ? "e9c127a6fe6b767d364983920ce71499b88057f966ac63fcb102ddd3ae4209fd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
6010
6079
|
}
|
|
6011
6080
|
var import_node_crypto11;
|
|
6012
6081
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -109325,7 +109394,18 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
|
|
|
109325
109394
|
const entry = reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode);
|
|
109326
109395
|
const directory2 = nativeEntryCache("react-native", entry.name, entry.key);
|
|
109327
109396
|
const work = import_node_path142.default.join(cacheDir(), "react-native-core-build", entry.key);
|
|
109328
|
-
|
|
109397
|
+
const {
|
|
109398
|
+
compiler: _compiler,
|
|
109399
|
+
distribution: _distribution,
|
|
109400
|
+
recipe: _recipe,
|
|
109401
|
+
...nativeInputs
|
|
109402
|
+
} = entry.inputs;
|
|
109403
|
+
const buildRoot = import_node_path142.default.join(
|
|
109404
|
+
cacheDir(),
|
|
109405
|
+
"react-native-core-products",
|
|
109406
|
+
nativeEntryKey(nativeInputs)
|
|
109407
|
+
);
|
|
109408
|
+
return withSwiftRootLock(`${buildRoot}.core-lock`, async () => {
|
|
109329
109409
|
if (import_node_fs140.default.existsSync(import_node_path142.default.join(directory2, "descriptor.json"))) return directory2;
|
|
109330
109410
|
const module2 = { root: moduleRoot, ...swiftModuleToolchain(moduleRoot) };
|
|
109331
109411
|
const floor = reactNativeCoreFloor(reactNativeRoot);
|
|
@@ -109362,17 +109442,6 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
|
|
|
109362
109442
|
}
|
|
109363
109443
|
const input = collectTurboCompileInput(producer, null, floor);
|
|
109364
109444
|
input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
|
|
109365
|
-
const {
|
|
109366
|
-
compiler: _compiler,
|
|
109367
|
-
distribution: _distribution,
|
|
109368
|
-
recipe: _recipe,
|
|
109369
|
-
...nativeInputs
|
|
109370
|
-
} = entry.inputs;
|
|
109371
|
-
const buildRoot = import_node_path142.default.join(
|
|
109372
|
-
cacheDir(),
|
|
109373
|
-
"react-native-core-products",
|
|
109374
|
-
nativeEntryKey(nativeInputs)
|
|
109375
|
-
);
|
|
109376
109445
|
await compileSwiftProjectUnit(input, {
|
|
109377
109446
|
...module2,
|
|
109378
109447
|
moduleRoot: module2.root,
|
|
@@ -109543,7 +109612,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
109543
109612
|
"react-native": manifest.version,
|
|
109544
109613
|
headers: headers.digest("hex"),
|
|
109545
109614
|
sources: sources.digest("hex"),
|
|
109546
|
-
compiler:
|
|
109615
|
+
compiler: swiftArchiveCompilerDigestValue(),
|
|
109547
109616
|
recipe,
|
|
109548
109617
|
mode,
|
|
109549
109618
|
"ios-deployment-target": reactNativeCoreFloor(reactNativeRoot),
|
|
@@ -109647,10 +109716,11 @@ var init_react_native_core = __esm({
|
|
|
109647
109716
|
init_native_static_libraries();
|
|
109648
109717
|
init_react_native_core_digest();
|
|
109649
109718
|
init_swift_compile();
|
|
109719
|
+
init_swift_compiler_digest();
|
|
109650
109720
|
init_swift_distribution();
|
|
109651
109721
|
init_swift_package();
|
|
109652
109722
|
init_swiftContract();
|
|
109653
|
-
recipe = true ? "
|
|
109723
|
+
recipe = true ? "737e4942681b979bd94d697440cd3fc71975f9bb732444bd4e08d57dd493e833" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
109654
109724
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
109655
109725
|
building = /* @__PURE__ */ new Map();
|
|
109656
109726
|
}
|
|
@@ -117811,44 +117881,56 @@ private struct NavigationDestinationModifiers: View {
|
|
|
117811
117881
|
}
|
|
117812
117882
|
}
|
|
117813
117883
|
|
|
117884
|
+
// a destination's modifier renders inside the content view of the stack that pushes it, so
|
|
117885
|
+
// .navigationDestination runs in that stack's render pass.
|
|
117886
|
+
private final class NavigationDestinationHost {
|
|
117887
|
+
let model = NavigationDestinationSlots()
|
|
117888
|
+
var controller: UIHostingController<NavigationDestinationModifiers>?
|
|
117889
|
+
|
|
117890
|
+
func update(_ specs: [Spec], in content: UIView, onSDKEvent: @escaping (String, String, String) -> Void) {
|
|
117891
|
+
model.onSDKEvent = onSDKEvent
|
|
117892
|
+
let next = specs.map { spec in
|
|
117893
|
+
NavigationDestinationSlot(
|
|
117894
|
+
id: spec["id"] as! String,
|
|
117895
|
+
contentHost: spec["contentHost"] as! String,
|
|
117896
|
+
slotValues: spec["slotValues"] as! String,
|
|
117897
|
+
title: spec["title"] as? String ?? "",
|
|
117898
|
+
titleMode: spec["titleMode"] as? String ?? "automatic",
|
|
117899
|
+
barHidden: spec["barHidden"] as? Bool ?? false
|
|
117900
|
+
)
|
|
117901
|
+
}
|
|
117902
|
+
guard model.slots != next else { return }
|
|
117903
|
+
model.hosts = Dictionary(uniqueKeysWithValues: next.map { item in
|
|
117904
|
+
let host = model.hosts[item.id] ?? UIView(frame: .zero)
|
|
117905
|
+
host._peachReactContentHost = item.contentHost
|
|
117906
|
+
return (item.id, host)
|
|
117907
|
+
})
|
|
117908
|
+
model.slots = next
|
|
117909
|
+
if controller == nil {
|
|
117910
|
+
let controller = UIHostingController(rootView: NavigationDestinationModifiers(model: model))
|
|
117911
|
+
controller.view.frame = .zero
|
|
117912
|
+
controller.view.isUserInteractionEnabled = false
|
|
117913
|
+
controller.view.backgroundColor = .clear
|
|
117914
|
+
content.addSubview(controller.view)
|
|
117915
|
+
self.controller = controller
|
|
117916
|
+
}
|
|
117917
|
+
controller?.view.setNeedsDisplay()
|
|
117918
|
+
}
|
|
117919
|
+
|
|
117920
|
+
func dismantle() {
|
|
117921
|
+
controller?.view.removeFromSuperview()
|
|
117922
|
+
controller = nil
|
|
117923
|
+
}
|
|
117924
|
+
}
|
|
117925
|
+
|
|
117814
117926
|
private struct NavigationStackBridge: UIViewRepresentable {
|
|
117815
117927
|
let spec: Spec
|
|
117816
117928
|
let emit: (String, String) -> Void
|
|
117817
117929
|
|
|
117818
117930
|
final class Coordinator: ControlComposition {
|
|
117819
117931
|
let slot = UIView(frame: .zero)
|
|
117820
|
-
let destinations =
|
|
117821
|
-
var destinationController: UIHostingController<NavigationDestinationModifiers>?
|
|
117932
|
+
let destinations = NavigationDestinationHost()
|
|
117822
117933
|
var toolbars: [OneNativeToolbarView] = []
|
|
117823
|
-
|
|
117824
|
-
func updateDestinations(_ specs: [Spec]) {
|
|
117825
|
-
let next = specs.map { spec in
|
|
117826
|
-
NavigationDestinationSlot(
|
|
117827
|
-
id: spec["id"] as! String,
|
|
117828
|
-
contentHost: spec["contentHost"] as! String,
|
|
117829
|
-
slotValues: spec["slotValues"] as! String,
|
|
117830
|
-
title: spec["title"] as? String ?? "",
|
|
117831
|
-
titleMode: spec["titleMode"] as? String ?? "automatic",
|
|
117832
|
-
barHidden: spec["barHidden"] as? Bool ?? false
|
|
117833
|
-
)
|
|
117834
|
-
}
|
|
117835
|
-
guard destinations.slots != next else { return }
|
|
117836
|
-
destinations.hosts = Dictionary(uniqueKeysWithValues: next.map { item in
|
|
117837
|
-
let host = destinations.hosts[item.id] ?? UIView(frame: .zero)
|
|
117838
|
-
host._peachReactContentHost = item.contentHost
|
|
117839
|
-
return (item.id, host)
|
|
117840
|
-
})
|
|
117841
|
-
destinations.slots = next
|
|
117842
|
-
if destinationController == nil {
|
|
117843
|
-
let controller = UIHostingController(rootView: NavigationDestinationModifiers(model: destinations))
|
|
117844
|
-
controller.view.frame = .zero
|
|
117845
|
-
controller.view.isUserInteractionEnabled = false
|
|
117846
|
-
controller.view.backgroundColor = .clear
|
|
117847
|
-
slot.addSubview(controller.view)
|
|
117848
|
-
destinationController = controller
|
|
117849
|
-
}
|
|
117850
|
-
destinationController?.view.setNeedsDisplay()
|
|
117851
|
-
}
|
|
117852
117934
|
}
|
|
117853
117935
|
|
|
117854
117936
|
func makeCoordinator() -> Coordinator { Coordinator() }
|
|
@@ -117869,10 +117951,9 @@ private struct NavigationStackBridge: UIViewRepresentable {
|
|
|
117869
117951
|
let id = root["id"] as! String
|
|
117870
117952
|
let rootSpec = root["spec"] as! Spec
|
|
117871
117953
|
state.slot._peachReactContentHost = spec["contentHost"] as? String
|
|
117872
|
-
state.destinations.
|
|
117954
|
+
state.destinations.update(spec["destinationSlots"] as? [Spec] ?? [], in: state.slot) { [weak state] id, name, value in
|
|
117873
117955
|
state?.send(id, "onNativeSDKEvent", ["name": name, "value": value])
|
|
117874
117956
|
}
|
|
117875
|
-
state.updateDestinations(spec["destinationSlots"] as? [Spec] ?? [])
|
|
117876
117957
|
stack.onSDKEvent = { [weak state] name, value in
|
|
117877
117958
|
state?.send(id, "onNativeSDKEvent", ["name": name, "value": value])
|
|
117878
117959
|
}
|
|
@@ -117893,8 +117974,7 @@ private struct NavigationStackBridge: UIViewRepresentable {
|
|
|
117893
117974
|
|
|
117894
117975
|
static func dismantleUIView(_ view: OneNativeNavigationStackView, coordinator: Coordinator) {
|
|
117895
117976
|
view.unmountContent(coordinator.slot)
|
|
117896
|
-
coordinator.
|
|
117897
|
-
coordinator.destinationController = nil
|
|
117977
|
+
coordinator.destinations.dismantle()
|
|
117898
117978
|
for toolbar in coordinator.toolbars { view.unmountToolbar(toolbar) }
|
|
117899
117979
|
coordinator.prune(keeping: [])
|
|
117900
117980
|
coordinator.toolbars.removeAll()
|
|
@@ -118035,6 +118115,7 @@ private struct TabViewBridge: UIViewRepresentable {
|
|
|
118035
118115
|
|
|
118036
118116
|
final class Coordinator: ControlComposition {
|
|
118037
118117
|
var pageHosts: [String: OneContentHost] = [:]
|
|
118118
|
+
var pageDestinations: [String: NavigationDestinationHost] = [:]
|
|
118038
118119
|
var toolbars: [OneNativeToolbarView] = []
|
|
118039
118120
|
var tabSelectionSequence = 0
|
|
118040
118121
|
|
|
@@ -118082,6 +118163,7 @@ private struct TabViewBridge: UIViewRepresentable {
|
|
|
118082
118163
|
bottomAccessoryEnabled: spec["bottomAccessoryEnabled"] as? Bool ?? true
|
|
118083
118164
|
)
|
|
118084
118165
|
var pages: [OneNativeTabItem] = []
|
|
118166
|
+
let destinationSlots = Dictionary(grouping: self.spec["destinationSlots"] as? [Spec] ?? []) { $0["page"] as! String }
|
|
118085
118167
|
var toolbars: [Spec] = []
|
|
118086
118168
|
for node in nodes {
|
|
118087
118169
|
let page = node["spec"] as! Spec
|
|
@@ -118108,6 +118190,14 @@ private struct TabViewBridge: UIViewRepresentable {
|
|
|
118108
118190
|
item.emit = { [weak state] name, value in
|
|
118109
118191
|
state?.send(owner, "onNativeSDKEvent", ["name": name, "value": value])
|
|
118110
118192
|
}
|
|
118193
|
+
let slots = destinationSlots[owner] ?? []
|
|
118194
|
+
if !slots.isEmpty || state.pageDestinations[owner] != nil {
|
|
118195
|
+
let destinations = state.pageDestinations[owner] ?? NavigationDestinationHost()
|
|
118196
|
+
state.pageDestinations[owner] = destinations
|
|
118197
|
+
destinations.update(slots, in: item.view) { [weak state] id, name, value in
|
|
118198
|
+
state?.send(id, "onNativeSDKEvent", ["name": name, "value": value])
|
|
118199
|
+
}
|
|
118200
|
+
}
|
|
118111
118201
|
pages.append(item)
|
|
118112
118202
|
}
|
|
118113
118203
|
tabs.setPages(pages)
|
|
@@ -118130,6 +118220,10 @@ private struct TabViewBridge: UIViewRepresentable {
|
|
|
118130
118220
|
state.toolbars = next
|
|
118131
118221
|
state.prune(keeping: visited)
|
|
118132
118222
|
state.pageHosts = state.pageHosts.filter { visited.contains($0.key) }
|
|
118223
|
+
for (page, destinations) in state.pageDestinations where !visited.contains(page) {
|
|
118224
|
+
destinations.dismantle()
|
|
118225
|
+
state.pageDestinations[page] = nil
|
|
118226
|
+
}
|
|
118133
118227
|
}
|
|
118134
118228
|
|
|
118135
118229
|
static func dismantleUIView(_ view: OneNativeTabViewView, coordinator: Coordinator) {
|
|
@@ -118137,6 +118231,8 @@ private struct TabViewBridge: UIViewRepresentable {
|
|
|
118137
118231
|
view.reset()
|
|
118138
118232
|
coordinator.prune(keeping: [])
|
|
118139
118233
|
coordinator.pageHosts.removeAll()
|
|
118234
|
+
for destinations in coordinator.pageDestinations.values { destinations.dismantle() }
|
|
118235
|
+
coordinator.pageDestinations.removeAll()
|
|
118140
118236
|
coordinator.toolbars.removeAll()
|
|
118141
118237
|
}
|
|
118142
118238
|
}
|