peachsim 0.1.2401 → 0.1.2403
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bridge-flow-runner.ts +1 -1
- package/cli/catalog/meta.ts +11 -3
- package/cli/cloud-client.ts +4 -1
- package/cli/commands/box.ts +6 -0
- package/cli/commands/map.ts +1 -0
- package/cli/commands/platform.ts +2 -0
- package/cli/commands/storage.ts +37 -1
- package/cli/commands/stream.ts +2 -0
- package/cli/native-input.ts +6 -1
- package/cli/outbound-endpoints.ts +3 -3
- package/cli/run-registry.ts +25 -27
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +174 -20
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +154 -6
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +199 -20
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +5 -5
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +15 -9
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +5 -5
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +59 -56
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +288 -89
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +3 -3
- package/dist-lib/vite.cjs +5 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/webrtcContract.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +13 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +5 -4
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +12 -6
- package/src/android-gradle-sources.ts +14 -8
- package/src/androidGradleContract.ts +2 -0
- package/src/nitro-adapter.lock.json +232 -232
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +19 -19
- package/src/turbo-source.ts +149 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (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;
|
|
@@ -2476,7 +2476,7 @@ function isValidRuntimeVersion(value) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
|
|
2478
2478
|
// runtime-companion.json
|
|
2479
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
2479
|
+
var runtime_companion_default = { abi: 1, sha256: "0c8fd2e718b1b95d6f7a99350e741823ac5d885c7bc97aa3062ae81603bc987d", file: "node/cli-0c8fd2e718b1b95d6f7a99350e741823ac5d885c7bc97aa3062ae81603bc987d.cjs" };
|
|
2480
2480
|
|
|
2481
2481
|
// src/answeredNativePackages.ts
|
|
2482
2482
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (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.2403 | (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;
|
|
@@ -29766,7 +29766,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
29766
29766
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
29767
29767
|
MULTI_MANIFEST_VERSION = 69;
|
|
29768
29768
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
29769
|
-
compilerSourceDigest = true ? "
|
|
29769
|
+
compilerSourceDigest = true ? "5f7b13ec00e56a1f8e36b1e4f1688c4eb10836e9afffb80f5e63e4fbf23e9070" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
29770
29770
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
29771
29771
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
29772
29772
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -34011,7 +34011,7 @@ var init_swift_standin_digest = __esm({
|
|
|
34011
34011
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
34012
34012
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
34013
34013
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34014
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
34014
|
+
STANDIN_SOURCE_DIGEST = true ? "2e7f1f173feffee6e539b11d8cd6fa9540f7418a23e3563c8b2d9aa747495bd6" : standinSourceDigest();
|
|
34015
34015
|
}
|
|
34016
34016
|
});
|
|
34017
34017
|
|
|
@@ -48710,6 +48710,7 @@ struct PeachFabricView {
|
|
|
48710
48710
|
UIView *positionView = nil;
|
|
48711
48711
|
double windowX = 0;
|
|
48712
48712
|
double windowY = 0;
|
|
48713
|
+
CGPoint parentOrigin = CGPointZero;
|
|
48713
48714
|
};
|
|
48714
48715
|
PeachFabricComponents *fabricComponents;
|
|
48715
48716
|
RCTComponentViewRegistry *fabricRegistry;
|
|
@@ -48722,6 +48723,9 @@ std::shared_ptr<const react::EventDispatcher> fabricDispatcher;
|
|
|
48722
48723
|
std::optional<jsi::Function> fabricEventHandler;
|
|
48723
48724
|
std::unordered_map<int, PeachFabricView> fabricViews;
|
|
48724
48725
|
std::unordered_map<int, int> fabricTagAliases;
|
|
48726
|
+
using FabricComponentView = UIView<RCTComponentViewProtocol>;
|
|
48727
|
+
std::unordered_map<int, FabricComponentView *> fabricPeers;
|
|
48728
|
+
std::unordered_map<int, std::vector<int>> fabricChildren;
|
|
48725
48729
|
int nextFabricView = 1;
|
|
48726
48730
|
UITextField *fabricFocusField = nil;
|
|
48727
48731
|
bool fabricFocusActive = false;
|
|
@@ -48744,6 +48748,36 @@ PeachFabricView &fabricView(int tag) {
|
|
|
48744
48748
|
return found->second;
|
|
48745
48749
|
}
|
|
48746
48750
|
|
|
48751
|
+
void detachFabricChildren(int parent) {
|
|
48752
|
+
auto found = fabricChildren.find(parent);
|
|
48753
|
+
if (found == fabricChildren.end()) return;
|
|
48754
|
+
auto *parentView = fabricPeers.at(parent);
|
|
48755
|
+
const auto &children = found->second;
|
|
48756
|
+
for (size_t i = children.size(); i > 0; --i) {
|
|
48757
|
+
[parentView unmountChildComponentView:fabricPeers.at(children[i - 1]) index:i - 1];
|
|
48758
|
+
}
|
|
48759
|
+
fabricChildren.erase(found);
|
|
48760
|
+
}
|
|
48761
|
+
|
|
48762
|
+
void placeFabricView(int tag, CGPoint origin, bool inParent) {
|
|
48763
|
+
auto &view = fabricView(tag);
|
|
48764
|
+
auto *component = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
48765
|
+
view.parentOrigin = origin;
|
|
48766
|
+
auto metrics = view.layoutMetrics;
|
|
48767
|
+
metrics.frame.origin = {static_cast<react::Float>(origin.x), static_cast<react::Float>(origin.y)};
|
|
48768
|
+
if (metrics != view.layoutMetrics) {
|
|
48769
|
+
[component updateLayoutMetrics:metrics oldLayoutMetrics:view.layoutMetrics];
|
|
48770
|
+
view.layoutMetrics = metrics;
|
|
48771
|
+
[component finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
|
|
48772
|
+
}
|
|
48773
|
+
component._peachDrawsInFabricSlot = inParent;
|
|
48774
|
+
component._peachFabricLayoutOrigin = origin;
|
|
48775
|
+
view.positionView._peachFabricSlotContent = inParent ? component : nil;
|
|
48776
|
+
if (!inParent && component.superview != view.positionView) {
|
|
48777
|
+
[view.positionView addSubview:component];
|
|
48778
|
+
}
|
|
48779
|
+
}
|
|
48780
|
+
|
|
48747
48781
|
void applyFabricFocus() {
|
|
48748
48782
|
if (!fabricFocusActive) {
|
|
48749
48783
|
if (fabricFocusField) {
|
|
@@ -49247,7 +49281,9 @@ ${paper ? ` // the interop's state carries its coordinator, which only the sh
|
|
|
49247
49281
|
view.positionView.frame = CGRectMake(winX, winY, width, height);
|
|
49248
49282
|
}
|
|
49249
49283
|
auto metrics = view.layoutMetrics;
|
|
49250
|
-
metrics.frame = react::Rect{
|
|
49284
|
+
metrics.frame = react::Rect{
|
|
49285
|
+
{static_cast<react::Float>(view.parentOrigin.x), static_cast<react::Float>(view.parentOrigin.y)},
|
|
49286
|
+
{static_cast<react::Float>(width), static_cast<react::Float>(height)}};
|
|
49251
49287
|
metrics.pointScaleFactor = static_cast<react::Float>(scale);
|
|
49252
49288
|
if (metrics == view.layoutMetrics) return jsi::Value::undefined();
|
|
49253
49289
|
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
@@ -49270,11 +49306,29 @@ ${paper ? ` // the interop's state carries its coordinator, which only the sh
|
|
|
49270
49306
|
}
|
|
49271
49307
|
view.family->getEventEmitter()->setEnabled(false);
|
|
49272
49308
|
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
49309
|
+
for (const auto &[hostId, viewTag] : fabricTagAliases) {
|
|
49310
|
+
if (viewTag != tag) continue;
|
|
49311
|
+
detachFabricChildren(hostId);
|
|
49312
|
+
std::optional<int> parentId;
|
|
49313
|
+
for (const auto &[id, children] : fabricChildren) {
|
|
49314
|
+
if (std::find(children.begin(), children.end(), hostId) != children.end()) {
|
|
49315
|
+
parentId = id;
|
|
49316
|
+
break;
|
|
49317
|
+
}
|
|
49318
|
+
}
|
|
49319
|
+
if (parentId) detachFabricChildren(*parentId);
|
|
49320
|
+
fabricPeers.erase(hostId);
|
|
49321
|
+
}
|
|
49322
|
+
descriptor.view._peachDrawsInFabricSlot = NO;
|
|
49273
49323
|
[descriptor.view removeFromSuperview];
|
|
49274
49324
|
[view.positionView removeFromSuperview];
|
|
49275
49325
|
[view.slotView removeFromSuperview];
|
|
49276
49326
|
[fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
|
|
49277
49327
|
fabricViews.erase(tag);
|
|
49328
|
+
if (fabricViews.empty()) {
|
|
49329
|
+
fabricChildren.clear();
|
|
49330
|
+
fabricPeers.clear();
|
|
49331
|
+
}
|
|
49278
49332
|
for (auto it = fabricTagAliases.begin(); it != fabricTagAliases.end();) {
|
|
49279
49333
|
if (it->second == tag) it = fabricTagAliases.erase(it);
|
|
49280
49334
|
else ++it;
|
|
@@ -49287,6 +49341,91 @@ ${paper ? ` // the interop's state carries its coordinator, which only the sh
|
|
|
49287
49341
|
fabricTagAliases[nodeTag] = tag;
|
|
49288
49342
|
return jsi::Value::undefined();
|
|
49289
49343
|
});
|
|
49344
|
+
method("syncAccessibilityTree", 1, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
49345
|
+
auto records = args[0].asObject(rt).asArray(rt);
|
|
49346
|
+
std::unordered_map<int, std::vector<int>> next;
|
|
49347
|
+
std::unordered_set<int> active;
|
|
49348
|
+
std::vector<int> roots;
|
|
49349
|
+
std::vector<int> changedParents;
|
|
49350
|
+
std::unordered_map<void *, int> identities;
|
|
49351
|
+
for (size_t i = 0; i < records.size(rt); ++i) {
|
|
49352
|
+
auto row = records.getValueAtIndex(rt, i).asObject(rt).asArray(rt);
|
|
49353
|
+
int id = static_cast<int>(row.getValueAtIndex(rt, 0).asNumber());
|
|
49354
|
+
int parent = static_cast<int>(row.getValueAtIndex(rt, 1).asNumber());
|
|
49355
|
+
int tag = static_cast<int>(row.getValueAtIndex(rt, 2).asNumber());
|
|
49356
|
+
CGRect frame = CGRectMake(
|
|
49357
|
+
row.getValueAtIndex(rt, 3).asNumber(), row.getValueAtIndex(rt, 4).asNumber(),
|
|
49358
|
+
row.getValueAtIndex(rt, 5).asNumber(), row.getValueAtIndex(rt, 6).asNumber());
|
|
49359
|
+
FabricComponentView *peer;
|
|
49360
|
+
if (tag) {
|
|
49361
|
+
peer = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
49362
|
+
} else {
|
|
49363
|
+
auto entry = fabricPeers.find(id);
|
|
49364
|
+
peer = entry == fabricPeers.end()
|
|
49365
|
+
? [[RCTViewComponentView alloc] initWithFrame:frame]
|
|
49366
|
+
: entry->second;
|
|
49367
|
+
peer._peachDrawsInFabricSlot = YES;
|
|
49368
|
+
peer.frame = frame;
|
|
49369
|
+
peer.isAccessibilityElement = row.getValueAtIndex(rt, 7).getBool();
|
|
49370
|
+
peer.hidden = row.getValueAtIndex(rt, 8).getBool();
|
|
49371
|
+
auto label = row.getValueAtIndex(rt, 9);
|
|
49372
|
+
peer.accessibilityLabel = label.isString() ? @(label.asString(rt).utf8(rt).c_str()) : nil;
|
|
49373
|
+
}
|
|
49374
|
+
fabricPeers[id] = peer;
|
|
49375
|
+
active.insert(id);
|
|
49376
|
+
identities[(__bridge void *)peer] = id;
|
|
49377
|
+
if (parent) next[parent].push_back(id);
|
|
49378
|
+
else roots.push_back(id);
|
|
49379
|
+
}
|
|
49380
|
+
for (const auto &[parent, previous] : fabricChildren) {
|
|
49381
|
+
auto desired = next.find(parent);
|
|
49382
|
+
if (desired == next.end() || previous != desired->second) changedParents.push_back(parent);
|
|
49383
|
+
}
|
|
49384
|
+
for (int parent : changedParents) detachFabricChildren(parent);
|
|
49385
|
+
for (auto it = fabricPeers.begin(); it != fabricPeers.end();) {
|
|
49386
|
+
if (active.count(it->first)) ++it;
|
|
49387
|
+
else it = fabricPeers.erase(it);
|
|
49388
|
+
}
|
|
49389
|
+
for (size_t i = 0; i < records.size(rt); ++i) {
|
|
49390
|
+
auto row = records.getValueAtIndex(rt, i).asObject(rt).asArray(rt);
|
|
49391
|
+
int id = static_cast<int>(row.getValueAtIndex(rt, 0).asNumber());
|
|
49392
|
+
int parent = static_cast<int>(row.getValueAtIndex(rt, 1).asNumber());
|
|
49393
|
+
int tag = static_cast<int>(row.getValueAtIndex(rt, 2).asNumber());
|
|
49394
|
+
auto *peer = fabricPeers.at(id);
|
|
49395
|
+
if (tag) {
|
|
49396
|
+
CGPoint origin = CGPointMake(row.getValueAtIndex(rt, 3).asNumber(), row.getValueAtIndex(rt, 4).asNumber());
|
|
49397
|
+
placeFabricView(tag, origin, parent != 0);
|
|
49398
|
+
}
|
|
49399
|
+
auto desired = next.find(id);
|
|
49400
|
+
if (desired == next.end() || fabricChildren.count(id)) continue;
|
|
49401
|
+
for (size_t index = 0; index < desired->second.size(); ++index) {
|
|
49402
|
+
auto *child = fabricPeers.at(desired->second[index]);
|
|
49403
|
+
[child removeFromSuperview];
|
|
49404
|
+
[peer mountChildComponentView:child index:index];
|
|
49405
|
+
}
|
|
49406
|
+
fabricChildren[id] = std::move(desired->second);
|
|
49407
|
+
}
|
|
49408
|
+
for (int id : roots) [fabricPeers.at(id) layoutIfNeeded];
|
|
49409
|
+
std::vector<jsi::Value> results;
|
|
49410
|
+
for (int hostId : active) {
|
|
49411
|
+
NSArray *elements = fabricPeers.at(hostId).accessibilityElements;
|
|
49412
|
+
if (!elements) continue;
|
|
49413
|
+
std::vector<int> ordered;
|
|
49414
|
+
for (id element in elements) {
|
|
49415
|
+
auto found = identities.find((__bridge void *)element);
|
|
49416
|
+
if (found != identities.end()) ordered.push_back(found->second);
|
|
49417
|
+
}
|
|
49418
|
+
// a standalone UIKit element may have no React counterpart.
|
|
49419
|
+
if (ordered.size() != elements.count) continue;
|
|
49420
|
+
jsi::Array row(rt, 1 + ordered.size());
|
|
49421
|
+
row.setValueAtIndex(rt, 0, jsi::Value(hostId));
|
|
49422
|
+
for (size_t i = 0; i < ordered.size(); ++i) row.setValueAtIndex(rt, i + 1, jsi::Value(ordered[i]));
|
|
49423
|
+
results.emplace_back(std::move(row));
|
|
49424
|
+
}
|
|
49425
|
+
jsi::Array result(rt, results.size());
|
|
49426
|
+
for (size_t i = 0; i < results.size(); ++i) result.setValueAtIndex(rt, i, std::move(results[i]));
|
|
49427
|
+
return result;
|
|
49428
|
+
});
|
|
49290
49429
|
// RCTMountingManager::dispatchCommand: the view's handleCommand:args:. a
|
|
49291
49430
|
// Paper command arrives as the index its view config's Commands gave it
|
|
49292
49431
|
method("command", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
@@ -49548,6 +49687,7 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
49548
49687
|
#import <React/RCTComponentViewFactory.h>
|
|
49549
49688
|
#import <React/RCTComponentViewProtocol.h>
|
|
49550
49689
|
#import <React/RCTComponentViewRegistry.h>
|
|
49690
|
+
#import <React/RCTViewComponentView.h>
|
|
49551
49691
|
#import <ReactCommon/RCTTurboModule.h>
|
|
49552
49692
|
#include <ReactCommon/CallInvoker.h>
|
|
49553
49693
|
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
@@ -49561,14 +49701,22 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
49561
49701
|
#include <react/renderer/core/StateUpdate.h>
|
|
49562
49702
|
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
49563
49703
|
#include <react/utils/ContextContainer.h>
|
|
49704
|
+
#include <algorithm>
|
|
49564
49705
|
#include <cstdio>
|
|
49565
49706
|
#include <cstdlib>
|
|
49566
49707
|
#include <optional>
|
|
49567
49708
|
#include <unordered_map>
|
|
49709
|
+
#include <unordered_set>
|
|
49568
49710
|
#include <vector>
|
|
49569
49711
|
#include <jsi/jsi.h>
|
|
49570
49712
|
|
|
49571
49713
|
using namespace facebook;
|
|
49714
|
+
|
|
49715
|
+
@interface UIView (PeachFabricRendering)
|
|
49716
|
+
@property(nonatomic) BOOL _peachDrawsInFabricSlot;
|
|
49717
|
+
@property(nonatomic, weak) UIView *_peachFabricSlotContent;
|
|
49718
|
+
@property(nonatomic) CGPoint _peachFabricLayoutOrigin;
|
|
49719
|
+
@end
|
|
49572
49720
|
`;
|
|
49573
49721
|
FABRIC_HOST_PAPER_INCLUDES = `#import <UIKit/UIKit.h>
|
|
49574
49722
|
#import <objc/message.h>
|
|
@@ -50553,7 +50701,7 @@ var init_react_native_core = __esm({
|
|
|
50553
50701
|
init_swift_distribution();
|
|
50554
50702
|
init_swift_package();
|
|
50555
50703
|
init_swiftContract();
|
|
50556
|
-
recipe = true ? "
|
|
50704
|
+
recipe = true ? "6425ef9cf485d8d9b2637bfd86f1dadd809b8afa3b62c607c10e5bc1882e0741" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
50557
50705
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
50558
50706
|
building = /* @__PURE__ */ new Map();
|
|
50559
50707
|
}
|
|
@@ -56393,7 +56541,7 @@ init_swift_native_pin();
|
|
|
56393
56541
|
init_xcode_project();
|
|
56394
56542
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
56395
56543
|
function expoNativeCompilerDigestValue() {
|
|
56396
|
-
return true ? "
|
|
56544
|
+
return true ? "a21e70334c74419c8ca0427886adcfb457911bc210711ce2210c3f98b2dabf6b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
56397
56545
|
}
|
|
56398
56546
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
56399
56547
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2403 | (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;
|