peachsim 0.1.1654 → 0.1.1659
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/app-config.ts +4 -0
- package/cli/app-stubs.ts +43 -6
- package/cli/commands/inspect/shared.ts +5 -2
- package/cli/commands/inspect/url.ts +2 -1
- package/cli/commands/screenshot.ts +5 -5
- package/cli/commands/state.ts +9 -6
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/output-redaction.ts +49 -0
- 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 +11485 -1316
- 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 +29 -5
- package/dist-lib/config.mjs +29 -5
- package/dist-lib/detox/index.cjs +19 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +9194 -327
- 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 +10137 -1043
- package/dist-lib/host/fetch-proxy-handler.cjs +260 -182
- 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 +653 -338
- 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 +443 -312
- 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 +548 -163
- package/dist-lib/native-app-identity-project.cjs +179 -33
- package/dist-lib/native-app-identity-project.mjs +179 -33
- 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/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 +23 -23
- package/dist-lib/public-origins-lib.json +96 -63
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +10885 -1596
- package/dist-lib/swift-compile.cjs +9036 -331
- package/dist-lib/swift-compile.mjs +9036 -331
- 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 +9194 -327
- package/dist-lib/vite.cjs +149 -163
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/app-font-registry.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +21 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-seam-protocol.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +25 -0
- package/kotlin/README.md +38 -23
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -12
- package/runtime-companion.json +1 -1
- package/src/bundleGlobalFooter.ts +0 -2
- package/src/config.ts +54 -2
- package/src/configured-bundle-producer.ts +7 -1
- package/src/host/fetch-proxy-handler.ts +14 -33
- package/src/host/rolldown-bundle-forward.ts +71 -0
- package/src/installed-package-versions.ts +54 -2
- package/src/kotlin-host.ts +138 -285
- package/src/kotlin-module.ts +4 -7
- package/src/kotlin-sdk.ts +81 -0
- package/src/kotlin-toolchain.ts +152 -0
- package/src/kotlin-view-models.ts +1 -1
- package/src/kotlinSdkContract.ts +113 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/nitro-bundle.ts +18 -4
- package/src/nitro-compile.ts +5 -1
- package/src/nitro-source.ts +112 -28
- package/src/nitroContract.ts +16 -4
- package/src/swift-compile.ts +295 -237
- package/src/swift-host.ts +2 -1
- package/src/swift-objc-compile.ts +117 -4
- package/src/swift-objc-sdk.ts +8792 -135
- package/src/swift-objc-standin.ts +1 -0
- package/src/swiftContract.ts +2 -0
- package/src/vite-plugin-one.ts +73 -134
- package/src/worker-system-chunks.ts +14 -4
- package/src/xcode-project.ts +261 -34
- package/kotlin/AndroidViewSources/android/content/Context.kt +0 -22
- package/kotlin/AndroidViewSources/android/content/res/Configuration.kt +0 -25
- package/kotlin/AndroidViewSources/android/content/res/Resources.kt +0 -72
- package/kotlin/AndroidViewSources/android/graphics/Canvas.kt +0 -22
- package/kotlin/AndroidViewSources/android/graphics/Color.kt +0 -13
- package/kotlin/AndroidViewSources/android/graphics/Paint.kt +0 -18
- package/kotlin/AndroidViewSources/android/util/DisplayMetrics.kt +0 -12
- package/kotlin/AndroidViewSources/android/view/View.kt +0 -211
- package/kotlin/AndroidViewSources/android/widget/FrameLayout.kt +0 -61
- package/kotlin/AndroidViewSources/android/widget/LinearLayout.kt +0 -49
- package/kotlin/AndroidViewSources/dev/peach/app/JavaFormat.kt +0 -272
- package/kotlin/AppSources/android/app/Activity.kt +0 -174
- package/kotlin/AppSources/android/app/Application.kt +0 -11
- package/kotlin/AppSources/android/app/UiModeManager.kt +0 -9
- package/kotlin/AppSources/android/content/Intent.kt +0 -16
- package/kotlin/AppSources/android/os/Bundle.kt +0 -11
- package/kotlin/AppSources/android/util/SuperNotCalledException.kt +0 -3
- package/kotlin/AppSources/android/view/Window.kt +0 -182
- package/kotlin/AppSources/android/view/WindowInsets.kt +0 -9
- package/kotlin/AppSources/android/view/WindowInsetsController.kt +0 -17
- package/kotlin/AppSources/android/view/WindowManager.kt +0 -16
- package/kotlin/AppSources/android/window/BackEvent.kt +0 -24
- package/kotlin/AppSources/android/window/OnBackAnimationCallback.kt +0 -7
- package/kotlin/AppSources/android/window/OnBackInvokedDispatcher.kt +0 -84
- package/kotlin/AppSources/androidx/activity/ActivityFlags.kt +0 -9
- package/kotlin/AppSources/androidx/activity/ActivityViewModelLazy.kt +0 -21
- package/kotlin/AppSources/androidx/activity/BackEventCompat.kt +0 -43
- package/kotlin/AppSources/androidx/activity/ComponentActivity.kt +0 -122
- package/kotlin/AppSources/androidx/activity/EdgeToEdge.kt +0 -75
- package/kotlin/AppSources/androidx/activity/ExperimentalActivityApi.kt +0 -6
- package/kotlin/AppSources/androidx/activity/OnBackPressedCallback.kt +0 -69
- package/kotlin/AppSources/androidx/activity/OnBackPressedDispatcher.kt +0 -144
- package/kotlin/AppSources/androidx/activity/OnBackPressedDispatcherOwner.kt +0 -7
- package/kotlin/AppSources/androidx/activity/compose/BackHandler.kt +0 -86
- package/kotlin/AppSources/androidx/activity/compose/ComponentActivity.kt +0 -29
- package/kotlin/AppSources/androidx/activity/compose/internal/BackHandlerCompat.kt +0 -38
- package/kotlin/AppSources/androidx/activity/compose/internal/BackHandlerDispatcherCompat.kt +0 -27
- package/kotlin/AppSources/androidx/compose/foundation/layout/WindowInsets.kt +0 -15
- package/kotlin/AppSources/androidx/compose/ui/platform/AndroidCompositionLocals.kt +0 -27
- package/kotlin/AppSources/androidx/compose/ui/platform/ComposeView.kt +0 -68
- package/kotlin/AppSources/androidx/compose/ui/res/ColorResources.kt +0 -16
- package/kotlin/AppSources/androidx/compose/ui/res/PainterResources.kt +0 -70
- package/kotlin/AppSources/androidx/compose/ui/res/StringResources.kt +0 -38
- package/kotlin/AppSources/androidx/core/view/WindowCompat.kt +0 -32
- package/kotlin/AppSources/androidx/lifecycle/AndroidViewModel.kt +0 -10
- package/kotlin/AppSources/dev/peach/app/PeachApp.kt +0 -388
- package/kotlin/AppSources/dev/peach/app/PeachDrawable.kt +0 -102
- package/kotlin/AppSources/dev/peach/app/PeachWindowHost.kt +0 -14
- package/kotlin/CompilerSources/META-INF/services/org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar +0 -1
- package/kotlin/CompilerSources/PeachJniIncoming.kt +0 -243
- package/kotlin/CompilerSources/PeachJniPlugin.kt +0 -116
- package/kotlin/ComposeSources/PeachComposeHost.kt +0 -724
- package/kotlin/ComposeSources/PeachMagnifier.kt +0 -185
- package/kotlin/ComposeSources/PeachSemantics.kt +0 -127
- package/kotlin/ExpoComposeSources/PeachAndroidView.kt +0 -103
- package/kotlin/ExpoComposeSources/PeachExpoViewMount.kt +0 -24
- package/kotlin/ExpoComposeSources/dev/peach/expo/PeachExpoCompose.kt +0 -28
- package/kotlin/ExpoComposeSources/expo/modules/kotlin/views/ExpoComposeView.kt +0 -70
- package/kotlin/ExpoSources/dev/peach/expo/PeachExpoRuntime.kt +0 -516
- package/kotlin/ExpoSources/dev/peach/expo/PeachExpoTypes.kt +0 -173
- package/kotlin/ExpoSources/expo/modules/kotlin/AppContext.kt +0 -20
- package/kotlin/ExpoSources/expo/modules/kotlin/Promise.kt +0 -19
- package/kotlin/ExpoSources/expo/modules/kotlin/classcomponent/ClassComponentBuilder.kt +0 -198
- package/kotlin/ExpoSources/expo/modules/kotlin/exception/CodedException.kt +0 -126
- package/kotlin/ExpoSources/expo/modules/kotlin/functions/Functions.kt +0 -132
- package/kotlin/ExpoSources/expo/modules/kotlin/jni/JavaScriptTypedArray.kt +0 -81
- package/kotlin/ExpoSources/expo/modules/kotlin/modules/Module.kt +0 -98
- package/kotlin/ExpoSources/expo/modules/kotlin/objects/ObjectDefinitionBuilder.kt +0 -236
- package/kotlin/ExpoSources/expo/modules/kotlin/records/Record.kt +0 -12
- package/kotlin/ExpoSources/expo/modules/kotlin/runtime/Runtime.kt +0 -9
- package/kotlin/ExpoSources/expo/modules/kotlin/sharedobjects/SharedObject.kt +0 -50
- package/kotlin/ExpoSources/expo/modules/kotlin/sharedobjects/SharedObjectRegistry.kt +0 -57
- package/kotlin/ExpoSources/expo/modules/kotlin/sharedobjects/SharedRef.kt +0 -19
- package/kotlin/ExpoSources/expo/modules/kotlin/typedarray/ConcreteTypedArrays.kt +0 -158
- package/kotlin/ExpoSources/expo/modules/kotlin/typedarray/GenericTypedArray.kt +0 -8
- package/kotlin/ExpoSources/expo/modules/kotlin/typedarray/TypedArray.kt +0 -29
- package/kotlin/ExpoSources/expo/modules/kotlin/typedarray/TypedArrayIterator.kt +0 -9
- package/kotlin/ExpoSources/expo/modules/kotlin/types/AnyType.kt +0 -155
- package/kotlin/ExpoSources/expo/modules/kotlin/types/Either.kt +0 -91
- package/kotlin/ExpoSources/expo/modules/kotlin/types/Enumerable.kt +0 -6
- package/kotlin/ExpoSources/expo/modules/kotlin/viewevent/ViewEvent.kt +0 -68
- package/kotlin/ExpoSources/expo/modules/kotlin/views/ExpoView.kt +0 -20
- package/kotlin/ExpoSources/expo/modules/kotlin/views/ViewDefinitionBuilder.kt +0 -72
- package/kotlin/ExpoSources/expo/modules/kotlin/views/ViewProps.kt +0 -36
- package/kotlin/JniPlatformSources/androidx/annotation/CallSuper.kt +0 -5
- package/kotlin/JniPlatformSources/com/facebook/proguard/annotations/DoNotStrip.kt +0 -5
- package/kotlin/JniPlatformSources/dalvik/annotation/optimization/FastNative.kt +0 -5
- package/kotlin/JniPlatformSources/kotlin/Synchronized.kt +0 -6
- package/kotlin/JniPlatformSources/kotlin/jvm/JvmField.kt +0 -5
- package/kotlin/JniPlatformSources/kotlin/jvm/JvmStatic.kt +0 -5
- package/kotlin/JniSources/com/facebook/jni/HybridData.kt +0 -66
- package/kotlin/JniSources/dev/peach/jni/IncomingBindings.kt +0 -157
- package/kotlin/JniSources/dev/peach/jni/NativeBindings.kt +0 -77
- package/kotlin/JniTransportSources/dev/peach/jni/integration/JniTransport.kt +0 -89
- package/kotlin/Sources/android/os/Build.kt +0 -17
- package/kotlin/Sources/android/os/Handler.kt +0 -35
- package/kotlin/Sources/android/os/Looper.kt +0 -17
- package/kotlin/Sources/android/os/MessageQueue.kt +0 -56
- package/kotlin/Sources/android/os/SystemClock.kt +0 -14
- package/kotlin/Sources/android/util/Log.kt +0 -64
- package/kotlin/Sources/androidx/annotation/DrawableRes.kt +0 -14
- package/kotlin/Sources/androidx/annotation/Keep.kt +0 -4
- package/kotlin/Sources/dev/onejs/one/OneNativeSourceDispatch.kt +0 -7
- package/kotlin/Sources/dev/onejs/one/OneNativeSourceViewDispatch.kt +0 -13
- package/kotlin/Sources/dev/onejs/one/source/OneModule.kt +0 -4
- package/kotlin/Sources/java/lang/Runnable.kt +0 -6
- package/kotlin/Sources/java/security/MessageDigest.kt +0 -114
- package/kotlin/Sources/java/util/IllegalFormatCodePointException.kt +0 -10
- package/kotlin/Sources/java/util/IllegalFormatException.kt +0 -5
- package/kotlin/Sources/kotlin/text/StringFormat.kt +0 -9
- package/kotlin/Sources/org/json/JSON.kt +0 -307
- package/kotlin/tools/abi-classes.main.kts +0 -41
- package/kotlin/tools/expo-types.main.kts +0 -127
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.1659 | (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.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -92,6 +92,19 @@ function readNativeRenderer(value) {
|
|
|
92
92
|
if (value === "paper" || value === "fabric") return value;
|
|
93
93
|
throw new Error("nativeRenderer must be paper or fabric");
|
|
94
94
|
}
|
|
95
|
+
function isHybridObjectAnswer(answer) {
|
|
96
|
+
return answer === "unsupported" || isRecord(answer) && typeof answer.file === "string" && answer.file.length > 0;
|
|
97
|
+
}
|
|
98
|
+
function isHybridObjects(value) {
|
|
99
|
+
return isRecord(value) && Object.entries(value).every(
|
|
100
|
+
([name, answer]) => name.length > 0 && isHybridObjectAnswer(answer)
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function isPackageHybridObjects(value) {
|
|
104
|
+
return isRecord(value) && Object.entries(value).every(
|
|
105
|
+
([name, answer]) => name.length > 0 && typeof answer === "string" && answer.length > 0 && answer !== "noop"
|
|
106
|
+
);
|
|
107
|
+
}
|
|
95
108
|
function isPackageStubs(value) {
|
|
96
109
|
if (value === "noop") return true;
|
|
97
110
|
if (!isRecord(value)) return false;
|
|
@@ -99,13 +112,19 @@ function isPackageStubs(value) {
|
|
|
99
112
|
(stub) => typeof stub === "string" && stub.length > 0
|
|
100
113
|
)) && (value.views === void 0 || isRecord(value.views) && Object.values(value.views).every(
|
|
101
114
|
(stub) => typeof stub === "string" && stub.length > 0 || isNativeViewSource(stub)
|
|
102
|
-
));
|
|
115
|
+
)) && (value.hybridObjects === void 0 || isPackageHybridObjects(value.hybridObjects));
|
|
103
116
|
}
|
|
104
117
|
var PEACH_CONFIG_QUERY_PARAM = "peachConfig";
|
|
105
118
|
function collectConfiguredFileModules(config) {
|
|
106
119
|
return [
|
|
107
120
|
...new Set(
|
|
108
|
-
[
|
|
121
|
+
[
|
|
122
|
+
"modules",
|
|
123
|
+
"turboModules",
|
|
124
|
+
"nativeModules",
|
|
125
|
+
"nativeViews",
|
|
126
|
+
"nativeHybridObjects"
|
|
127
|
+
].flatMap((key) => {
|
|
109
128
|
const entries = config && Reflect.get(config, key);
|
|
110
129
|
if (!isRecord(entries)) return [];
|
|
111
130
|
return Object.values(entries).flatMap(
|
|
@@ -123,12 +142,13 @@ function isPeachConfig(value) {
|
|
|
123
142
|
"turboModules",
|
|
124
143
|
"nativeModules",
|
|
125
144
|
"nativeViews",
|
|
145
|
+
"nativeHybridObjects",
|
|
126
146
|
"env",
|
|
127
147
|
"network",
|
|
128
148
|
"settings",
|
|
129
149
|
"initialProps",
|
|
130
150
|
"initialState"
|
|
131
|
-
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
151
|
+
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeHybridObjects === void 0 || isHybridObjects(value.nativeHybridObjects)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
132
152
|
(entry) => entry === "noop" || isNativeViewSource(entry) || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
133
153
|
));
|
|
134
154
|
}
|
|
@@ -175,7 +195,7 @@ function hasOwnKeys(value) {
|
|
|
175
195
|
}
|
|
176
196
|
function hasPeachConfig(config) {
|
|
177
197
|
if (!config) return false;
|
|
178
|
-
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
198
|
+
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.nativeHybridObjects) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
179
199
|
}
|
|
180
200
|
function mergePeachConfig(base, override) {
|
|
181
201
|
if (!hasPeachConfig(base) && !hasPeachConfig(override)) return void 0;
|
|
@@ -192,6 +212,10 @@ function mergePeachConfig(base, override) {
|
|
|
192
212
|
...override.nativeModules || {}
|
|
193
213
|
},
|
|
194
214
|
nativeViews: { ...base.nativeViews || {}, ...override.nativeViews || {} },
|
|
215
|
+
nativeHybridObjects: {
|
|
216
|
+
...base.nativeHybridObjects || {},
|
|
217
|
+
...override.nativeHybridObjects || {}
|
|
218
|
+
},
|
|
195
219
|
env: { ...base.env || {}, ...override.env || {} },
|
|
196
220
|
network: {
|
|
197
221
|
remap: { ...base.network?.remap || {}, ...override.network?.remap || {} }
|
package/dist-lib/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../contrast-runtime-delivery/src/version.ts
|
|
4
4
|
function isValidRuntimeVersion(value) {
|
|
@@ -52,6 +52,19 @@ function readNativeRenderer(value) {
|
|
|
52
52
|
if (value === "paper" || value === "fabric") return value;
|
|
53
53
|
throw new Error("nativeRenderer must be paper or fabric");
|
|
54
54
|
}
|
|
55
|
+
function isHybridObjectAnswer(answer) {
|
|
56
|
+
return answer === "unsupported" || isRecord(answer) && typeof answer.file === "string" && answer.file.length > 0;
|
|
57
|
+
}
|
|
58
|
+
function isHybridObjects(value) {
|
|
59
|
+
return isRecord(value) && Object.entries(value).every(
|
|
60
|
+
([name, answer]) => name.length > 0 && isHybridObjectAnswer(answer)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function isPackageHybridObjects(value) {
|
|
64
|
+
return isRecord(value) && Object.entries(value).every(
|
|
65
|
+
([name, answer]) => name.length > 0 && typeof answer === "string" && answer.length > 0 && answer !== "noop"
|
|
66
|
+
);
|
|
67
|
+
}
|
|
55
68
|
function isPackageStubs(value) {
|
|
56
69
|
if (value === "noop") return true;
|
|
57
70
|
if (!isRecord(value)) return false;
|
|
@@ -59,13 +72,19 @@ function isPackageStubs(value) {
|
|
|
59
72
|
(stub) => typeof stub === "string" && stub.length > 0
|
|
60
73
|
)) && (value.views === void 0 || isRecord(value.views) && Object.values(value.views).every(
|
|
61
74
|
(stub) => typeof stub === "string" && stub.length > 0 || isNativeViewSource(stub)
|
|
62
|
-
));
|
|
75
|
+
)) && (value.hybridObjects === void 0 || isPackageHybridObjects(value.hybridObjects));
|
|
63
76
|
}
|
|
64
77
|
var PEACH_CONFIG_QUERY_PARAM = "peachConfig";
|
|
65
78
|
function collectConfiguredFileModules(config) {
|
|
66
79
|
return [
|
|
67
80
|
...new Set(
|
|
68
|
-
[
|
|
81
|
+
[
|
|
82
|
+
"modules",
|
|
83
|
+
"turboModules",
|
|
84
|
+
"nativeModules",
|
|
85
|
+
"nativeViews",
|
|
86
|
+
"nativeHybridObjects"
|
|
87
|
+
].flatMap((key) => {
|
|
69
88
|
const entries = config && Reflect.get(config, key);
|
|
70
89
|
if (!isRecord(entries)) return [];
|
|
71
90
|
return Object.values(entries).flatMap(
|
|
@@ -83,12 +102,13 @@ function isPeachConfig(value) {
|
|
|
83
102
|
"turboModules",
|
|
84
103
|
"nativeModules",
|
|
85
104
|
"nativeViews",
|
|
105
|
+
"nativeHybridObjects",
|
|
86
106
|
"env",
|
|
87
107
|
"network",
|
|
88
108
|
"settings",
|
|
89
109
|
"initialProps",
|
|
90
110
|
"initialState"
|
|
91
|
-
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
111
|
+
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeHybridObjects === void 0 || isHybridObjects(value.nativeHybridObjects)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
92
112
|
(entry) => entry === "noop" || isNativeViewSource(entry) || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
93
113
|
));
|
|
94
114
|
}
|
|
@@ -135,7 +155,7 @@ function hasOwnKeys(value) {
|
|
|
135
155
|
}
|
|
136
156
|
function hasPeachConfig(config) {
|
|
137
157
|
if (!config) return false;
|
|
138
|
-
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
158
|
+
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.nativeHybridObjects) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
139
159
|
}
|
|
140
160
|
function mergePeachConfig(base, override) {
|
|
141
161
|
if (!hasPeachConfig(base) && !hasPeachConfig(override)) return void 0;
|
|
@@ -152,6 +172,10 @@ function mergePeachConfig(base, override) {
|
|
|
152
172
|
...override.nativeModules || {}
|
|
153
173
|
},
|
|
154
174
|
nativeViews: { ...base.nativeViews || {}, ...override.nativeViews || {} },
|
|
175
|
+
nativeHybridObjects: {
|
|
176
|
+
...base.nativeHybridObjects || {},
|
|
177
|
+
...override.nativeHybridObjects || {}
|
|
178
|
+
},
|
|
155
179
|
env: { ...base.env || {}, ...override.env || {} },
|
|
156
180
|
network: {
|
|
157
181
|
remap: { ...base.network?.remap || {}, ...override.network?.remap || {} }
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -4614,7 +4614,7 @@ var import_node_module = require("node:module");
|
|
|
4614
4614
|
var import_node_path2 = require("node:path");
|
|
4615
4615
|
|
|
4616
4616
|
// runtime-companion.json
|
|
4617
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
4617
|
+
var runtime_companion_default = { abi: 1, sha256: "59277122bc52023de2774e83d48eb795f32324c06d15d9780c8d827791bea7c6", file: "node/cli-59277122bc52023de2774e83d48eb795f32324c06d15d9780c8d827791bea7c6.cjs" };
|
|
4618
4618
|
|
|
4619
4619
|
// src/runtime-assets.ts
|
|
4620
4620
|
var import_fs = __toESM(require("fs"), 1);
|
|
@@ -9522,6 +9522,19 @@ function readNativeRenderer(value) {
|
|
|
9522
9522
|
if (value === "paper" || value === "fabric") return value;
|
|
9523
9523
|
throw new Error("nativeRenderer must be paper or fabric");
|
|
9524
9524
|
}
|
|
9525
|
+
function isHybridObjectAnswer(answer) {
|
|
9526
|
+
return answer === "unsupported" || isRecord(answer) && typeof answer.file === "string" && answer.file.length > 0;
|
|
9527
|
+
}
|
|
9528
|
+
function isHybridObjects(value) {
|
|
9529
|
+
return isRecord(value) && Object.entries(value).every(
|
|
9530
|
+
([name2, answer]) => name2.length > 0 && isHybridObjectAnswer(answer)
|
|
9531
|
+
);
|
|
9532
|
+
}
|
|
9533
|
+
function isPackageHybridObjects(value) {
|
|
9534
|
+
return isRecord(value) && Object.entries(value).every(
|
|
9535
|
+
([name2, answer]) => name2.length > 0 && typeof answer === "string" && answer.length > 0 && answer !== "noop"
|
|
9536
|
+
);
|
|
9537
|
+
}
|
|
9525
9538
|
function isPackageStubs(value) {
|
|
9526
9539
|
if (value === "noop") return true;
|
|
9527
9540
|
if (!isRecord(value)) return false;
|
|
@@ -9529,7 +9542,7 @@ function isPackageStubs(value) {
|
|
|
9529
9542
|
(stub) => typeof stub === "string" && stub.length > 0
|
|
9530
9543
|
)) && (value.views === void 0 || isRecord(value.views) && Object.values(value.views).every(
|
|
9531
9544
|
(stub) => typeof stub === "string" && stub.length > 0 || isNativeViewSource(stub)
|
|
9532
|
-
));
|
|
9545
|
+
)) && (value.hybridObjects === void 0 || isPackageHybridObjects(value.hybridObjects));
|
|
9533
9546
|
}
|
|
9534
9547
|
var PEACH_CONFIG_QUERY_PARAM = "peachConfig";
|
|
9535
9548
|
function isPeachConfig(value) {
|
|
@@ -9540,12 +9553,13 @@ function isPeachConfig(value) {
|
|
|
9540
9553
|
"turboModules",
|
|
9541
9554
|
"nativeModules",
|
|
9542
9555
|
"nativeViews",
|
|
9556
|
+
"nativeHybridObjects",
|
|
9543
9557
|
"env",
|
|
9544
9558
|
"network",
|
|
9545
9559
|
"settings",
|
|
9546
9560
|
"initialProps",
|
|
9547
9561
|
"initialState"
|
|
9548
|
-
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
9562
|
+
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeHybridObjects === void 0 || isHybridObjects(value.nativeHybridObjects)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
9549
9563
|
(entry) => entry === "noop" || isNativeViewSource(entry) || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
9550
9564
|
));
|
|
9551
9565
|
}
|
|
@@ -9554,7 +9568,7 @@ function hasOwnKeys(value) {
|
|
|
9554
9568
|
}
|
|
9555
9569
|
function hasPeachConfig(config) {
|
|
9556
9570
|
if (!config) return false;
|
|
9557
|
-
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
9571
|
+
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.nativeHybridObjects) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
9558
9572
|
}
|
|
9559
9573
|
function readPeachConfigFromSearchParams(searchParams) {
|
|
9560
9574
|
const raw = searchParams.get(PEACH_CONFIG_QUERY_PARAM);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|