peachsim 0.1.2662 → 0.1.2664
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 +314 -12
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-MFBE73CV.mjs → acorn-3U6EU7PO.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-T5XVET5M.mjs → chunk-2HO57LUD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ULUPQXN4.mjs → chunk-2LFY365I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N66ZEIRX.mjs → chunk-66KK3MIG.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-WJ5S2KZR.mjs → chunk-6PEAK5M5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4WBNATG.mjs → chunk-7IPHJM2I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VC25U5MB.mjs → chunk-BOHFFNGU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JQRP67DQ.mjs → chunk-CFJZS5CE.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-BXG34MPE.mjs → chunk-ERGD3KKN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UZWDAUVE.mjs → chunk-EZBQ6ZK5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U6EFBR2E.mjs → chunk-FML4O4LG.mjs} +14 -14
- package/dist-lib/esm-chunks/{chunk-GOHNNSQT.mjs → chunk-HDUQW4GQ.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-QZ5QKBQU.mjs → chunk-HZ2MRRBP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VWFJFTPH.mjs → chunk-JLQGBHPP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q6TBKKDJ.mjs → chunk-JUAYA5J7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2SNPAV3T.mjs → chunk-K2IPDHF4.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-RET2UHLH.mjs → chunk-KXGHURRU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SEPP7VI2.mjs → chunk-MKUIWBJN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KS5LU45K.mjs → chunk-NBRFPXHI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QOTPXRB5.mjs → chunk-NZL67K66.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-BFZ5NZWL.mjs → chunk-QZJ5VH7F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T6MLX2EQ.mjs → chunk-UKAH2MGN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QIATHQJU.mjs → chunk-XKY7FRVJ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-4O2WUV7P.mjs → chunk-XRVX2ZRS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CMPAZOPV.mjs → chunk-ZPGI2MXX.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-ORSSI3AE.mjs → metro-layout-parser-2VDVNNSP.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-BH2JJ5KR.mjs → swift-package-prebuilt-4COK4ZLX.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-O5CV2FUF.mjs → swift-sdk-app-module-FDCK65JN.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-4PLMEMHM.mjs → swift-sdk-image-PVTKL5U5.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-3PG6DWGA.mjs → swift-sdk-image-producer-IHDGAN67.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +313 -11
- 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 +314 -12
- 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 +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +69 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +314 -12
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/turbo-fabric-app.ts +281 -0
- package/src/turbo-source.ts +32 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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.2664 | (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.2664 | (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.2664 | (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.2664 | (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/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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/beta.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2664 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-ZPGI2MXX.mjs";
|
|
3
3
|
|
|
4
4
|
// src/beta.ts
|
|
5
5
|
var IS_BETA = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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.2664 | (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.2664 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
BridgeInputError,
|
|
4
4
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
parseSemanticWaitOptions,
|
|
18
18
|
parseStateOptions,
|
|
19
19
|
parseTapTarget
|
|
20
|
-
} from "./esm-chunks/chunk-
|
|
21
|
-
import "./esm-chunks/chunk-
|
|
22
|
-
import "./esm-chunks/chunk-
|
|
23
|
-
import "./esm-chunks/chunk-
|
|
20
|
+
} from "./esm-chunks/chunk-XKY7FRVJ.mjs";
|
|
21
|
+
import "./esm-chunks/chunk-JUAYA5J7.mjs";
|
|
22
|
+
import "./esm-chunks/chunk-6PEAK5M5.mjs";
|
|
23
|
+
import "./esm-chunks/chunk-ZPGI2MXX.mjs";
|
|
24
24
|
export {
|
|
25
25
|
BridgeInputError,
|
|
26
26
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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.2664 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
4
4
|
REFUSED_PERFORM_STEP_TYPES,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
readyProbeHasContent,
|
|
14
14
|
readyProbeIsReady,
|
|
15
15
|
refusedPerformStepReason
|
|
16
|
-
} from "./esm-chunks/chunk-
|
|
17
|
-
import "./esm-chunks/chunk-
|
|
16
|
+
} from "./esm-chunks/chunk-JUAYA5J7.mjs";
|
|
17
|
+
import "./esm-chunks/chunk-ZPGI2MXX.mjs";
|
|
18
18
|
export {
|
|
19
19
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
20
20
|
REFUSED_PERFORM_STEP_TYPES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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;
|
|
@@ -1297,7 +1297,7 @@ var init_src = __esm({
|
|
|
1297
1297
|
var runtime_companion_default;
|
|
1298
1298
|
var init_runtime_companion = __esm({
|
|
1299
1299
|
"runtime-companion.json"() {
|
|
1300
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
1300
|
+
runtime_companion_default = { abi: 1, sha256: "0ad3faed77929d763ea2b0a67e07d83b2b0f804b2274fbd017286c33d22db5ef", file: "node/cli-0ad3faed77929d763ea2b0a67e07d83b2b0f804b2274fbd017286c33d22db5ef.cjs" };
|
|
1301
1301
|
}
|
|
1302
1302
|
});
|
|
1303
1303
|
|
|
@@ -98331,6 +98331,291 @@ var init_turbo_codegen_intake = __esm({
|
|
|
98331
98331
|
}
|
|
98332
98332
|
});
|
|
98333
98333
|
|
|
98334
|
+
// src/turbo-fabric-app.ts
|
|
98335
|
+
var FABRIC_APP_INCLUDES, FABRIC_APP_PRESENTER, FABRIC_APP_INSTALL, FABRIC_APP_METHODS, FABRIC_APP_TEARDOWN;
|
|
98336
|
+
var init_turbo_fabric_app = __esm({
|
|
98337
|
+
"src/turbo-fabric-app.ts"() {
|
|
98338
|
+
"use strict";
|
|
98339
|
+
FABRIC_APP_INCLUDES = `#import <Block.h>
|
|
98340
|
+
#import <React/RCTScheduler.h>
|
|
98341
|
+
#import <React/RCTSurfacePresenter.h>
|
|
98342
|
+
#include <jsi/JSIDynamic.h>
|
|
98343
|
+
#include <react/renderer/components/view/BaseViewProps.h>
|
|
98344
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
98345
|
+
#include <react/renderer/core/InstanceHandle.h>
|
|
98346
|
+
#include <react/renderer/core/LayoutableShadowNode.h>
|
|
98347
|
+
#include <react/renderer/mounting/ShadowTree.h>
|
|
98348
|
+
#include <react/renderer/uimanager/UIManager.h>
|
|
98349
|
+
`;
|
|
98350
|
+
FABRIC_APP_PRESENTER = `
|
|
98351
|
+
namespace {
|
|
98352
|
+
extern std::shared_ptr<react::CallInvoker> fabricInvoker;
|
|
98353
|
+
extern std::shared_ptr<react::RuntimeScheduler> fabricScheduler;
|
|
98354
|
+
}
|
|
98355
|
+
|
|
98356
|
+
@interface PeachAppSurfacePresenter : RCTSurfacePresenter
|
|
98357
|
+
@property(nonatomic) std::function<void(const react::MountingTransaction &)> publishMount;
|
|
98358
|
+
@property(nonatomic) std::function<void(react::Tag, folly::dynamic)> publishProps;
|
|
98359
|
+
@property(nonatomic) std::function<void(react::Tag, const std::string &, const folly::dynamic &)> dispatchCommand;
|
|
98360
|
+
@end
|
|
98361
|
+
|
|
98362
|
+
@implementation PeachAppSurfacePresenter
|
|
98363
|
+
- (void)schedulerDidFinishTransaction:(std::shared_ptr<const react::MountingCoordinator>)coordinator {
|
|
98364
|
+
// guest commits can finish outside a React Native scheduler task.
|
|
98365
|
+
fabricInvoker->invokeAsync([](jsi::Runtime &) {
|
|
98366
|
+
fabricScheduler->scheduleWork([](jsi::Runtime &) {});
|
|
98367
|
+
});
|
|
98368
|
+
}
|
|
98369
|
+
|
|
98370
|
+
- (void)schedulerShouldRenderTransactions:(std::shared_ptr<const react::MountingCoordinator>)coordinator {
|
|
98371
|
+
if (auto transaction = coordinator->pullTransaction()) {
|
|
98372
|
+
self.publishMount(*transaction);
|
|
98373
|
+
}
|
|
98374
|
+
}
|
|
98375
|
+
|
|
98376
|
+
- (void)schedulerDidSynchronouslyUpdateViewOnUIThread:(ReactTag)tag props:(folly::dynamic)props {
|
|
98377
|
+
self.publishProps(static_cast<react::Tag>(tag), std::move(props));
|
|
98378
|
+
}
|
|
98379
|
+
|
|
98380
|
+
- (void)schedulerDidDispatchCommand:(const react::ShadowView &)shadowView
|
|
98381
|
+
commandName:(const std::string &)name
|
|
98382
|
+
args:(const folly::dynamic &)args {
|
|
98383
|
+
self.dispatchCommand(shadowView.tag, name, args);
|
|
98384
|
+
}
|
|
98385
|
+
@end
|
|
98386
|
+
|
|
98387
|
+
namespace {
|
|
98388
|
+
using AppNode = std::shared_ptr<const react::ShadowNode>;
|
|
98389
|
+
using AppChildren = std::vector<AppNode>;
|
|
98390
|
+
|
|
98391
|
+
class PeachAppShadowTree {
|
|
98392
|
+
public:
|
|
98393
|
+
PeachAppShadowTree(std::shared_ptr<react::UIManager> manager, const react::ContextContainer &context)
|
|
98394
|
+
: manager_(std::move(manager)), context_(context) {}
|
|
98395
|
+
|
|
98396
|
+
~PeachAppShadowTree() {
|
|
98397
|
+
if (surface_ != 0) manager_->getShadowTreeRegistry().remove(surface_);
|
|
98398
|
+
}
|
|
98399
|
+
|
|
98400
|
+
void commit(jsi::Runtime &rt, react::SurfaceId surface, double width, double height, double scale,
|
|
98401
|
+
bool rtl, const jsi::Array &roots) {
|
|
98402
|
+
react::LayoutConstraints constraints;
|
|
98403
|
+
constraints.maximumSize = {static_cast<react::Float>(width), static_cast<react::Float>(height)};
|
|
98404
|
+
constraints.minimumSize = constraints.maximumSize;
|
|
98405
|
+
constraints.layoutDirection = rtl ? react::LayoutDirection::RightToLeft : react::LayoutDirection::LeftToRight;
|
|
98406
|
+
react::LayoutContext layout;
|
|
98407
|
+
layout.pointScaleFactor = static_cast<react::Float>(scale);
|
|
98408
|
+
layout.viewportSize = constraints.maximumSize;
|
|
98409
|
+
if (surface_ != 0 && surface_ != surface)
|
|
98410
|
+
throw jsi::JSError(rt, "Fabric runtime is already bound to another app surface");
|
|
98411
|
+
if (surface_ == 0) {
|
|
98412
|
+
surface_ = surface;
|
|
98413
|
+
manager_->startEmptySurface(std::make_unique<react::ShadowTree>(surface_, constraints, layout, *manager_, context_));
|
|
98414
|
+
} else if (constraints != constraints_ || layout != layout_) {
|
|
98415
|
+
manager_->getShadowTreeRegistry().visit(surface_, [&](const react::ShadowTree &tree) {
|
|
98416
|
+
tree.commit([&](const react::RootShadowNode &root) {
|
|
98417
|
+
return root.clone({surface_, context_}, constraints, layout);
|
|
98418
|
+
}, {});
|
|
98419
|
+
});
|
|
98420
|
+
}
|
|
98421
|
+
constraints_ = constraints;
|
|
98422
|
+
layout_ = layout;
|
|
98423
|
+
|
|
98424
|
+
std::unordered_map<react::Tag, AppNode> next;
|
|
98425
|
+
auto children = readChildren(rt, roots, next);
|
|
98426
|
+
nodes_.swap(next);
|
|
98427
|
+
manager_->completeSurface(surface_, children,
|
|
98428
|
+
{.enableStateReconciliation = true, .mountSynchronously = false, .source = react::ShadowTree::CommitSource::React});
|
|
98429
|
+
}
|
|
98430
|
+
|
|
98431
|
+
jsi::Value handle(jsi::Runtime &rt, react::Tag tag, const jsi::Value &surface, const jsi::Value &generation) const {
|
|
98432
|
+
auto value = react::valueFromShadowNode(rt, node(rt, tag));
|
|
98433
|
+
auto object = value.getObject(rt);
|
|
98434
|
+
object.setProperty(rt, "__nativeTag", tag);
|
|
98435
|
+
object.setProperty(rt, "__viewTag", tag);
|
|
98436
|
+
object.setProperty(rt, "__surfaceId", surface);
|
|
98437
|
+
object.setProperty(rt, "__surfaceGeneration", generation);
|
|
98438
|
+
return object;
|
|
98439
|
+
}
|
|
98440
|
+
|
|
98441
|
+
void dispatch(jsi::Runtime &rt, react::Tag tag, std::string type, const jsi::Value &payload) const {
|
|
98442
|
+
const auto emitter = std::dynamic_pointer_cast<const react::ViewEventEmitter>(node(rt, tag)->getEventEmitter());
|
|
98443
|
+
if (emitter) emitter->dispatchEvent(std::move(type), jsi::dynamicFromValue(rt, payload));
|
|
98444
|
+
}
|
|
98445
|
+
|
|
98446
|
+
void publish(jsi::Runtime &rt, const react::ShadowViewMutation &mutation, const jsi::Function &apply) const {
|
|
98447
|
+
using Mutation = react::ShadowViewMutation;
|
|
98448
|
+
if (mutation.type != Mutation::Insert && mutation.type != Mutation::Update) return;
|
|
98449
|
+
const auto &view = mutation.newChildShadowView;
|
|
98450
|
+
const auto found = nodes_.find(view.tag);
|
|
98451
|
+
if (found == nodes_.end()) return;
|
|
98452
|
+
const auto newest = manager_->getNewestCloneOfShadowNode(*found->second);
|
|
98453
|
+
const auto *target = dynamic_cast<const react::LayoutableShadowNode *>(newest.get());
|
|
98454
|
+
if (!target) return;
|
|
98455
|
+
const react::ShadowNode *parent = nullptr;
|
|
98456
|
+
if (mutation.parentTag != surface_) {
|
|
98457
|
+
const auto mountedParent = nodes_.find(mutation.parentTag);
|
|
98458
|
+
if (mountedParent != nodes_.end()) parent = mountedParent->second.get();
|
|
98459
|
+
}
|
|
98460
|
+
auto layout = jsi::Value::null();
|
|
98461
|
+
// fabric's differ includes the offsets of ancestors it flattens into the mount parent.
|
|
98462
|
+
const auto targetMetrics = mutation.parentTag == surface_ || parent
|
|
98463
|
+
? manager_->getRelativeLayoutMetrics(*target, parent, {.includeTransform = false})
|
|
98464
|
+
: react::EmptyLayoutMetrics;
|
|
98465
|
+
if (targetMetrics != react::EmptyLayoutMetrics && view.layoutMetrics.frame != targetMetrics.frame) {
|
|
98466
|
+
const auto &frame = view.layoutMetrics.frame;
|
|
98467
|
+
const auto &targetFrame = targetMetrics.frame;
|
|
98468
|
+
auto rect = jsi::Array(rt, 8);
|
|
98469
|
+
double dimensions[] = {frame.origin.x, frame.origin.y, frame.size.width, frame.size.height,
|
|
98470
|
+
targetFrame.origin.x, targetFrame.origin.y, targetFrame.size.width, targetFrame.size.height};
|
|
98471
|
+
for (size_t i = 0; i < 8; ++i) rect.setValueAtIndex(rt, i, dimensions[i]);
|
|
98472
|
+
layout = std::move(rect);
|
|
98473
|
+
}
|
|
98474
|
+
auto props = jsi::Object(rt);
|
|
98475
|
+
if (const auto *style = dynamic_cast<const react::BaseViewProps *>(view.props.get())) {
|
|
98476
|
+
const auto *targetStyle = dynamic_cast<const react::BaseViewProps *>(target->getProps().get());
|
|
98477
|
+
if (targetStyle && style->opacity != targetStyle->opacity) props.setProperty(rt, "opacity", style->opacity);
|
|
98478
|
+
if (targetStyle && style->transform != targetStyle->transform) {
|
|
98479
|
+
auto matrix = jsi::Array(rt, 16);
|
|
98480
|
+
const auto transform = style->resolveTransform(view.layoutMetrics);
|
|
98481
|
+
for (size_t i = 0; i < 16; ++i) matrix.setValueAtIndex(rt, i, transform.matrix[i]);
|
|
98482
|
+
auto operation = jsi::Object(rt);
|
|
98483
|
+
operation.setProperty(rt, "matrix", std::move(matrix));
|
|
98484
|
+
auto entries = jsi::Array(rt, 1);
|
|
98485
|
+
entries.setValueAtIndex(rt, 0, std::move(operation));
|
|
98486
|
+
props.setProperty(rt, "transform", std::move(entries));
|
|
98487
|
+
}
|
|
98488
|
+
}
|
|
98489
|
+
apply.call(rt, view.tag, std::move(props), std::move(layout));
|
|
98490
|
+
}
|
|
98491
|
+
|
|
98492
|
+
private:
|
|
98493
|
+
AppNode node(jsi::Runtime &rt, react::Tag tag) const {
|
|
98494
|
+
if (tag == surface_) {
|
|
98495
|
+
AppNode root;
|
|
98496
|
+
manager_->getShadowTreeRegistry().visit(surface_, [&](const react::ShadowTree &tree) {
|
|
98497
|
+
root = tree.getCurrentRevision().rootShadowNode;
|
|
98498
|
+
});
|
|
98499
|
+
if (root) return root;
|
|
98500
|
+
}
|
|
98501
|
+
auto found = nodes_.find(tag);
|
|
98502
|
+
if (found == nodes_.end()) throw jsi::JSError(rt, "Fabric view is absent from its committed surface");
|
|
98503
|
+
if (auto current = manager_->getNewestCloneOfShadowNode(*found->second)) return current;
|
|
98504
|
+
return found->second;
|
|
98505
|
+
}
|
|
98506
|
+
|
|
98507
|
+
std::shared_ptr<AppChildren> readChildren(jsi::Runtime &rt, const jsi::Array &values,
|
|
98508
|
+
std::unordered_map<react::Tag, AppNode> &next) const {
|
|
98509
|
+
auto children = std::make_shared<AppChildren>();
|
|
98510
|
+
children->reserve(values.size(rt));
|
|
98511
|
+
for (size_t i = 0; i < values.size(rt); ++i) {
|
|
98512
|
+
auto row = values.getValueAtIndex(rt, i).asObject(rt).asArray(rt);
|
|
98513
|
+
if (row.size(rt) != 5) throw jsi::JSError(rt, "invalid Fabric view in app commit");
|
|
98514
|
+
const auto tag = static_cast<react::Tag>(row.getValueAtIndex(rt, 0).asNumber());
|
|
98515
|
+
const auto component = row.getValueAtIndex(rt, 1).asString(rt).utf8(rt);
|
|
98516
|
+
const auto properties = row.getValueAtIndex(rt, 2);
|
|
98517
|
+
const auto instance = row.getValueAtIndex(rt, 3);
|
|
98518
|
+
auto descendants = readChildren(rt, row.getValueAtIndex(rt, 4).asObject(rt).asArray(rt), next);
|
|
98519
|
+
auto existing = nodes_.find(tag);
|
|
98520
|
+
AppNode view;
|
|
98521
|
+
if (existing == nodes_.end()) {
|
|
98522
|
+
auto initial = manager_->createNode(tag, component, surface_, react::RawProps(rt, properties),
|
|
98523
|
+
std::make_shared<react::InstanceHandle>(rt, instance, tag));
|
|
98524
|
+
for (const auto &child : *descendants) manager_->appendChild(initial, child);
|
|
98525
|
+
view = std::move(initial);
|
|
98526
|
+
} else {
|
|
98527
|
+
view = manager_->cloneNode(*existing->second, descendants, react::RawProps(rt, properties));
|
|
98528
|
+
}
|
|
98529
|
+
if (!next.emplace(tag, view).second) throw jsi::JSError(rt, "duplicate Fabric view tag in app commit");
|
|
98530
|
+
children->push_back(std::move(view));
|
|
98531
|
+
}
|
|
98532
|
+
return children;
|
|
98533
|
+
}
|
|
98534
|
+
|
|
98535
|
+
std::shared_ptr<react::UIManager> manager_;
|
|
98536
|
+
const react::ContextContainer &context_;
|
|
98537
|
+
react::SurfaceId surface_ = 0;
|
|
98538
|
+
react::LayoutConstraints constraints_;
|
|
98539
|
+
react::LayoutContext layout_;
|
|
98540
|
+
std::unordered_map<react::Tag, AppNode> nodes_;
|
|
98541
|
+
};
|
|
98542
|
+
|
|
98543
|
+
PeachAppSurfacePresenter *appSurfacePresenter;
|
|
98544
|
+
std::unique_ptr<PeachAppShadowTree> appShadowTree;
|
|
98545
|
+
std::optional<jsi::Function> appMountHandler;
|
|
98546
|
+
std::optional<jsi::Function> appPropsHandler;
|
|
98547
|
+
std::optional<jsi::Function> appCommandHandler;
|
|
98548
|
+
}
|
|
98549
|
+
|
|
98550
|
+
id peachAppSurfacePresenter() {
|
|
98551
|
+
return appSurfacePresenter;
|
|
98552
|
+
}
|
|
98553
|
+
`;
|
|
98554
|
+
FABRIC_APP_INSTALL = `
|
|
98555
|
+
react::RuntimeExecutor execute = [invoker = fabricInvoker](std::function<void(jsi::Runtime &)> &&work) {
|
|
98556
|
+
using RuntimeBlock = void (^)(jsi::Runtime &);
|
|
98557
|
+
if (const auto *block = work.target<RuntimeBlock>()) {
|
|
98558
|
+
// stack blocks need a copy before the executor can queue them.
|
|
98559
|
+
RuntimeBlock owned = (__bridge_transfer RuntimeBlock)_Block_copy((__bridge const void *)*block);
|
|
98560
|
+
work = [owned](jsi::Runtime &rt) { owned(rt); };
|
|
98561
|
+
}
|
|
98562
|
+
invoker->invokeAsync(std::move(work));
|
|
98563
|
+
};
|
|
98564
|
+
appSurfacePresenter = [[PeachAppSurfacePresenter alloc] initWithContextContainer:fabricContext
|
|
98565
|
+
runtimeExecutor:execute bridgelessBindingsExecutor:execute];
|
|
98566
|
+
appShadowTree = std::make_unique<PeachAppShadowTree>(appSurfacePresenter.scheduler.uiManager, *fabricContext);
|
|
98567
|
+
appSurfacePresenter.publishMount = [execute](const react::MountingTransaction &transaction) {
|
|
98568
|
+
execute([surface = transaction.getSurfaceId(), mutations = transaction.getMutations()](jsi::Runtime &rt) {
|
|
98569
|
+
if (appShadowTree && appMountHandler) {
|
|
98570
|
+
for (const auto &mutation : mutations) appShadowTree->publish(rt, mutation, *appMountHandler);
|
|
98571
|
+
[appSurfacePresenter.scheduler reportMount:surface];
|
|
98572
|
+
}
|
|
98573
|
+
});
|
|
98574
|
+
};
|
|
98575
|
+
appSurfacePresenter.publishProps = [execute](react::Tag tag, folly::dynamic props) {
|
|
98576
|
+
execute([tag, props = std::move(props)](jsi::Runtime &rt) {
|
|
98577
|
+
if (appPropsHandler) appPropsHandler->call(rt, tag, jsi::valueFromDynamic(rt, props));
|
|
98578
|
+
});
|
|
98579
|
+
};
|
|
98580
|
+
appSurfacePresenter.dispatchCommand = [execute](react::Tag tag, const std::string &name, const folly::dynamic &args) {
|
|
98581
|
+
execute([tag, name, args](jsi::Runtime &rt) {
|
|
98582
|
+
if (appCommandHandler) appCommandHandler->call(rt, tag, jsi::String::createFromUtf8(rt, name), jsi::valueFromDynamic(rt, args));
|
|
98583
|
+
});
|
|
98584
|
+
};
|
|
98585
|
+
`;
|
|
98586
|
+
FABRIC_APP_METHODS = `
|
|
98587
|
+
method("commitApp", 6, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
98588
|
+
appShadowTree->commit(rt, static_cast<react::SurfaceId>(args[0].asNumber()), args[1].asNumber(),
|
|
98589
|
+
args[2].asNumber(), args[3].asNumber(), args[4].getBool(), args[5].asObject(rt).asArray(rt));
|
|
98590
|
+
return jsi::Value::undefined();
|
|
98591
|
+
});
|
|
98592
|
+
method("setAppHandlers", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
98593
|
+
appMountHandler = args[0].asObject(rt).asFunction(rt);
|
|
98594
|
+
appPropsHandler = args[1].asObject(rt).asFunction(rt);
|
|
98595
|
+
appCommandHandler = args[2].asObject(rt).asFunction(rt);
|
|
98596
|
+
return jsi::Value::undefined();
|
|
98597
|
+
});
|
|
98598
|
+
method("dispatchAppEvent", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
98599
|
+
appShadowTree->dispatch(rt, static_cast<react::Tag>(args[0].asNumber()), args[1].asString(rt).utf8(rt), args[2]);
|
|
98600
|
+
return jsi::Value::undefined();
|
|
98601
|
+
});
|
|
98602
|
+
constexpr auto *shadowFactory = "peachCreateFabricShadowHandle";
|
|
98603
|
+
rt.global().setProperty(rt, shadowFactory, jsi::Function::createFromHostFunction(rt,
|
|
98604
|
+
jsi::PropNameID::forAscii(rt, shadowFactory), 3,
|
|
98605
|
+
[](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
98606
|
+
return appShadowTree->handle(rt, static_cast<react::Tag>(args[0].asNumber()), args[1], args[2]);
|
|
98607
|
+
}));
|
|
98608
|
+
`;
|
|
98609
|
+
FABRIC_APP_TEARDOWN = `
|
|
98610
|
+
appShadowTree.reset();
|
|
98611
|
+
appMountHandler.reset();
|
|
98612
|
+
appPropsHandler.reset();
|
|
98613
|
+
appCommandHandler.reset();
|
|
98614
|
+
appSurfacePresenter = nil;
|
|
98615
|
+
`;
|
|
98616
|
+
}
|
|
98617
|
+
});
|
|
98618
|
+
|
|
98334
98619
|
// src/turbo-source.ts
|
|
98335
98620
|
function codegenSpecRoot(codegen) {
|
|
98336
98621
|
const nested = import_node_path120.default.join(codegen, "ReactCodegen");
|
|
@@ -99513,6 +99798,7 @@ async function collectTurboSources(options2) {
|
|
|
99513
99798
|
};
|
|
99514
99799
|
let objc = Boolean(options2.reactNativeProvider);
|
|
99515
99800
|
let fabric = Boolean(options2.reactNativeProvider);
|
|
99801
|
+
let appPresenter = false;
|
|
99516
99802
|
const fabricPackages = /* @__PURE__ */ new Set();
|
|
99517
99803
|
const fabricViews = [];
|
|
99518
99804
|
let fabricTarget = null;
|
|
@@ -99650,6 +99936,11 @@ async function collectTurboSources(options2) {
|
|
|
99650
99936
|
providerObjC = true;
|
|
99651
99937
|
const stripped2 = stripComments(text7);
|
|
99652
99938
|
if (OBJC_TURBO.test(stripped2) || OBJC_BRIDGE.test(stripped2)) {
|
|
99939
|
+
if (/-\s*\(\s*void\s*\)\s*setSurfacePresenter\s*:/.test(stripped2)) {
|
|
99940
|
+
fabric = true;
|
|
99941
|
+
appPresenter = true;
|
|
99942
|
+
fabricTarget ??= { targetName, label, root: provider.root };
|
|
99943
|
+
}
|
|
99653
99944
|
const registers2 = OBJC_REGISTERED.test(stripped2);
|
|
99654
99945
|
for (const [, className2] of stripped2.matchAll(/@implementation\s+(\w+)/g))
|
|
99655
99946
|
if (!managers.has(className2)) {
|
|
@@ -100105,7 +100396,7 @@ async function collectTurboSources(options2) {
|
|
|
100105
100396
|
if (fabricPackages.has(owner))
|
|
100106
100397
|
fabricViews.push({ name: name3, className: className2 });
|
|
100107
100398
|
}
|
|
100108
|
-
const hostTarget = (fabricViews.length > 0 ? fabricTarget : null) ?? (paperClasses.length > 0 ? paperTarget : null);
|
|
100399
|
+
const hostTarget = (fabricViews.length > 0 ? fabricTarget : null) ?? (paperClasses.length > 0 ? paperTarget : null) ?? (appPresenter ? fabricTarget : null);
|
|
100109
100400
|
if (hostTarget) {
|
|
100110
100401
|
result.fabricComponents = fabricViews.map(({ name: name3 }) => name3);
|
|
100111
100402
|
result.paperViewManagers = [...new Set(paperClasses)].sort();
|
|
@@ -100139,7 +100430,7 @@ async function collectTurboSources(options2) {
|
|
|
100139
100430
|
}
|
|
100140
100431
|
}
|
|
100141
100432
|
const unit2 = `${targetPath(hostTarget.targetName)}/PeachFabricHost.mm`;
|
|
100142
|
-
add(unit2, fabricHostSource(fabricViews, result.paperViewManagers));
|
|
100433
|
+
add(unit2, fabricHostSource(fabricViews, result.paperViewManagers, appPresenter));
|
|
100143
100434
|
scanText(
|
|
100144
100435
|
{ key: unit2, ...hostTarget, relative: "PeachFabricHost.mm" },
|
|
100145
100436
|
result.files[unit2]
|
|
@@ -100577,6 +100868,7 @@ RCT_EXPORT_METHOD(load:(NSString *)uri
|
|
|
100577
100868
|
extern "C" void RCTRegisterModule(Class);
|
|
100578
100869
|
static PeachTurboModuleDelegate *delegate;
|
|
100579
100870
|
static RCTTurboModuleManager *manager;
|
|
100871
|
+
id peachAppSurfacePresenter() __attribute__((weak));
|
|
100580
100872
|
|
|
100581
100873
|
@implementation PeachTurboModuleDelegate
|
|
100582
100874
|
|
|
@@ -100601,6 +100893,9 @@ static RCTTurboModuleManager *manager;
|
|
|
100601
100893
|
- (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass
|
|
100602
100894
|
{
|
|
100603
100895
|
id<RCTTurboModule> module = [moduleClass new];
|
|
100896
|
+
if (peachAppSurfacePresenter && [module respondsToSelector:@selector(setSurfacePresenter:)]) {
|
|
100897
|
+
[module performSelector:@selector(setSurfacePresenter:) withObject:peachAppSurfacePresenter()];
|
|
100898
|
+
}
|
|
100604
100899
|
if ([module respondsToSelector:@selector(setDispatchToJSThread:)])
|
|
100605
100900
|
((id<RCTJSDispatcherModule>)module).dispatchToJSThread = ^(dispatch_block_t block) {
|
|
100606
100901
|
dispatchToJSThread(block);
|
|
@@ -100676,8 +100971,8 @@ ${hasEventDispatcher ? " if (![RCTGetModuleClasses() containsObject:[RCTEventDi
|
|
|
100676
100971
|
auto& runtime = peach::jsi_runtime::create(
|
|
100677
100972
|
[] { invoker->drain(); },
|
|
100678
100973
|
[] {
|
|
100679
|
-
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
100680
100974
|
[manager invalidate];
|
|
100975
|
+
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
100681
100976
|
manager = nil;
|
|
100682
100977
|
delegate = nil;
|
|
100683
100978
|
invoker.reset();
|
|
@@ -100783,12 +101078,13 @@ ${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProvi
|
|
|
100783
101078
|
}
|
|
100784
101079
|
`;
|
|
100785
101080
|
}
|
|
100786
|
-
function fabricHostSource(views, paperClasses) {
|
|
101081
|
+
function fabricHostSource(views, paperClasses, appPresenter) {
|
|
100787
101082
|
const entries2 = views.map(
|
|
100788
101083
|
({ name: name3, className: className2 }) => `@${JSON.stringify(name3)}: NSClassFromString(@${JSON.stringify(className2)})`
|
|
100789
101084
|
).join(", ");
|
|
100790
101085
|
const paper = paperClasses.length > 0;
|
|
100791
|
-
return `${FABRIC_HOST_INCLUDES}${paper ? FABRIC_HOST_PAPER_INCLUDES : ""}
|
|
101086
|
+
return `${FABRIC_HOST_INCLUDES}${paper ? FABRIC_HOST_PAPER_INCLUDES : ""}${appPresenter ? FABRIC_APP_INCLUDES : ""}
|
|
101087
|
+
${appPresenter ? FABRIC_APP_PRESENTER : ""}
|
|
100792
101088
|
@interface PeachFabricComponents : NSObject <RCTComponentViewFactoryComponentProvider>
|
|
100793
101089
|
@end
|
|
100794
101090
|
|
|
@@ -101388,8 +101684,8 @@ void applyFabricFocus() {
|
|
|
101388
101684
|
fabricFocusField = [[UITextField alloc] initWithFrame:CGRectZero];
|
|
101389
101685
|
fabricFocusField.backgroundColor = nil;
|
|
101390
101686
|
fabricFocusField.opaque = NO;
|
|
101391
|
-
|
|
101392
|
-
fabricFocusField.
|
|
101687
|
+
// the browser already owns and draws the guest text editor.
|
|
101688
|
+
fabricFocusField.hidden = YES;
|
|
101393
101689
|
}
|
|
101394
101690
|
if (fabricFocusField.superview != container) {
|
|
101395
101691
|
[container addSubview:fabricFocusField];
|
|
@@ -101528,7 +101824,8 @@ static void peachEventDispatcherDispatchEvent(id self, SEL _cmd, id<RCTEvent> ev
|
|
|
101528
101824
|
NSNumber *reactTag = event.viewTag;
|
|
101529
101825
|
if (!reactTag) return;
|
|
101530
101826
|
auto found = fabricViews.find(reactTag.intValue);
|
|
101531
|
-
if (found == fabricViews.end() || !found->second.family
|
|
101827
|
+
if (found == fabricViews.end() || !found->second.family ||
|
|
101828
|
+
!dynamic_cast<const react::LegacyViewManagerInteropComponentDescriptor *>(found->second.descriptor)) return;
|
|
101532
101829
|
NSArray *args = [event arguments];
|
|
101533
101830
|
NSString *eventName = args.count >= 2 && [args[1] isKindOfClass:[NSString class]]
|
|
101534
101831
|
? args[1]
|
|
@@ -101808,6 +102105,7 @@ ${paper ? ` // Register missing Objective-C selectors on UIKit/QuartzCore class
|
|
|
101808
102105
|
std::weak_ptr<react::EventLogger>());
|
|
101809
102106
|
react::ComponentDescriptorParameters parameters{fabricDispatcher, fabricContext, nullptr};
|
|
101810
102107
|
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
102108
|
+
${appPresenter ? FABRIC_APP_INSTALL : ""}
|
|
101811
102109
|
auto views = jsi::Object(rt);
|
|
101812
102110
|
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
101813
102111
|
views.setProperty(
|
|
@@ -101832,6 +102130,7 @@ ${paper ? ` // Register missing Objective-C selectors on UIKit/QuartzCore class
|
|
|
101832
102130
|
}
|
|
101833
102131
|
}));
|
|
101834
102132
|
};
|
|
102133
|
+
${appPresenter ? FABRIC_APP_METHODS : ""}
|
|
101835
102134
|
// create(name, instanceHandle, props), Create then Insert: the family the
|
|
101836
102135
|
// handle's events resolve through, the first props, the initial state, and
|
|
101837
102136
|
// the layout the view has before the engine measures it
|
|
@@ -102192,6 +102491,7 @@ void peachTeardownFabricViews() {
|
|
|
102192
102491
|
fabricFocusParentTag = 0;
|
|
102193
102492
|
fabricOwner.reset();
|
|
102194
102493
|
fabricEventHandler.reset();
|
|
102494
|
+
${appPresenter ? FABRIC_APP_TEARDOWN : ""}
|
|
102195
102495
|
}
|
|
102196
102496
|
|
|
102197
102497
|
extern "C" void *peach_fabric_view_content(int tag) {
|
|
@@ -102223,6 +102523,7 @@ var init_turbo_source = __esm({
|
|
|
102223
102523
|
init_swift_source_file();
|
|
102224
102524
|
init_swiftContract();
|
|
102225
102525
|
init_turbo_codegen_intake();
|
|
102526
|
+
init_turbo_fabric_app();
|
|
102226
102527
|
init_xcode_project();
|
|
102227
102528
|
TURBO_CORE_TARGET = "TurboCore";
|
|
102228
102529
|
TURBO_FMT_TARGET = "TurboFmt";
|
|
@@ -102482,6 +102783,7 @@ using namespace facebook;
|
|
|
102482
102783
|
#import <React/RCTUIManager.h>
|
|
102483
102784
|
#import <React/RCTUtils.h>
|
|
102484
102785
|
#import <React/RCTViewManager.h>
|
|
102786
|
+
#include <react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h>
|
|
102485
102787
|
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
102486
102788
|
#include <react/renderer/core/ShadowNodeFragment.h>
|
|
102487
102789
|
#include <react/utils/FollyConvert.h>
|
|
@@ -103734,7 +104036,7 @@ var init_react_native_core = __esm({
|
|
|
103734
104036
|
init_swift_distribution();
|
|
103735
104037
|
init_swift_package();
|
|
103736
104038
|
init_swiftContract();
|
|
103737
|
-
recipe = true ? "
|
|
104039
|
+
recipe = true ? "b2d8e8b1745ba77949b505349e0d2df2c8c7d5278f40b158ef495abf8beb48ad" : reactNativeCoreDigest(__sootsim_import_meta_dirname);
|
|
103738
104040
|
strings3 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
103739
104041
|
building = /* @__PURE__ */ new Map();
|
|
103740
104042
|
}
|
|
@@ -105929,7 +106231,7 @@ var init_expo_eager_seam_contract = __esm({
|
|
|
105929
106231
|
|
|
105930
106232
|
// src/expo-native-compiler-digest.ts
|
|
105931
106233
|
function expoNativeCompilerDigestValue() {
|
|
105932
|
-
return true ? "
|
|
106234
|
+
return true ? "d8792f4d98f1d0a3ef5b81e8b04fa17864b4db2bcee129125e336aeb373f3d2c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
105933
106235
|
}
|
|
105934
106236
|
var import_node_crypto80;
|
|
105935
106237
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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.2664 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
RNX_SCREEN_CAPTURE_VERSION,
|
|
4
4
|
describeInvalidScreenCapture,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
rnxRasterFrames,
|
|
11
11
|
rnxRasterRegionRequests,
|
|
12
12
|
selectRnxRasterNodeIds
|
|
13
|
-
} from "./esm-chunks/chunk-
|
|
14
|
-
import "./esm-chunks/chunk-
|
|
13
|
+
} from "./esm-chunks/chunk-XRVX2ZRS.mjs";
|
|
14
|
+
import "./esm-chunks/chunk-ZPGI2MXX.mjs";
|
|
15
15
|
export {
|
|
16
16
|
RNX_SCREEN_CAPTURE_VERSION,
|
|
17
17
|
describeInvalidScreenCapture,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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.2664 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
AGENT_IDENTITY_MAX_CHARS,
|
|
4
4
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
readRnxLaunchUrl,
|
|
32
32
|
rnxCloudCommandScope,
|
|
33
33
|
rnxCloudScopesAllowCommand
|
|
34
|
-
} from "./esm-chunks/chunk-
|
|
35
|
-
import "./esm-chunks/chunk-
|
|
34
|
+
} from "./esm-chunks/chunk-KXGHURRU.mjs";
|
|
35
|
+
import "./esm-chunks/chunk-ZPGI2MXX.mjs";
|
|
36
36
|
export {
|
|
37
37
|
AGENT_IDENTITY_MAX_CHARS,
|
|
38
38
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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.2664 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-ZPGI2MXX.mjs";
|
|
3
3
|
|
|
4
4
|
// src/cloud-test-args.ts
|
|
5
5
|
var CLOUD_TEST_ARGS_MAX_COUNT = 32;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2664 | (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;
|