peachsim 0.1.2587 → 0.1.2588
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 +61 -46
- 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-DG2TVZRD.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KIM7TUG6.mjs → chunk-4GOTTBDL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EINVPQJH.mjs → chunk-4PNMHEJB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-33X4F77A.mjs → chunk-AGQHPM6E.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-MHQ3V3HA.mjs → chunk-ASL4MACC.mjs} +63 -54
- package/dist-lib/esm-chunks/{chunk-LBJDNPVZ.mjs → chunk-BAU3IFLL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PDSHFDO2.mjs → chunk-BGCADZA2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HH6E35Z7.mjs → chunk-BSPFA6V2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W7KT52XE.mjs → chunk-C7MHFZIA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YQETPIM2.mjs → chunk-CJ6UJWGD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TOK4D3JW.mjs → chunk-ELSAXANF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q7MIJAYP.mjs → chunk-GIS6FXRN.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-7UTPX7DP.mjs → chunk-JE7EWYAV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WIS3FIS4.mjs → chunk-LW5F24Y7.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-SES3L2SB.mjs → chunk-NSNT4FFS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MCQPJCCL.mjs → chunk-OLEYCMVV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MKUJNT6M.mjs → chunk-PL3OUSN3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TI62KNSX.mjs → chunk-QRKZ3NSY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DS7BSRKS.mjs → chunk-SDGYG4FM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WQB3O2KB.mjs → chunk-UFXK4UQL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VZ2SRV3L.mjs → chunk-V2PI4V6K.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-QRBN2H6X.mjs → chunk-WZHOX3BM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BZY37WHL.mjs → chunk-YHJXN2S6.mjs} +5 -5
- package/dist-lib/esm-chunks/{metro-layout-parser-IGRR2DCH.mjs → metro-layout-parser-VWCTMFOO.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-B2NMSGIS.mjs → swift-package-prebuilt-W7FEW6PS.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-FYORV7GD.mjs → swift-sdk-app-module-J4KH7G35.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-BQ4UZV7O.mjs → swift-sdk-image-MUWMBAKB.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-ESIHEVXH.mjs → swift-sdk-image-producer-BLO2DZ2C.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +60 -45
- 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 +219 -120
- 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 +219 -120
- package/dist-lib/swift-compile.cjs +58 -43
- 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/package.json +1 -1
- package/src/one-native-controls-package.ts +119 -76
- package/src/swift-compile.ts +2 -44
- package/src/swift-source-closure.ts +59 -0
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
4
4
|
parseDiagnosticsResult
|
|
5
|
-
} from "./esm-chunks/chunk-
|
|
5
|
+
} from "./esm-chunks/chunk-LW5F24Y7.mjs";
|
|
6
6
|
import {
|
|
7
7
|
LAUNCH_METADATA_KEYS,
|
|
8
8
|
LAUNCH_METADATA_QUERY_PARAM
|
|
9
|
-
} from "./esm-chunks/chunk-
|
|
10
|
-
import "./esm-chunks/chunk-
|
|
9
|
+
} from "./esm-chunks/chunk-BSPFA6V2.mjs";
|
|
10
|
+
import "./esm-chunks/chunk-BGCADZA2.mjs";
|
|
11
11
|
import {
|
|
12
12
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
13
13
|
readyProbeContentBasis,
|
|
14
14
|
readyProbeHasContent,
|
|
15
15
|
readyProbeIsReady
|
|
16
|
-
} from "./esm-chunks/chunk-
|
|
16
|
+
} from "./esm-chunks/chunk-OLEYCMVV.mjs";
|
|
17
17
|
import {
|
|
18
18
|
sleep
|
|
19
|
-
} from "./esm-chunks/chunk-
|
|
20
|
-
import "./esm-chunks/chunk-
|
|
19
|
+
} from "./esm-chunks/chunk-CJ6UJWGD.mjs";
|
|
20
|
+
import "./esm-chunks/chunk-NSNT4FFS.mjs";
|
|
21
21
|
import {
|
|
22
22
|
__publicField
|
|
23
|
-
} from "./esm-chunks/chunk-
|
|
23
|
+
} from "./esm-chunks/chunk-C7MHFZIA.mjs";
|
|
24
24
|
|
|
25
25
|
// cli/commands/inspect/core.ts
|
|
26
26
|
var MAX_MS_FLAG_ALIASES = ["--max-ms", "--maxMs", "--maxms", "--max_ms", "--timeout"];
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (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;
|
|
@@ -35538,13 +35538,13 @@ var init_swift_standin_digest = __esm({
|
|
|
35538
35538
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
35539
35539
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
35540
35540
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
35541
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
35541
|
+
STANDIN_SOURCE_DIGEST = true ? "3f599241e9565977a3b4bc4cae7ce5ee8032948cc6c47ca8496c9edb45f25011" : standinSourceDigest();
|
|
35542
35542
|
}
|
|
35543
35543
|
});
|
|
35544
35544
|
|
|
35545
35545
|
// src/expo-native-compiler-digest.ts
|
|
35546
35546
|
function expoNativeCompilerDigestValue() {
|
|
35547
|
-
return true ? "
|
|
35547
|
+
return true ? "ab61e93963022a221353be8f410397787d6eb35d6fdb9441d4daca8c413670ee" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
35548
35548
|
}
|
|
35549
35549
|
var import_node_crypto12;
|
|
35550
35550
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -74252,6 +74252,60 @@ var init_swift_reproducible = __esm({
|
|
|
74252
74252
|
}
|
|
74253
74253
|
});
|
|
74254
74254
|
|
|
74255
|
+
// src/swift-source-closure.ts
|
|
74256
|
+
function collectSwiftSourceClosure(files2, roots, swiftCodeMask2, extensionMembersOnly) {
|
|
74257
|
+
const sources = /* @__PURE__ */ new Map();
|
|
74258
|
+
const owners = /* @__PURE__ */ new Map();
|
|
74259
|
+
for (const [file, source] of Object.entries(files2)) {
|
|
74260
|
+
if (!file.endsWith(".swift")) continue;
|
|
74261
|
+
const code = swiftCodeMask2(source);
|
|
74262
|
+
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
74263
|
+
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;
|
|
74264
|
+
let depth = 0;
|
|
74265
|
+
let memberExtension;
|
|
74266
|
+
for (const match of code.matchAll(pattern)) {
|
|
74267
|
+
if (match[0] === "{") {
|
|
74268
|
+
depth++;
|
|
74269
|
+
continue;
|
|
74270
|
+
}
|
|
74271
|
+
if (match[0] === "}") {
|
|
74272
|
+
if (--depth === 0) memberExtension = void 0;
|
|
74273
|
+
continue;
|
|
74274
|
+
}
|
|
74275
|
+
if (depth !== 0 && !(depth === 1 && memberExtension)) continue;
|
|
74276
|
+
const name3 = match[2]?.split(".").pop() ?? memberExtension;
|
|
74277
|
+
if (!name3) continue;
|
|
74278
|
+
if (match[1] === "extension" && extensionMembersOnly?.has(name3) && /^\s*\{/.test(code.slice(match.index + match[0].length))) {
|
|
74279
|
+
memberExtension = name3;
|
|
74280
|
+
continue;
|
|
74281
|
+
}
|
|
74282
|
+
const set2 = owners.get(name3) ?? /* @__PURE__ */ new Set();
|
|
74283
|
+
set2.add(file);
|
|
74284
|
+
owners.set(name3, set2);
|
|
74285
|
+
}
|
|
74286
|
+
sources.set(file, references);
|
|
74287
|
+
}
|
|
74288
|
+
const included = /* @__PURE__ */ new Set();
|
|
74289
|
+
const pending2 = [...roots];
|
|
74290
|
+
const seen = /* @__PURE__ */ new Set();
|
|
74291
|
+
while (pending2.length) {
|
|
74292
|
+
const name3 = pending2.pop();
|
|
74293
|
+
if (seen.has(name3)) continue;
|
|
74294
|
+
seen.add(name3);
|
|
74295
|
+
for (const file of owners.get(name3) ?? []) {
|
|
74296
|
+
if (included.has(file)) continue;
|
|
74297
|
+
included.add(file);
|
|
74298
|
+
for (const reference of sources.get(file)) pending2.push(reference);
|
|
74299
|
+
}
|
|
74300
|
+
}
|
|
74301
|
+
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
74302
|
+
}
|
|
74303
|
+
var init_swift_source_closure = __esm({
|
|
74304
|
+
"src/swift-source-closure.ts"() {
|
|
74305
|
+
"use strict";
|
|
74306
|
+
}
|
|
74307
|
+
});
|
|
74308
|
+
|
|
74255
74309
|
// src/swift-uniform-type-constants.ts
|
|
74256
74310
|
function compileUniformTypeConstants(args) {
|
|
74257
74311
|
const source = import_node_path77.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
@@ -76591,47 +76645,7 @@ function swiftSourceAsIOS(source, overlayFrameworks, swiftPackage, arm64 = true)
|
|
|
76591
76645
|
return lowerAVAssetURLCluster(out + conditioned.slice(copied));
|
|
76592
76646
|
}
|
|
76593
76647
|
function swiftSourceClosure(files2, roots) {
|
|
76594
|
-
|
|
76595
|
-
const owners = /* @__PURE__ */ new Map();
|
|
76596
|
-
const extensions = /* @__PURE__ */ new Map();
|
|
76597
|
-
for (const [file, source] of Object.entries(files2)) {
|
|
76598
|
-
if (!file.endsWith(".swift")) continue;
|
|
76599
|
-
const code = swiftCodeMask(source);
|
|
76600
|
-
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
76601
|
-
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)/g;
|
|
76602
|
-
let depth = 0;
|
|
76603
|
-
for (const match of code.matchAll(pattern)) {
|
|
76604
|
-
if (match[0] === "{") {
|
|
76605
|
-
depth++;
|
|
76606
|
-
continue;
|
|
76607
|
-
}
|
|
76608
|
-
if (match[0] === "}") {
|
|
76609
|
-
depth--;
|
|
76610
|
-
continue;
|
|
76611
|
-
}
|
|
76612
|
-
if (depth !== 0 || !match[2]) continue;
|
|
76613
|
-
const name3 = match[2].split(".").pop();
|
|
76614
|
-
const index = match[1] === "extension" ? extensions : owners;
|
|
76615
|
-
const set2 = index.get(name3) ?? /* @__PURE__ */ new Set();
|
|
76616
|
-
set2.add(file);
|
|
76617
|
-
index.set(name3, set2);
|
|
76618
|
-
}
|
|
76619
|
-
sources.set(file, references);
|
|
76620
|
-
}
|
|
76621
|
-
const included = /* @__PURE__ */ new Set();
|
|
76622
|
-
const pending2 = [...roots];
|
|
76623
|
-
const seen = /* @__PURE__ */ new Set();
|
|
76624
|
-
while (pending2.length) {
|
|
76625
|
-
const name3 = pending2.pop();
|
|
76626
|
-
if (seen.has(name3)) continue;
|
|
76627
|
-
seen.add(name3);
|
|
76628
|
-
for (const file of [...owners.get(name3) ?? [], ...extensions.get(name3) ?? []]) {
|
|
76629
|
-
if (included.has(file)) continue;
|
|
76630
|
-
included.add(file);
|
|
76631
|
-
for (const reference of sources.get(file)) pending2.push(reference);
|
|
76632
|
-
}
|
|
76633
|
-
}
|
|
76634
|
-
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
76648
|
+
return collectSwiftSourceClosure(files2, roots, swiftCodeMask);
|
|
76635
76649
|
}
|
|
76636
76650
|
function swiftApplicationEntry(file, source) {
|
|
76637
76651
|
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
@@ -80527,6 +80541,7 @@ var init_swift_compile = __esm({
|
|
|
80527
80541
|
init_swift_root_lock();
|
|
80528
80542
|
init_swift_sdk_image_wasm();
|
|
80529
80543
|
init_swift_shared_sdk();
|
|
80544
|
+
init_swift_source_closure();
|
|
80530
80545
|
init_swift_toolchain();
|
|
80531
80546
|
init_swift_uniform_type_constants();
|
|
80532
80547
|
init_swift_wasm_prune();
|
|
@@ -80734,7 +80749,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
80734
80749
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
80735
80750
|
MULTI_MANIFEST_VERSION = 76;
|
|
80736
80751
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
80737
|
-
compilerSourceDigest = true ? "
|
|
80752
|
+
compilerSourceDigest = true ? "6433b1a7f6d99095c2a444c33cfbf4bc62bedbf18b40e3415e37cd83e450f0df" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
80738
80753
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
80739
80754
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
80740
80755
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -137818,6 +137833,23 @@ function configuration(name3, source) {
|
|
|
137818
137833
|
if (!update) throw new Error(`${name3}: no updateProps`);
|
|
137819
137834
|
return { viewClass, guard, update };
|
|
137820
137835
|
}
|
|
137836
|
+
function arrayBindings(name3, body) {
|
|
137837
|
+
const bindings = /* @__PURE__ */ new Map();
|
|
137838
|
+
for (const [, prop, element] of body.matchAll(
|
|
137839
|
+
/for \(const auto &item : next\.(\w+)\) \[\w+ addObject:(.*?)\];/g
|
|
137840
|
+
)) {
|
|
137841
|
+
if (element === "RCTNSStringFromString(item)") {
|
|
137842
|
+
bindings.set(prop, []);
|
|
137843
|
+
continue;
|
|
137844
|
+
}
|
|
137845
|
+
const fields = [
|
|
137846
|
+
...element.matchAll(/@"(\w+)" ?: (RCTNSStringFromString|@)\(item\.\w+\)/g)
|
|
137847
|
+
].map(([, name4, kind]) => ({ name: name4, defaultValue: kind === "@" ? 0 : "" }));
|
|
137848
|
+
if (!fields.length) throw new Error(`${name3}: unmapped array ${prop}`);
|
|
137849
|
+
bindings.set(prop, fields);
|
|
137850
|
+
}
|
|
137851
|
+
return bindings;
|
|
137852
|
+
}
|
|
137821
137853
|
function componentViews(one, selected) {
|
|
137822
137854
|
const schema4 = JSON.parse((0, import_node_fs150.readFileSync)((0, import_node_path151.join)(one, "schema.json"), "utf8"));
|
|
137823
137855
|
const folders = [(0, import_node_path151.join)(one, "ios/Generated"), (0, import_node_path151.join)(one, "ios")];
|
|
@@ -137836,15 +137868,18 @@ function componentViews(one, selected) {
|
|
|
137836
137868
|
}
|
|
137837
137869
|
function swiftGuestControls(one, names) {
|
|
137838
137870
|
const watched = [(0, import_node_path151.join)(one, "schema.json")];
|
|
137871
|
+
const defines = /* @__PURE__ */ new Set();
|
|
137839
137872
|
const views = componentViews(one, names);
|
|
137840
137873
|
const entries2 = views.map(({ name: name3, props, source, file }) => {
|
|
137841
|
-
const { viewClass, update } = configuration(name3, source);
|
|
137874
|
+
const { viewClass, guard, update } = configuration(name3, source);
|
|
137875
|
+
if (guard) defines.add(guard);
|
|
137876
|
+
const arrays = arrayBindings(name3, update);
|
|
137842
137877
|
const swift = (0, import_node_path151.join)((0, import_node_path151.dirname)(file), viewClass + ".swift");
|
|
137843
137878
|
const declaration = (0, import_node_fs150.readFileSync)(swift, "utf8");
|
|
137844
137879
|
watched.push(file, swift);
|
|
137845
137880
|
const initializer = /public (?:override )?init\(\)/.test(declaration) ? "()" : "(frame: .zero)";
|
|
137846
137881
|
const lines = [
|
|
137847
|
-
` "${name3}": { existing, spec, style, emit in`,
|
|
137882
|
+
` "${name3}": { existing, spec, previous, style, emit in`,
|
|
137848
137883
|
` let view = existing as? ${viewClass} ?? ${viewClass}${initializer}`
|
|
137849
137884
|
];
|
|
137850
137885
|
for (const statement of statements(update)) {
|
|
@@ -137859,8 +137894,18 @@ function swiftGuestControls(one, names) {
|
|
|
137859
137894
|
}
|
|
137860
137895
|
const withLabel = /^(\w+)With([A-Z])(\w*)$/.exec(first);
|
|
137861
137896
|
const args = selector.map(({ label, expression }, index) => {
|
|
137897
|
+
const fields = arrays.get(expression);
|
|
137862
137898
|
let value;
|
|
137863
137899
|
if (expression === "OneNativeStyleDictionary(next.swiftStyle)") value = "style";
|
|
137900
|
+
else if (expression === "boundedHeight")
|
|
137901
|
+
value = 'spec["boundedHeight"] as? Bool ?? false';
|
|
137902
|
+
else if (/^@"[^"]*"$/.test(expression)) value = expression.slice(1);
|
|
137903
|
+
else if (fields?.length) {
|
|
137904
|
+
const entries3 = fields.map(
|
|
137905
|
+
({ name: name4, defaultValue: defaultValue2 }) => `"${name4}": row["${name4}"].flatMap { $0 is NSNull ? nil : $0 } ?? ${JSON.stringify(defaultValue2)}`
|
|
137906
|
+
).join(", ");
|
|
137907
|
+
value = `(spec["${expression}"] as? [Spec] ?? []).map { row in [${entries3}] }`;
|
|
137908
|
+
} else if (fields) value = `spec["${expression}"] as? [String] ?? []`;
|
|
137864
137909
|
else {
|
|
137865
137910
|
const prop = /\bnext\.(\w+)/.exec(expression)?.[1];
|
|
137866
137911
|
const types2 = {
|
|
@@ -137869,14 +137914,19 @@ function swiftGuestControls(one, names) {
|
|
|
137869
137914
|
Double: "Double ?? 0",
|
|
137870
137915
|
Int32: "Int ?? 0"
|
|
137871
137916
|
};
|
|
137872
|
-
|
|
137873
|
-
|
|
137874
|
-
value = `spec["${prop}"] as? ${types2[
|
|
137917
|
+
const type = prop && props[prop]?.type;
|
|
137918
|
+
if (type === "ColorValue") value = `spec["${prop}"].flatMap(oneControlColor)`;
|
|
137919
|
+
else if (type && types2[type]) value = `spec["${prop}"] as? ${types2[type]}`;
|
|
137920
|
+
else throw new Error(`${name3}: unmapped guest argument ${expression}`);
|
|
137875
137921
|
}
|
|
137876
137922
|
const argLabel = index ? label : withLabel ? withLabel[2].toLowerCase() + withLabel[3] : "";
|
|
137877
137923
|
return argLabel ? argLabel + ": " + value : value;
|
|
137878
137924
|
});
|
|
137879
|
-
|
|
137925
|
+
const call = `view.${withLabel?.[1] ?? first}(${args.join(", ")})`;
|
|
137926
|
+
const array8 = selector[0].expression;
|
|
137927
|
+
lines.push(
|
|
137928
|
+
arrays.has(array8) ? ` if previous == nil || (spec["${array8}"] as? NSArray) != (previous?["${array8}"] as? NSArray) { ${call} }` : ` ${call}`
|
|
137929
|
+
);
|
|
137880
137930
|
}
|
|
137881
137931
|
for (const { property: property2, parameters, fields, event, sync } of eventBindings(
|
|
137882
137932
|
name3,
|
|
@@ -137899,11 +137949,12 @@ function swiftGuestControls(one, names) {
|
|
|
137899
137949
|
return {
|
|
137900
137950
|
source: [
|
|
137901
137951
|
"import UIKit",
|
|
137902
|
-
"let guestControls: [String: (UIView?, Spec, Spec, @escaping (String, Spec) -> Void) -> UIView] = [",
|
|
137952
|
+
"let guestControls: [String: (UIView?, Spec, Spec?, Spec, @escaping (String, Spec) -> Void) -> UIView] = [",
|
|
137903
137953
|
...entries2,
|
|
137904
137954
|
"]",
|
|
137905
137955
|
""
|
|
137906
137956
|
].join("\n"),
|
|
137957
|
+
defines: [...defines].sort(),
|
|
137907
137958
|
watched
|
|
137908
137959
|
};
|
|
137909
137960
|
}
|
|
@@ -137965,35 +138016,62 @@ function resolveOneNativeAppleIosDir(appRoot) {
|
|
|
137965
138016
|
}
|
|
137966
138017
|
return workspace;
|
|
137967
138018
|
}
|
|
138019
|
+
function excludedGroupSource(source, defines) {
|
|
138020
|
+
const code = swiftCodeMask(source).trim();
|
|
138021
|
+
const group = /^#if (ONE_GROUP_\w+)[ \t]*\r?\n/.exec(code)?.[1];
|
|
138022
|
+
if (!group || defines.has(group)) return false;
|
|
138023
|
+
let depth = 0;
|
|
138024
|
+
for (const directive of code.matchAll(/^[ \t]*#(if|elseif|else|endif)\b[^\n]*/gm)) {
|
|
138025
|
+
if (directive[1] === "if") depth++;
|
|
138026
|
+
else if (directive[1] === "endif" && --depth === 0)
|
|
138027
|
+
return directive.index + directive[0].length === code.length;
|
|
138028
|
+
else if ((directive[1] === "else" || directive[1] === "elseif") && depth === 1)
|
|
138029
|
+
return false;
|
|
138030
|
+
}
|
|
138031
|
+
return false;
|
|
138032
|
+
}
|
|
137968
138033
|
async function oneNativeControlsPackage(appRoot) {
|
|
137969
138034
|
const iosDir = resolveOneNativeAppleIosDir(appRoot);
|
|
137970
|
-
const sdkDir = import_node_path152.default.join(iosDir, "SDK");
|
|
137971
|
-
const sdkFiles = import_node_fs151.default.readdirSync(sdkDir).filter((name3) => name3.endsWith(".swift")).sort().map((name3) => `SDK/${name3}`);
|
|
137972
|
-
const files2 = /* @__PURE__ */ new Map();
|
|
137973
|
-
const watched = [];
|
|
137974
|
-
const digest3 = (0, import_node_crypto89.createHash)("sha256");
|
|
137975
|
-
for (const relative6 of [...ONE_CONTROL_SOURCES, ...sdkFiles]) {
|
|
137976
|
-
const full = import_node_path152.default.join(iosDir, relative6);
|
|
137977
|
-
const content = import_node_fs151.default.readFileSync(full, "utf8");
|
|
137978
|
-
const flatName = import_node_path152.default.basename(relative6);
|
|
137979
|
-
if (files2.has(flatName)) {
|
|
137980
|
-
throw new Error(`duplicate Swift filename ${flatName} in OneNativeControls`);
|
|
137981
|
-
}
|
|
137982
|
-
files2.set(flatName, content);
|
|
137983
|
-
watched.push(full);
|
|
137984
|
-
digest3.update(flatName).update("\0").update(content).update("\0");
|
|
137985
|
-
}
|
|
137986
138035
|
const generated = swiftGuestControls(import_node_path152.default.dirname(iosDir), [
|
|
137987
138036
|
"OneNativeButton",
|
|
137988
138037
|
"OneNativeLabel",
|
|
137989
138038
|
"OneNativeText",
|
|
137990
138039
|
"OneNativeImage"
|
|
137991
138040
|
]);
|
|
137992
|
-
|
|
137993
|
-
|
|
137994
|
-
|
|
137995
|
-
|
|
137996
|
-
|
|
138041
|
+
const sources = {};
|
|
138042
|
+
const paths = /* @__PURE__ */ new Map();
|
|
138043
|
+
const defines = /* @__PURE__ */ new Set([...ONE_SDK_DEFINES, ...generated.defines]);
|
|
138044
|
+
for (const folder of ["", "Generated", "SDK"]) {
|
|
138045
|
+
for (const name3 of import_node_fs151.default.readdirSync(import_node_path152.default.join(iosDir, folder)).sort()) {
|
|
138046
|
+
if (!name3.endsWith(".swift") || name3 === "OneSwiftPackage.swift") continue;
|
|
138047
|
+
if (paths.has(name3))
|
|
138048
|
+
throw new Error(`duplicate Swift filename ${name3} in OneNativeControls`);
|
|
138049
|
+
const full = import_node_path152.default.join(iosDir, folder, name3);
|
|
138050
|
+
const source = import_node_fs151.default.readFileSync(full, "utf8");
|
|
138051
|
+
if (excludedGroupSource(source, defines)) continue;
|
|
138052
|
+
paths.set(name3, full);
|
|
138053
|
+
sources[name3] = source;
|
|
138054
|
+
}
|
|
138055
|
+
}
|
|
138056
|
+
sources["OneNativeGuestControls.swift"] = generated.source;
|
|
138057
|
+
sources["OneNativeControlsBridge.swift"] = BRIDGE_SWIFT;
|
|
138058
|
+
const files2 = new Map(
|
|
138059
|
+
Object.entries(
|
|
138060
|
+
collectSwiftSourceClosure(
|
|
138061
|
+
sources,
|
|
138062
|
+
["OneNativeControlsGuest"],
|
|
138063
|
+
swiftCodeMask,
|
|
138064
|
+
/* @__PURE__ */ new Set(["View"])
|
|
138065
|
+
)
|
|
138066
|
+
)
|
|
138067
|
+
);
|
|
138068
|
+
const watched = new Set(generated.watched);
|
|
138069
|
+
const digest3 = (0, import_node_crypto89.createHash)("sha256").update([...defines].join("\0")).update("\0");
|
|
138070
|
+
for (const [name3, source] of files2) {
|
|
138071
|
+
const full = paths.get(name3);
|
|
138072
|
+
if (full) watched.add(full);
|
|
138073
|
+
digest3.update(name3).update("\0").update(source).update("\0");
|
|
138074
|
+
}
|
|
137997
138075
|
const key2 = digest3.digest("hex").slice(0, 16);
|
|
137998
138076
|
files2.set(
|
|
137999
138077
|
"Package.swift",
|
|
@@ -138002,7 +138080,7 @@ async function oneNativeControlsPackage(appRoot) {
|
|
|
138002
138080
|
`// OneNativeControls ${key2}`,
|
|
138003
138081
|
"import PackageDescription",
|
|
138004
138082
|
`let package = Package(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", platforms: [.iOS(.v17)], targets: [`,
|
|
138005
|
-
` .executableTarget(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", path: ".", swiftSettings: [.swiftLanguageMode(.v5), ${
|
|
138083
|
+
` .executableTarget(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", path: ".", swiftSettings: [.swiftLanguageMode(.v5), ${[...defines].map((flag) => `.define("${flag}")`).join(", ")}]),`,
|
|
138006
138084
|
"])",
|
|
138007
138085
|
""
|
|
138008
138086
|
].join("\n")
|
|
@@ -138018,9 +138096,9 @@ async function oneNativeControlsPackage(appRoot) {
|
|
|
138018
138096
|
packagePath,
|
|
138019
138097
|
new Map([...files2].map(([file, text7]) => [import_node_path152.default.join(packagePath, file), text7]))
|
|
138020
138098
|
);
|
|
138021
|
-
return { packagePath, watched };
|
|
138099
|
+
return { packagePath, watched: [...watched] };
|
|
138022
138100
|
}
|
|
138023
|
-
var import_node_crypto89, import_node_fs151, import_node_module21, import_node_path152, import_node_url8,
|
|
138101
|
+
var import_node_crypto89, import_node_fs151, import_node_module21, import_node_path152, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT;
|
|
138024
138102
|
var init_one_native_controls_package = __esm({
|
|
138025
138103
|
"src/one-native-controls-package.ts"() {
|
|
138026
138104
|
"use strict";
|
|
@@ -138033,37 +138111,9 @@ var init_one_native_controls_package = __esm({
|
|
|
138033
138111
|
init_oneNativeControlsContract2();
|
|
138034
138112
|
init_swift_compile();
|
|
138035
138113
|
init_swift_host();
|
|
138114
|
+
init_swift_source_closure();
|
|
138036
138115
|
init_swift_submit();
|
|
138037
138116
|
init_swift_toolchain();
|
|
138038
|
-
ONE_CONTROL_SOURCES = [
|
|
138039
|
-
"Generated/OneNativeNavigationSplitViewView.swift",
|
|
138040
|
-
"Generated/OneNativeNavigationStackView.swift",
|
|
138041
|
-
"Generated/OneNativeViewSlots.swift",
|
|
138042
|
-
"Generated/OneNativeToolbarView.swift",
|
|
138043
|
-
"Generated/OneNativeListView.swift",
|
|
138044
|
-
"Generated/OneNativeSectionView.swift",
|
|
138045
|
-
"Generated/OneNativeFileImporterView.swift",
|
|
138046
|
-
"Generated/OneNativeButtonView.swift",
|
|
138047
|
-
"Generated/OneNativeLabelView.swift",
|
|
138048
|
-
"Generated/OneNativeTextView.swift",
|
|
138049
|
-
"Generated/OneNativeImageView.swift",
|
|
138050
|
-
"Generated/OneNativeSwiftUI.swift",
|
|
138051
|
-
"Generated/OneNativeAnimationValues.swift",
|
|
138052
|
-
"Generated/OneNativeEnvironment.swift",
|
|
138053
|
-
"OneNativeContainerSlotView.swift",
|
|
138054
|
-
"OneNativeSyncState.swift",
|
|
138055
|
-
"OneNativeAnimators.swift",
|
|
138056
|
-
"OneNativeDragBinding.swift",
|
|
138057
|
-
"OneNativeAccessibility.swift",
|
|
138058
|
-
"OneNativeAsyncAction.swift",
|
|
138059
|
-
"OneNativeControlled.swift",
|
|
138060
|
-
"OneZoomSources.swift",
|
|
138061
|
-
"OneNativeComposition.swift",
|
|
138062
|
-
"OneNativeHostingController.swift",
|
|
138063
|
-
"OneNativeSlot.swift",
|
|
138064
|
-
"OneNativeStyle.swift",
|
|
138065
|
-
"OneNativeRemoteImage.swift"
|
|
138066
|
-
];
|
|
138067
138117
|
ONE_SDK_DEFINES = ["ONE_IOS_27_SDK", "ONE_IOS_27_1_SDK"];
|
|
138068
138118
|
BRIDGE_SWIFT = `import SwiftUI
|
|
138069
138119
|
@_spi(Peach) import UIKit
|
|
@@ -138111,7 +138161,7 @@ private func platformColor(named name: String) -> UIColor? {
|
|
|
138111
138161
|
}
|
|
138112
138162
|
}
|
|
138113
138163
|
|
|
138114
|
-
|
|
138164
|
+
func oneControlColor(_ raw: Any) -> UIColor? {
|
|
138115
138165
|
if let color = raw as? UIColor { return color }
|
|
138116
138166
|
if let number = raw as? NSNumber {
|
|
138117
138167
|
let argb = UInt32(truncatingIfNeeded: number.int64Value)
|
|
@@ -138151,8 +138201,8 @@ private func parseColor(_ raw: Any) -> UIColor? {
|
|
|
138151
138201
|
}
|
|
138152
138202
|
}
|
|
138153
138203
|
if let dynamic = dict["dynamic"] as? Spec,
|
|
138154
|
-
let light = dynamic["light"].flatMap(
|
|
138155
|
-
let dark = dynamic["dark"].flatMap(
|
|
138204
|
+
let light = dynamic["light"].flatMap(oneControlColor),
|
|
138205
|
+
let dark = dynamic["dark"].flatMap(oneControlColor) {
|
|
138156
138206
|
return UIColor { traits in
|
|
138157
138207
|
traits.userInterfaceStyle == .dark ? dark : light
|
|
138158
138208
|
}
|
|
@@ -138169,7 +138219,7 @@ private func normalizeStyle(_ raw: Spec?) -> Spec {
|
|
|
138169
138219
|
}
|
|
138170
138220
|
}
|
|
138171
138221
|
for key in ["foregroundStyle", "tint", "background", "borderColor", "glassEffectTint"] {
|
|
138172
|
-
if let value = style[key], let color =
|
|
138222
|
+
if let value = style[key], let color = oneControlColor(value) {
|
|
138173
138223
|
style[key] = color
|
|
138174
138224
|
}
|
|
138175
138225
|
}
|
|
@@ -138185,7 +138235,12 @@ private func normalizeStyle(_ raw: Spec?) -> Spec {
|
|
|
138185
138235
|
}
|
|
138186
138236
|
|
|
138187
138237
|
private class ControlComposition {
|
|
138238
|
+
private static let reconciledContainers: Set<String> = [
|
|
138239
|
+
"OneNativeLazyVStack", "OneNativeLazyHStack", "OneNativeLazyVGrid", "OneNativeLazyHGrid",
|
|
138240
|
+
"OneNativeList", "OneNativeSection", "OneNativeForm",
|
|
138241
|
+
]
|
|
138188
138242
|
var views: [String: UIView] = [:]
|
|
138243
|
+
var specs: [String: Spec] = [:]
|
|
138189
138244
|
var children: [String: [UIView]] = [:]
|
|
138190
138245
|
var slots: [String: UIView] = [:]
|
|
138191
138246
|
var emit: ((String, String) -> Void)?
|
|
@@ -138203,7 +138258,10 @@ private class ControlComposition {
|
|
|
138203
138258
|
) {
|
|
138204
138259
|
let prefix = zip(previous, next).prefix(while: { $0 === $1 }).count
|
|
138205
138260
|
for child in previous.dropFirst(prefix).reversed() { remove(child) }
|
|
138206
|
-
for (index, child) in next.enumerated().dropFirst(prefix) {
|
|
138261
|
+
for (index, child) in next.enumerated().dropFirst(prefix) {
|
|
138262
|
+
child.removeFromSuperview()
|
|
138263
|
+
insert(child, index)
|
|
138264
|
+
}
|
|
138207
138265
|
}
|
|
138208
138266
|
|
|
138209
138267
|
func render(_ node: Spec, visited: inout Set<String>) -> UIView {
|
|
@@ -138247,22 +138305,30 @@ private class ControlComposition {
|
|
|
138247
138305
|
slot.configure(height: spec["height"] as? Double ?? 0, width: spec["width"] as? Double ?? 0)
|
|
138248
138306
|
slot.configureSwiftStyle(style)
|
|
138249
138307
|
slot.onSwiftStyleEvent = visit
|
|
138308
|
+
slot.onLayout = { [weak self] frame in
|
|
138309
|
+
self?.send(id, "onNativeLayout", ["x": frame.minX, "y": frame.minY, "width": frame.width, "height": frame.height])
|
|
138310
|
+
}
|
|
138250
138311
|
view = slot
|
|
138251
138312
|
default:
|
|
138252
|
-
guard let mount = guestControls[control] else { preconditionFailure("unsupported One
|
|
138253
|
-
view = mount(views[id], spec, style) { [weak self] event, fields in self?.send(id, event, fields) }
|
|
138313
|
+
guard let mount = guestControls[control] else { preconditionFailure("unsupported One control \\(control)") }
|
|
138314
|
+
view = mount(views[id], spec, specs[id], style) { [weak self] event, fields in self?.send(id, event, fields) }
|
|
138315
|
+
specs[id] = spec
|
|
138254
138316
|
}
|
|
138255
138317
|
views[id] = view
|
|
138256
138318
|
if let container = view as? OneNativeContainerView {
|
|
138257
138319
|
container.configureSwiftStyle(style)
|
|
138258
138320
|
container.onSwiftStyleEvent = visit
|
|
138259
138321
|
let nested = (node["children"] as? [Spec] ?? []).map { render($0, visited: &visited) }
|
|
138260
|
-
|
|
138261
|
-
nested
|
|
138262
|
-
|
|
138263
|
-
|
|
138264
|
-
|
|
138265
|
-
|
|
138322
|
+
if Self.reconciledContainers.contains(control) {
|
|
138323
|
+
container.reconcileComposedChildren(nested)
|
|
138324
|
+
} else {
|
|
138325
|
+
reconcile(
|
|
138326
|
+
nested,
|
|
138327
|
+
previous: children[id] ?? [],
|
|
138328
|
+
remove: container.removeChild,
|
|
138329
|
+
insert: container.insertChild
|
|
138330
|
+
)
|
|
138331
|
+
}
|
|
138266
138332
|
children[id] = nested
|
|
138267
138333
|
}
|
|
138268
138334
|
return view
|
|
@@ -138272,12 +138338,42 @@ private class ControlComposition {
|
|
|
138272
138338
|
for (id, view) in views where !visited.contains(id) {
|
|
138273
138339
|
if let container = view as? OneNativeContainerView { container.reset() }
|
|
138274
138340
|
views.removeValue(forKey: id)
|
|
138341
|
+
specs.removeValue(forKey: id)
|
|
138275
138342
|
children.removeValue(forKey: id)
|
|
138276
138343
|
slots.removeValue(forKey: id)
|
|
138277
138344
|
}
|
|
138278
138345
|
}
|
|
138279
138346
|
}
|
|
138280
138347
|
|
|
138348
|
+
private struct ControlBridge: UIViewRepresentable {
|
|
138349
|
+
let root: Spec
|
|
138350
|
+
let emit: (String, String) -> Void
|
|
138351
|
+
|
|
138352
|
+
func makeCoordinator() -> ControlComposition { ControlComposition() }
|
|
138353
|
+
|
|
138354
|
+
func makeUIView(context: Context) -> UIView { UIView(frame: .zero) }
|
|
138355
|
+
|
|
138356
|
+
func updateUIView(_ host: UIView, context: Context) {
|
|
138357
|
+
let state = context.coordinator
|
|
138358
|
+
state.emit = emit
|
|
138359
|
+
var visited = Set<String>()
|
|
138360
|
+
let control = state.render(root, visited: &visited)
|
|
138361
|
+
if control.superview !== host {
|
|
138362
|
+
host.subviews.forEach { $0.removeFromSuperview() }
|
|
138363
|
+
control.frame = host.bounds
|
|
138364
|
+
control.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
138365
|
+
host.addSubview(control)
|
|
138366
|
+
}
|
|
138367
|
+
state.prune(keeping: visited)
|
|
138368
|
+
}
|
|
138369
|
+
|
|
138370
|
+
static func dismantleUIView(_ host: UIView, coordinator: ControlComposition) {
|
|
138371
|
+
host.subviews.forEach { $0.removeFromSuperview() }
|
|
138372
|
+
coordinator.prune(keeping: [])
|
|
138373
|
+
coordinator.emit = nil
|
|
138374
|
+
}
|
|
138375
|
+
}
|
|
138376
|
+
|
|
138281
138377
|
private struct NavigationDestinationSlot: Identifiable, Equatable {
|
|
138282
138378
|
let id: String
|
|
138283
138379
|
let contentHost: String
|
|
@@ -138549,7 +138645,10 @@ private struct NavigationSplitViewBridge: UIViewRepresentable {
|
|
|
138549
138645
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
138550
138646
|
.ignoresSafeArea(.container))
|
|
138551
138647
|
default:
|
|
138552
|
-
|
|
138648
|
+
let root = spec["root"] as! Spec
|
|
138649
|
+
precondition((root["spec"] as? Spec)?["control"] as? String == view)
|
|
138650
|
+
return AnyView(ControlBridge(root: root, emit: emit)
|
|
138651
|
+
.frame(maxWidth: .infinity, maxHeight: .infinity))
|
|
138553
138652
|
}
|
|
138554
138653
|
}
|
|
138555
138654
|
}
|
|
@@ -143071,7 +143170,7 @@ var init_nitro_superset = __esm({
|
|
|
143071
143170
|
init_nitroContract();
|
|
143072
143171
|
init_swift_standin_digest();
|
|
143073
143172
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
143074
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
143173
|
+
NITRO_COMPILER_DIGEST = true ? "aadb826ed82edbe82333b9bc9eef9ac7e3faa094f27facdbba72feb1f5e3adc6" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
143075
143174
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
143076
143175
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
143077
143176
|
published3 = /* @__PURE__ */ new Map();
|