peachsim 0.1.2587 → 0.1.2589
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 +63 -47
- 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-YIT53CUW.mjs → acorn-6FUOY6FX.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-W7KT52XE.mjs → chunk-33SCXU3Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PDSHFDO2.mjs → chunk-3VNUC4DT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MKUJNT6M.mjs → chunk-464CBA5U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7UTPX7DP.mjs → chunk-47K4QPVA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q7MIJAYP.mjs → chunk-57FFWABF.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-TOK4D3JW.mjs → chunk-5EFD2VBY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WQB3O2KB.mjs → chunk-5QWQDXXD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YQETPIM2.mjs → chunk-BSAAJR25.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TI62KNSX.mjs → chunk-CRIYVOMB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WIS3FIS4.mjs → chunk-EAIFG4MQ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-VZ2SRV3L.mjs → chunk-FMWEI6OI.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-EINVPQJH.mjs → chunk-FQQ2DMXS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QRBN2H6X.mjs → chunk-I22LAVD5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LBJDNPVZ.mjs → chunk-JLOJZF2Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-33X4F77A.mjs → chunk-KFHCRS5K.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-MHQ3V3HA.mjs → chunk-L3OSVIGA.mjs} +65 -55
- package/dist-lib/esm-chunks/{chunk-KIM7TUG6.mjs → chunk-M4KUWGU3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SES3L2SB.mjs → chunk-MKSOJCRT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MCQPJCCL.mjs → chunk-PUBH3EXI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BZY37WHL.mjs → chunk-WQ73RKJY.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-DS7BSRKS.mjs → chunk-XTKKROVU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HH6E35Z7.mjs → chunk-Y4PV4HZB.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-IGRR2DCH.mjs → metro-layout-parser-T5QIJTEV.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-B2NMSGIS.mjs → swift-package-prebuilt-AWTZHPDM.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-FYORV7GD.mjs → swift-sdk-app-module-MGTJTVKU.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-BQ4UZV7O.mjs → swift-sdk-image-JABGF3ZR.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-ESIHEVXH.mjs → swift-sdk-image-producer-RJRJ3EFU.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +62 -46
- 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 +233 -130
- package/dist-lib/host/fetch-proxy-handler.cjs +12 -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 +10 -2
- package/dist-lib/native-app-identity-project.mjs +16 -16
- 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 +82 -81
- package/dist-lib/public-origins-lib.json +76 -69
- 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 +241 -132
- package/dist-lib/swift-compile.cjs +60 -44
- package/dist-lib/swift-compile.mjs +10 -10
- 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/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.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/ios/apps/canvas-map-data.d.ts +1 -1
- package/package.json +1 -1
- package/src/one-native-controls-package.ts +125 -81
- package/src/swift-compile.ts +2 -44
- package/src/swift-shared-sdk.ts +8 -4
- package/src/swift-source-closure.ts +59 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (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;
|
|
@@ -5712,13 +5712,13 @@ var init_swift_standin_digest = __esm({
|
|
|
5712
5712
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
5713
5713
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
5714
5714
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
5715
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
5715
|
+
STANDIN_SOURCE_DIGEST = true ? "b4ec01293af51e43890fb5aa52c9dc6d240c73b8fe722cdaff952457b08d94ff" : standinSourceDigest();
|
|
5716
5716
|
}
|
|
5717
5717
|
});
|
|
5718
5718
|
|
|
5719
5719
|
// src/expo-native-compiler-digest.ts
|
|
5720
5720
|
function expoNativeCompilerDigestValue() {
|
|
5721
|
-
return true ? "
|
|
5721
|
+
return true ? "bc9bf63858735336bd46e9b34db5ced39d682f7200bbbc3eafbf5470dae0018f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
5722
5722
|
}
|
|
5723
5723
|
var import_node_crypto11;
|
|
5724
5724
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -34647,6 +34647,7 @@ function stageOverlaySlot(realRoot, stagingRoot, relPath) {
|
|
|
34647
34647
|
const segment2 = segments[i];
|
|
34648
34648
|
for (const entry of (0, import_node_fs51.readdirSync)(real)) {
|
|
34649
34649
|
if (entry === segment2 || i === 0 && entry === SWIFT_CACHE_HOLD_MARKER) continue;
|
|
34650
|
+
if (mirror === stagingRoot && entry === "configuration") continue;
|
|
34650
34651
|
const dest = import_node_path51.default.join(mirror, entry);
|
|
34651
34652
|
if (!import_node_fs51.default.lstatSync(dest, { throwIfNoEntry: false })) {
|
|
34652
34653
|
import_node_fs51.default.symlinkSync(import_node_path51.default.join(real, entry), dest);
|
|
@@ -34681,7 +34682,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
|
|
|
34681
34682
|
const stdint = import_node_path51.default.join(overlay, "include/stdint.h");
|
|
34682
34683
|
const key2 = JSON.stringify([
|
|
34683
34684
|
// bump the recipe when the transformation changes; bundling changes function text.
|
|
34684
|
-
"
|
|
34685
|
+
"v39",
|
|
34685
34686
|
[...WEAKEN_FOUNDATION_SYMS],
|
|
34686
34687
|
toolchainBin,
|
|
34687
34688
|
sdk2,
|
|
@@ -51647,6 +51648,60 @@ var init_swift_reproducible = __esm({
|
|
|
51647
51648
|
}
|
|
51648
51649
|
});
|
|
51649
51650
|
|
|
51651
|
+
// src/swift-source-closure.ts
|
|
51652
|
+
function collectSwiftSourceClosure(files2, roots, swiftCodeMask2, extensionMembersOnly) {
|
|
51653
|
+
const sources = /* @__PURE__ */ new Map();
|
|
51654
|
+
const owners = /* @__PURE__ */ new Map();
|
|
51655
|
+
for (const [file, source] of Object.entries(files2)) {
|
|
51656
|
+
if (!file.endsWith(".swift")) continue;
|
|
51657
|
+
const code = swiftCodeMask2(source);
|
|
51658
|
+
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
51659
|
+
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)|\b(?:init|subscript)(?=\s*[?(])/g;
|
|
51660
|
+
let depth = 0;
|
|
51661
|
+
let memberExtension;
|
|
51662
|
+
for (const match of code.matchAll(pattern)) {
|
|
51663
|
+
if (match[0] === "{") {
|
|
51664
|
+
depth++;
|
|
51665
|
+
continue;
|
|
51666
|
+
}
|
|
51667
|
+
if (match[0] === "}") {
|
|
51668
|
+
if (--depth === 0) memberExtension = void 0;
|
|
51669
|
+
continue;
|
|
51670
|
+
}
|
|
51671
|
+
if (depth !== 0 && !(depth === 1 && memberExtension)) continue;
|
|
51672
|
+
const name3 = match[2]?.split(".").pop() ?? memberExtension;
|
|
51673
|
+
if (!name3) continue;
|
|
51674
|
+
if (match[1] === "extension" && extensionMembersOnly?.has(name3) && /^\s*\{/.test(code.slice(match.index + match[0].length))) {
|
|
51675
|
+
memberExtension = name3;
|
|
51676
|
+
continue;
|
|
51677
|
+
}
|
|
51678
|
+
const set2 = owners.get(name3) ?? /* @__PURE__ */ new Set();
|
|
51679
|
+
set2.add(file);
|
|
51680
|
+
owners.set(name3, set2);
|
|
51681
|
+
}
|
|
51682
|
+
sources.set(file, references);
|
|
51683
|
+
}
|
|
51684
|
+
const included = /* @__PURE__ */ new Set();
|
|
51685
|
+
const pending = [...roots];
|
|
51686
|
+
const seen = /* @__PURE__ */ new Set();
|
|
51687
|
+
while (pending.length) {
|
|
51688
|
+
const name3 = pending.pop();
|
|
51689
|
+
if (seen.has(name3)) continue;
|
|
51690
|
+
seen.add(name3);
|
|
51691
|
+
for (const file of owners.get(name3) ?? []) {
|
|
51692
|
+
if (included.has(file)) continue;
|
|
51693
|
+
included.add(file);
|
|
51694
|
+
for (const reference of sources.get(file)) pending.push(reference);
|
|
51695
|
+
}
|
|
51696
|
+
}
|
|
51697
|
+
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
51698
|
+
}
|
|
51699
|
+
var init_swift_source_closure = __esm({
|
|
51700
|
+
"src/swift-source-closure.ts"() {
|
|
51701
|
+
"use strict";
|
|
51702
|
+
}
|
|
51703
|
+
});
|
|
51704
|
+
|
|
51650
51705
|
// src/swift-uniform-type-constants.ts
|
|
51651
51706
|
function compileUniformTypeConstants(args) {
|
|
51652
51707
|
const source = import_node_path77.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
@@ -53986,47 +54041,7 @@ function swiftSourceAsIOS(source, overlayFrameworks, swiftPackage, arm64 = true)
|
|
|
53986
54041
|
return lowerAVAssetURLCluster(out + conditioned.slice(copied));
|
|
53987
54042
|
}
|
|
53988
54043
|
function swiftSourceClosure(files2, roots) {
|
|
53989
|
-
|
|
53990
|
-
const owners = /* @__PURE__ */ new Map();
|
|
53991
|
-
const extensions = /* @__PURE__ */ new Map();
|
|
53992
|
-
for (const [file, source] of Object.entries(files2)) {
|
|
53993
|
-
if (!file.endsWith(".swift")) continue;
|
|
53994
|
-
const code = swiftCodeMask(source);
|
|
53995
|
-
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
53996
|
-
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)/g;
|
|
53997
|
-
let depth = 0;
|
|
53998
|
-
for (const match of code.matchAll(pattern)) {
|
|
53999
|
-
if (match[0] === "{") {
|
|
54000
|
-
depth++;
|
|
54001
|
-
continue;
|
|
54002
|
-
}
|
|
54003
|
-
if (match[0] === "}") {
|
|
54004
|
-
depth--;
|
|
54005
|
-
continue;
|
|
54006
|
-
}
|
|
54007
|
-
if (depth !== 0 || !match[2]) continue;
|
|
54008
|
-
const name3 = match[2].split(".").pop();
|
|
54009
|
-
const index = match[1] === "extension" ? extensions : owners;
|
|
54010
|
-
const set2 = index.get(name3) ?? /* @__PURE__ */ new Set();
|
|
54011
|
-
set2.add(file);
|
|
54012
|
-
index.set(name3, set2);
|
|
54013
|
-
}
|
|
54014
|
-
sources.set(file, references);
|
|
54015
|
-
}
|
|
54016
|
-
const included = /* @__PURE__ */ new Set();
|
|
54017
|
-
const pending = [...roots];
|
|
54018
|
-
const seen = /* @__PURE__ */ new Set();
|
|
54019
|
-
while (pending.length) {
|
|
54020
|
-
const name3 = pending.pop();
|
|
54021
|
-
if (seen.has(name3)) continue;
|
|
54022
|
-
seen.add(name3);
|
|
54023
|
-
for (const file of [...owners.get(name3) ?? [], ...extensions.get(name3) ?? []]) {
|
|
54024
|
-
if (included.has(file)) continue;
|
|
54025
|
-
included.add(file);
|
|
54026
|
-
for (const reference of sources.get(file)) pending.push(reference);
|
|
54027
|
-
}
|
|
54028
|
-
}
|
|
54029
|
-
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
54044
|
+
return collectSwiftSourceClosure(files2, roots, swiftCodeMask);
|
|
54030
54045
|
}
|
|
54031
54046
|
function swiftApplicationEntry(file, source) {
|
|
54032
54047
|
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
@@ -57922,6 +57937,7 @@ var init_swift_compile = __esm({
|
|
|
57922
57937
|
init_swift_root_lock();
|
|
57923
57938
|
init_swift_sdk_image_wasm();
|
|
57924
57939
|
init_swift_shared_sdk();
|
|
57940
|
+
init_swift_source_closure();
|
|
57925
57941
|
init_swift_toolchain();
|
|
57926
57942
|
init_swift_uniform_type_constants();
|
|
57927
57943
|
init_swift_wasm_prune();
|
|
@@ -58129,7 +58145,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
58129
58145
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
58130
58146
|
MULTI_MANIFEST_VERSION = 76;
|
|
58131
58147
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
58132
|
-
compilerSourceDigest = true ? "
|
|
58148
|
+
compilerSourceDigest = true ? "80c152de0e5f41327f3fe7c71ce7df4cd206c0ba2bb0373f71654a0661829c6e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
58133
58149
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
58134
58150
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
58135
58151
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -113599,6 +113615,23 @@ function configuration(name3, source) {
|
|
|
113599
113615
|
if (!update) throw new Error(`${name3}: no updateProps`);
|
|
113600
113616
|
return { viewClass, guard, update };
|
|
113601
113617
|
}
|
|
113618
|
+
function arrayBindings(name3, body) {
|
|
113619
|
+
const bindings = /* @__PURE__ */ new Map();
|
|
113620
|
+
for (const [, prop, element] of body.matchAll(
|
|
113621
|
+
/for \(const auto &item : next\.(\w+)\) \[\w+ addObject:(.*?)\];/g
|
|
113622
|
+
)) {
|
|
113623
|
+
if (element === "RCTNSStringFromString(item)") {
|
|
113624
|
+
bindings.set(prop, []);
|
|
113625
|
+
continue;
|
|
113626
|
+
}
|
|
113627
|
+
const fields = [
|
|
113628
|
+
...element.matchAll(/@"(\w+)" ?: (RCTNSStringFromString|@)\(item\.\w+\)/g)
|
|
113629
|
+
].map(([, name4, kind]) => ({ name: name4, defaultValue: kind === "@" ? 0 : "" }));
|
|
113630
|
+
if (!fields.length) throw new Error(`${name3}: unmapped array ${prop}`);
|
|
113631
|
+
bindings.set(prop, fields);
|
|
113632
|
+
}
|
|
113633
|
+
return bindings;
|
|
113634
|
+
}
|
|
113602
113635
|
function componentViews(one, selected) {
|
|
113603
113636
|
const schema4 = JSON.parse((0, import_node_fs150.readFileSync)((0, import_node_path151.join)(one, "schema.json"), "utf8"));
|
|
113604
113637
|
const folders = [(0, import_node_path151.join)(one, "ios/Generated"), (0, import_node_path151.join)(one, "ios")];
|
|
@@ -113615,17 +113648,24 @@ function componentViews(one, selected) {
|
|
|
113615
113648
|
return [{ name: name3, props, commands, source, file: (0, import_node_path151.join)(folder, file) }];
|
|
113616
113649
|
});
|
|
113617
113650
|
}
|
|
113618
|
-
function swiftGuestControls(one, names) {
|
|
113651
|
+
function swiftGuestControls(one, names, linkedGroups) {
|
|
113619
113652
|
const watched = [(0, import_node_path151.join)(one, "schema.json")];
|
|
113653
|
+
const defines = /* @__PURE__ */ new Set();
|
|
113620
113654
|
const views = componentViews(one, names);
|
|
113621
|
-
const
|
|
113622
|
-
|
|
113655
|
+
const groupDefines = linkedGroups && new Set(linkedGroups.map((group) => `ONE_GROUP_${group.toUpperCase()}`));
|
|
113656
|
+
const entries2 = views.flatMap(({ name: name3, props, source, file }) => {
|
|
113657
|
+
const { viewClass, guard, update } = configuration(name3, source);
|
|
113658
|
+
if (guard) {
|
|
113659
|
+
if (groupDefines && !groupDefines.has(guard)) return [];
|
|
113660
|
+
defines.add(guard);
|
|
113661
|
+
}
|
|
113662
|
+
const arrays = arrayBindings(name3, update);
|
|
113623
113663
|
const swift = (0, import_node_path151.join)((0, import_node_path151.dirname)(file), viewClass + ".swift");
|
|
113624
113664
|
const declaration = (0, import_node_fs150.readFileSync)(swift, "utf8");
|
|
113625
113665
|
watched.push(file, swift);
|
|
113626
113666
|
const initializer = /public (?:override )?init\(\)/.test(declaration) ? "()" : "(frame: .zero)";
|
|
113627
113667
|
const lines = [
|
|
113628
|
-
` "${name3}": { existing, spec, style, emit in`,
|
|
113668
|
+
` "${name3}": { existing, spec, previous, style, emit in`,
|
|
113629
113669
|
` let view = existing as? ${viewClass} ?? ${viewClass}${initializer}`
|
|
113630
113670
|
];
|
|
113631
113671
|
for (const statement of statements(update)) {
|
|
@@ -113640,8 +113680,18 @@ function swiftGuestControls(one, names) {
|
|
|
113640
113680
|
}
|
|
113641
113681
|
const withLabel = /^(\w+)With([A-Z])(\w*)$/.exec(first);
|
|
113642
113682
|
const args = selector.map(({ label, expression }, index) => {
|
|
113683
|
+
const fields = arrays.get(expression);
|
|
113643
113684
|
let value;
|
|
113644
113685
|
if (expression === "OneNativeStyleDictionary(next.swiftStyle)") value = "style";
|
|
113686
|
+
else if (expression === "boundedHeight")
|
|
113687
|
+
value = 'spec["boundedHeight"] as? Bool ?? false';
|
|
113688
|
+
else if (/^@"[^"]*"$/.test(expression)) value = expression.slice(1);
|
|
113689
|
+
else if (fields?.length) {
|
|
113690
|
+
const entries3 = fields.map(
|
|
113691
|
+
({ name: name4, defaultValue: defaultValue2 }) => `"${name4}": row["${name4}"].flatMap { $0 is NSNull ? nil : $0 } ?? ${JSON.stringify(defaultValue2)}`
|
|
113692
|
+
).join(", ");
|
|
113693
|
+
value = `(spec["${expression}"] as? [Spec] ?? []).map { row in [${entries3}] }`;
|
|
113694
|
+
} else if (fields) value = `spec["${expression}"] as? [String] ?? []`;
|
|
113645
113695
|
else {
|
|
113646
113696
|
const prop = /\bnext\.(\w+)/.exec(expression)?.[1];
|
|
113647
113697
|
const types2 = {
|
|
@@ -113650,14 +113700,19 @@ function swiftGuestControls(one, names) {
|
|
|
113650
113700
|
Double: "Double ?? 0",
|
|
113651
113701
|
Int32: "Int ?? 0"
|
|
113652
113702
|
};
|
|
113653
|
-
|
|
113654
|
-
|
|
113655
|
-
value = `spec["${prop}"] as? ${types2[
|
|
113703
|
+
const type = prop && props[prop]?.type;
|
|
113704
|
+
if (type === "ColorValue") value = `spec["${prop}"].flatMap(oneControlColor)`;
|
|
113705
|
+
else if (type && types2[type]) value = `spec["${prop}"] as? ${types2[type]}`;
|
|
113706
|
+
else throw new Error(`${name3}: unmapped guest argument ${expression}`);
|
|
113656
113707
|
}
|
|
113657
113708
|
const argLabel = index ? label : withLabel ? withLabel[2].toLowerCase() + withLabel[3] : "";
|
|
113658
113709
|
return argLabel ? argLabel + ": " + value : value;
|
|
113659
113710
|
});
|
|
113660
|
-
|
|
113711
|
+
const call = `view.${withLabel?.[1] ?? first}(${args.join(", ")})`;
|
|
113712
|
+
const array8 = selector[0].expression;
|
|
113713
|
+
lines.push(
|
|
113714
|
+
arrays.has(array8) ? ` if previous == nil || (spec["${array8}"] as? NSArray) != (previous?["${array8}"] as? NSArray) { ${call} }` : ` ${call}`
|
|
113715
|
+
);
|
|
113661
113716
|
}
|
|
113662
113717
|
for (const { property, parameters, fields, event, sync } of eventBindings(
|
|
113663
113718
|
name3,
|
|
@@ -113680,11 +113735,12 @@ function swiftGuestControls(one, names) {
|
|
|
113680
113735
|
return {
|
|
113681
113736
|
source: [
|
|
113682
113737
|
"import UIKit",
|
|
113683
|
-
"let guestControls: [String: (UIView?, Spec, Spec, @escaping (String, Spec) -> Void) -> UIView] = [",
|
|
113738
|
+
"let guestControls: [String: (UIView?, Spec, Spec?, Spec, @escaping (String, Spec) -> Void) -> UIView] = [",
|
|
113684
113739
|
...entries2,
|
|
113685
113740
|
"]",
|
|
113686
113741
|
""
|
|
113687
113742
|
].join("\n"),
|
|
113743
|
+
defines: [...defines].sort(),
|
|
113688
113744
|
watched
|
|
113689
113745
|
};
|
|
113690
113746
|
}
|
|
@@ -113746,35 +113802,61 @@ function resolveOneNativeAppleIosDir(appRoot) {
|
|
|
113746
113802
|
}
|
|
113747
113803
|
return workspace;
|
|
113748
113804
|
}
|
|
113749
|
-
|
|
113805
|
+
function excludedGroupSource(source, defines) {
|
|
113806
|
+
const code = swiftCodeMask(source).trim();
|
|
113807
|
+
const group = /^#if (ONE_GROUP_\w+)[ \t]*\r?\n/.exec(code)?.[1];
|
|
113808
|
+
if (!group || defines.has(group)) return false;
|
|
113809
|
+
let depth = 0;
|
|
113810
|
+
for (const directive of code.matchAll(/^[ \t]*#(if|elseif|else|endif)\b[^\n]*/gm)) {
|
|
113811
|
+
if (directive[1] === "if") depth++;
|
|
113812
|
+
else if (directive[1] === "endif" && --depth === 0)
|
|
113813
|
+
return directive.index + directive[0].length === code.length;
|
|
113814
|
+
else if ((directive[1] === "else" || directive[1] === "elseif") && depth === 1)
|
|
113815
|
+
return false;
|
|
113816
|
+
}
|
|
113817
|
+
return false;
|
|
113818
|
+
}
|
|
113819
|
+
async function oneNativeControlsPackage(appRoot, linkedGroups) {
|
|
113750
113820
|
const iosDir = resolveOneNativeAppleIosDir(appRoot);
|
|
113751
|
-
const
|
|
113752
|
-
|
|
113753
|
-
|
|
113754
|
-
|
|
113755
|
-
|
|
113756
|
-
|
|
113757
|
-
|
|
113758
|
-
|
|
113759
|
-
|
|
113760
|
-
|
|
113761
|
-
|
|
113762
|
-
|
|
113763
|
-
|
|
113764
|
-
|
|
113765
|
-
|
|
113766
|
-
|
|
113767
|
-
|
|
113768
|
-
|
|
113769
|
-
|
|
113770
|
-
|
|
113771
|
-
|
|
113772
|
-
]
|
|
113773
|
-
files2
|
|
113774
|
-
|
|
113775
|
-
|
|
113776
|
-
|
|
113777
|
-
|
|
113821
|
+
const generated = swiftGuestControls(
|
|
113822
|
+
import_node_path152.default.dirname(iosDir),
|
|
113823
|
+
["OneNativeButton", "OneNativeLabel", "OneNativeText", "OneNativeImage"],
|
|
113824
|
+
linkedGroups
|
|
113825
|
+
);
|
|
113826
|
+
const sources = {};
|
|
113827
|
+
const paths = /* @__PURE__ */ new Map();
|
|
113828
|
+
const defines = /* @__PURE__ */ new Set([...ONE_SDK_DEFINES, ...generated.defines]);
|
|
113829
|
+
for (const folder of ["", "Generated", "SDK"]) {
|
|
113830
|
+
for (const name3 of import_node_fs151.default.readdirSync(import_node_path152.default.join(iosDir, folder)).sort()) {
|
|
113831
|
+
if (!name3.endsWith(".swift") || name3 === "OneSwiftPackage.swift") continue;
|
|
113832
|
+
if (paths.has(name3))
|
|
113833
|
+
throw new Error(`duplicate Swift filename ${name3} in OneNativeControls`);
|
|
113834
|
+
const full = import_node_path152.default.join(iosDir, folder, name3);
|
|
113835
|
+
const source = import_node_fs151.default.readFileSync(full, "utf8");
|
|
113836
|
+
if (excludedGroupSource(source, defines)) continue;
|
|
113837
|
+
paths.set(name3, full);
|
|
113838
|
+
sources[name3] = source;
|
|
113839
|
+
}
|
|
113840
|
+
}
|
|
113841
|
+
sources["OneNativeGuestControls.swift"] = generated.source;
|
|
113842
|
+
sources["OneNativeControlsBridge.swift"] = BRIDGE_SWIFT;
|
|
113843
|
+
const files2 = new Map(
|
|
113844
|
+
Object.entries(
|
|
113845
|
+
collectSwiftSourceClosure(
|
|
113846
|
+
sources,
|
|
113847
|
+
["OneNativeControlsGuest"],
|
|
113848
|
+
swiftCodeMask,
|
|
113849
|
+
/* @__PURE__ */ new Set(["View"])
|
|
113850
|
+
)
|
|
113851
|
+
)
|
|
113852
|
+
);
|
|
113853
|
+
const watched = new Set(generated.watched);
|
|
113854
|
+
const digest3 = (0, import_node_crypto89.createHash)("sha256").update([...defines].join("\0")).update("\0");
|
|
113855
|
+
for (const [name3, source] of files2) {
|
|
113856
|
+
const full = paths.get(name3);
|
|
113857
|
+
if (full) watched.add(full);
|
|
113858
|
+
digest3.update(name3).update("\0").update(source).update("\0");
|
|
113859
|
+
}
|
|
113778
113860
|
const key2 = digest3.digest("hex").slice(0, 16);
|
|
113779
113861
|
files2.set(
|
|
113780
113862
|
"Package.swift",
|
|
@@ -113783,7 +113865,7 @@ async function oneNativeControlsPackage(appRoot) {
|
|
|
113783
113865
|
`// OneNativeControls ${key2}`,
|
|
113784
113866
|
"import PackageDescription",
|
|
113785
113867
|
`let package = Package(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", platforms: [.iOS(.v17)], targets: [`,
|
|
113786
|
-
` .executableTarget(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", path: ".", swiftSettings: [.swiftLanguageMode(.v5), ${
|
|
113868
|
+
` .executableTarget(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", path: ".", swiftSettings: [.swiftLanguageMode(.v5), ${[...defines].map((flag) => `.define("${flag}")`).join(", ")}]),`,
|
|
113787
113869
|
"])",
|
|
113788
113870
|
""
|
|
113789
113871
|
].join("\n")
|
|
@@ -113799,9 +113881,9 @@ async function oneNativeControlsPackage(appRoot) {
|
|
|
113799
113881
|
packagePath,
|
|
113800
113882
|
new Map([...files2].map(([file, text7]) => [import_node_path152.default.join(packagePath, file), text7]))
|
|
113801
113883
|
);
|
|
113802
|
-
return { packagePath, watched };
|
|
113884
|
+
return { packagePath, watched: [...watched] };
|
|
113803
113885
|
}
|
|
113804
|
-
var import_node_crypto89, import_node_fs151, import_node_module21, import_node_path152, import_node_url8,
|
|
113886
|
+
var import_node_crypto89, import_node_fs151, import_node_module21, import_node_path152, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT;
|
|
113805
113887
|
var init_one_native_controls_package = __esm({
|
|
113806
113888
|
"src/one-native-controls-package.ts"() {
|
|
113807
113889
|
"use strict";
|
|
@@ -113814,37 +113896,9 @@ var init_one_native_controls_package = __esm({
|
|
|
113814
113896
|
init_oneNativeControlsContract2();
|
|
113815
113897
|
init_swift_compile();
|
|
113816
113898
|
init_swift_host();
|
|
113899
|
+
init_swift_source_closure();
|
|
113817
113900
|
init_swift_submit();
|
|
113818
113901
|
init_swift_toolchain();
|
|
113819
|
-
ONE_CONTROL_SOURCES = [
|
|
113820
|
-
"Generated/OneNativeNavigationSplitViewView.swift",
|
|
113821
|
-
"Generated/OneNativeNavigationStackView.swift",
|
|
113822
|
-
"Generated/OneNativeViewSlots.swift",
|
|
113823
|
-
"Generated/OneNativeToolbarView.swift",
|
|
113824
|
-
"Generated/OneNativeListView.swift",
|
|
113825
|
-
"Generated/OneNativeSectionView.swift",
|
|
113826
|
-
"Generated/OneNativeFileImporterView.swift",
|
|
113827
|
-
"Generated/OneNativeButtonView.swift",
|
|
113828
|
-
"Generated/OneNativeLabelView.swift",
|
|
113829
|
-
"Generated/OneNativeTextView.swift",
|
|
113830
|
-
"Generated/OneNativeImageView.swift",
|
|
113831
|
-
"Generated/OneNativeSwiftUI.swift",
|
|
113832
|
-
"Generated/OneNativeAnimationValues.swift",
|
|
113833
|
-
"Generated/OneNativeEnvironment.swift",
|
|
113834
|
-
"OneNativeContainerSlotView.swift",
|
|
113835
|
-
"OneNativeSyncState.swift",
|
|
113836
|
-
"OneNativeAnimators.swift",
|
|
113837
|
-
"OneNativeDragBinding.swift",
|
|
113838
|
-
"OneNativeAccessibility.swift",
|
|
113839
|
-
"OneNativeAsyncAction.swift",
|
|
113840
|
-
"OneNativeControlled.swift",
|
|
113841
|
-
"OneZoomSources.swift",
|
|
113842
|
-
"OneNativeComposition.swift",
|
|
113843
|
-
"OneNativeHostingController.swift",
|
|
113844
|
-
"OneNativeSlot.swift",
|
|
113845
|
-
"OneNativeStyle.swift",
|
|
113846
|
-
"OneNativeRemoteImage.swift"
|
|
113847
|
-
];
|
|
113848
113902
|
ONE_SDK_DEFINES = ["ONE_IOS_27_SDK", "ONE_IOS_27_1_SDK"];
|
|
113849
113903
|
BRIDGE_SWIFT = `import SwiftUI
|
|
113850
113904
|
@_spi(Peach) import UIKit
|
|
@@ -113892,7 +113946,7 @@ private func platformColor(named name: String) -> UIColor? {
|
|
|
113892
113946
|
}
|
|
113893
113947
|
}
|
|
113894
113948
|
|
|
113895
|
-
|
|
113949
|
+
func oneControlColor(_ raw: Any) -> UIColor? {
|
|
113896
113950
|
if let color = raw as? UIColor { return color }
|
|
113897
113951
|
if let number = raw as? NSNumber {
|
|
113898
113952
|
let argb = UInt32(truncatingIfNeeded: number.int64Value)
|
|
@@ -113932,8 +113986,8 @@ private func parseColor(_ raw: Any) -> UIColor? {
|
|
|
113932
113986
|
}
|
|
113933
113987
|
}
|
|
113934
113988
|
if let dynamic = dict["dynamic"] as? Spec,
|
|
113935
|
-
let light = dynamic["light"].flatMap(
|
|
113936
|
-
let dark = dynamic["dark"].flatMap(
|
|
113989
|
+
let light = dynamic["light"].flatMap(oneControlColor),
|
|
113990
|
+
let dark = dynamic["dark"].flatMap(oneControlColor) {
|
|
113937
113991
|
return UIColor { traits in
|
|
113938
113992
|
traits.userInterfaceStyle == .dark ? dark : light
|
|
113939
113993
|
}
|
|
@@ -113950,7 +114004,7 @@ private func normalizeStyle(_ raw: Spec?) -> Spec {
|
|
|
113950
114004
|
}
|
|
113951
114005
|
}
|
|
113952
114006
|
for key in ["foregroundStyle", "tint", "background", "borderColor", "glassEffectTint"] {
|
|
113953
|
-
if let value = style[key], let color =
|
|
114007
|
+
if let value = style[key], let color = oneControlColor(value) {
|
|
113954
114008
|
style[key] = color
|
|
113955
114009
|
}
|
|
113956
114010
|
}
|
|
@@ -113966,7 +114020,12 @@ private func normalizeStyle(_ raw: Spec?) -> Spec {
|
|
|
113966
114020
|
}
|
|
113967
114021
|
|
|
113968
114022
|
private class ControlComposition {
|
|
114023
|
+
private static let reconciledContainers: Set<String> = [
|
|
114024
|
+
"OneNativeLazyVStack", "OneNativeLazyHStack", "OneNativeLazyVGrid", "OneNativeLazyHGrid",
|
|
114025
|
+
"OneNativeList", "OneNativeSection", "OneNativeForm",
|
|
114026
|
+
]
|
|
113969
114027
|
var views: [String: UIView] = [:]
|
|
114028
|
+
var specs: [String: Spec] = [:]
|
|
113970
114029
|
var children: [String: [UIView]] = [:]
|
|
113971
114030
|
var slots: [String: UIView] = [:]
|
|
113972
114031
|
var emit: ((String, String) -> Void)?
|
|
@@ -113984,7 +114043,10 @@ private class ControlComposition {
|
|
|
113984
114043
|
) {
|
|
113985
114044
|
let prefix = zip(previous, next).prefix(while: { $0 === $1 }).count
|
|
113986
114045
|
for child in previous.dropFirst(prefix).reversed() { remove(child) }
|
|
113987
|
-
for (index, child) in next.enumerated().dropFirst(prefix) {
|
|
114046
|
+
for (index, child) in next.enumerated().dropFirst(prefix) {
|
|
114047
|
+
child.removeFromSuperview()
|
|
114048
|
+
insert(child, index)
|
|
114049
|
+
}
|
|
113988
114050
|
}
|
|
113989
114051
|
|
|
113990
114052
|
func render(_ node: Spec, visited: inout Set<String>) -> UIView {
|
|
@@ -114028,22 +114090,30 @@ private class ControlComposition {
|
|
|
114028
114090
|
slot.configure(height: spec["height"] as? Double ?? 0, width: spec["width"] as? Double ?? 0)
|
|
114029
114091
|
slot.configureSwiftStyle(style)
|
|
114030
114092
|
slot.onSwiftStyleEvent = visit
|
|
114093
|
+
slot.onLayout = { [weak self] frame in
|
|
114094
|
+
self?.send(id, "onNativeLayout", ["x": frame.minX, "y": frame.minY, "width": frame.width, "height": frame.height])
|
|
114095
|
+
}
|
|
114031
114096
|
view = slot
|
|
114032
114097
|
default:
|
|
114033
|
-
guard let mount = guestControls[control] else { preconditionFailure("unsupported One
|
|
114034
|
-
view = mount(views[id], spec, style) { [weak self] event, fields in self?.send(id, event, fields) }
|
|
114098
|
+
guard let mount = guestControls[control] else { preconditionFailure("unsupported One control \\(control)") }
|
|
114099
|
+
view = mount(views[id], spec, specs[id], style) { [weak self] event, fields in self?.send(id, event, fields) }
|
|
114100
|
+
specs[id] = spec
|
|
114035
114101
|
}
|
|
114036
114102
|
views[id] = view
|
|
114037
114103
|
if let container = view as? OneNativeContainerView {
|
|
114038
114104
|
container.configureSwiftStyle(style)
|
|
114039
114105
|
container.onSwiftStyleEvent = visit
|
|
114040
114106
|
let nested = (node["children"] as? [Spec] ?? []).map { render($0, visited: &visited) }
|
|
114041
|
-
|
|
114042
|
-
nested
|
|
114043
|
-
|
|
114044
|
-
|
|
114045
|
-
|
|
114046
|
-
|
|
114107
|
+
if Self.reconciledContainers.contains(control) {
|
|
114108
|
+
container.reconcileComposedChildren(nested)
|
|
114109
|
+
} else {
|
|
114110
|
+
reconcile(
|
|
114111
|
+
nested,
|
|
114112
|
+
previous: children[id] ?? [],
|
|
114113
|
+
remove: container.removeChild,
|
|
114114
|
+
insert: container.insertChild
|
|
114115
|
+
)
|
|
114116
|
+
}
|
|
114047
114117
|
children[id] = nested
|
|
114048
114118
|
}
|
|
114049
114119
|
return view
|
|
@@ -114053,12 +114123,42 @@ private class ControlComposition {
|
|
|
114053
114123
|
for (id, view) in views where !visited.contains(id) {
|
|
114054
114124
|
if let container = view as? OneNativeContainerView { container.reset() }
|
|
114055
114125
|
views.removeValue(forKey: id)
|
|
114126
|
+
specs.removeValue(forKey: id)
|
|
114056
114127
|
children.removeValue(forKey: id)
|
|
114057
114128
|
slots.removeValue(forKey: id)
|
|
114058
114129
|
}
|
|
114059
114130
|
}
|
|
114060
114131
|
}
|
|
114061
114132
|
|
|
114133
|
+
private struct ControlBridge: UIViewRepresentable {
|
|
114134
|
+
let root: Spec
|
|
114135
|
+
let emit: (String, String) -> Void
|
|
114136
|
+
|
|
114137
|
+
func makeCoordinator() -> ControlComposition { ControlComposition() }
|
|
114138
|
+
|
|
114139
|
+
func makeUIView(context: Context) -> UIView { UIView(frame: .zero) }
|
|
114140
|
+
|
|
114141
|
+
func updateUIView(_ host: UIView, context: Context) {
|
|
114142
|
+
let state = context.coordinator
|
|
114143
|
+
state.emit = emit
|
|
114144
|
+
var visited = Set<String>()
|
|
114145
|
+
let control = state.render(root, visited: &visited)
|
|
114146
|
+
if control.superview !== host {
|
|
114147
|
+
host.subviews.forEach { $0.removeFromSuperview() }
|
|
114148
|
+
control.frame = host.bounds
|
|
114149
|
+
control.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
114150
|
+
host.addSubview(control)
|
|
114151
|
+
}
|
|
114152
|
+
state.prune(keeping: visited)
|
|
114153
|
+
}
|
|
114154
|
+
|
|
114155
|
+
static func dismantleUIView(_ host: UIView, coordinator: ControlComposition) {
|
|
114156
|
+
host.subviews.forEach { $0.removeFromSuperview() }
|
|
114157
|
+
coordinator.prune(keeping: [])
|
|
114158
|
+
coordinator.emit = nil
|
|
114159
|
+
}
|
|
114160
|
+
}
|
|
114161
|
+
|
|
114062
114162
|
private struct NavigationDestinationSlot: Identifiable, Equatable {
|
|
114063
114163
|
let id: String
|
|
114064
114164
|
let contentHost: String
|
|
@@ -114330,7 +114430,10 @@ private struct NavigationSplitViewBridge: UIViewRepresentable {
|
|
|
114330
114430
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
114331
114431
|
.ignoresSafeArea(.container))
|
|
114332
114432
|
default:
|
|
114333
|
-
|
|
114433
|
+
let root = spec["root"] as! Spec
|
|
114434
|
+
precondition((root["spec"] as? Spec)?["control"] as? String == view)
|
|
114435
|
+
return AnyView(ControlBridge(root: root, emit: emit)
|
|
114436
|
+
.frame(maxWidth: .infinity, maxHeight: .infinity))
|
|
114334
114437
|
}
|
|
114335
114438
|
}
|
|
114336
114439
|
}
|
|
@@ -118747,7 +118850,7 @@ var init_nitro_superset = __esm({
|
|
|
118747
118850
|
init_nitroContract();
|
|
118748
118851
|
init_swift_standin_digest();
|
|
118749
118852
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
118750
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
118853
|
+
NITRO_COMPILER_DIGEST = true ? "59081cf672cb2bb9c125425cd97f2df60507acfc6de96f1525f18ddca39ff000" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
118751
118854
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
118752
118855
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
118753
118856
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (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;
|
|
@@ -989,13 +989,13 @@ var init_swift_standin_digest = __esm({
|
|
|
989
989
|
import_node_crypto5 = require("node:crypto");
|
|
990
990
|
import_node_fs11 = require("node:fs");
|
|
991
991
|
import_node_path12 = __toESM(require("node:path"), 1);
|
|
992
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
992
|
+
STANDIN_SOURCE_DIGEST = true ? "b4ec01293af51e43890fb5aa52c9dc6d240c73b8fe722cdaff952457b08d94ff" : standinSourceDigest();
|
|
993
993
|
}
|
|
994
994
|
});
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "bc9bf63858735336bd46e9b34db5ced39d682f7200bbbc3eafbf5470dae0018f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -9568,6 +9568,13 @@ var init_swift_root_lock = __esm({
|
|
|
9568
9568
|
}
|
|
9569
9569
|
});
|
|
9570
9570
|
|
|
9571
|
+
// src/swift-source-closure.ts
|
|
9572
|
+
var init_swift_source_closure = __esm({
|
|
9573
|
+
"src/swift-source-closure.ts"() {
|
|
9574
|
+
"use strict";
|
|
9575
|
+
}
|
|
9576
|
+
});
|
|
9577
|
+
|
|
9571
9578
|
// src/swift-uniform-type-constants.ts
|
|
9572
9579
|
var import_node_child_process33, import_node_path60;
|
|
9573
9580
|
var init_swift_uniform_type_constants = __esm({
|
|
@@ -9633,6 +9640,7 @@ var init_swift_compile = __esm({
|
|
|
9633
9640
|
init_swift_root_lock();
|
|
9634
9641
|
init_swift_sdk_image_wasm();
|
|
9635
9642
|
init_swift_shared_sdk();
|
|
9643
|
+
init_swift_source_closure();
|
|
9636
9644
|
init_swift_toolchain();
|
|
9637
9645
|
init_swift_uniform_type_constants();
|
|
9638
9646
|
init_swift_wasm_prune();
|
|
@@ -9708,7 +9716,7 @@ var init_swift_compile = __esm({
|
|
|
9708
9716
|
};
|
|
9709
9717
|
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
9710
9718
|
NON_IOS_MODULES = /* @__PURE__ */ new Set(["FoundationNetworking", "WASILibc"]);
|
|
9711
|
-
compilerSourceDigest = true ? "
|
|
9719
|
+
compilerSourceDigest = true ? "80c152de0e5f41327f3fe7c71ce7df4cd206c0ba2bb0373f71654a0661829c6e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
9712
9720
|
NOT_ON_IOS = new RegExp(
|
|
9713
9721
|
`\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
|
|
9714
9722
|
"g"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (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.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-33SCXU3Y.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.2589 | (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.2589 | (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;
|