peachsim 0.1.2742 → 0.1.2744
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 +137 -119
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-I6YLE7RH.mjs → acorn-3G2P6SLD.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-YQSNOLNM.mjs → chunk-2XVKKP7C.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RC3JQV7D.mjs → chunk-3N3NWKOV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GMFZTGVJ.mjs → chunk-3R76QB7G.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-OXFGIZC4.mjs → chunk-4BSH2PJJ.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-VWRLBFID.mjs → chunk-4J7M5ABU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QDTQYGJB.mjs → chunk-4SL6WT5R.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CFPPESX7.mjs → chunk-5EMHE44C.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4CNYVYQW.mjs → chunk-6HF6522F.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-MHRTZ6I7.mjs → chunk-7PZCYBRZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FKC5RBXR.mjs → chunk-CWTZZ5PW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Y4Q3W36I.mjs → chunk-EP64ATYX.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-PLXC42XF.mjs → chunk-ESGH55PU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NWGCI4JC.mjs → chunk-FZCF4XKV.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-VH5KY2GM.mjs → chunk-MHWKZ233.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IVVVYJKG.mjs → chunk-MK5GDI4J.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6LMI5DE3.mjs → chunk-NA3WRJON.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MXADGMSE.mjs → chunk-OYGAP4IB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U262IRGM.mjs → chunk-Q3AUIPF2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2SC45KUK.mjs → chunk-QNMAUXAH.mjs} +145 -127
- package/dist-lib/esm-chunks/{chunk-G44GUBAL.mjs → chunk-SI55AJTD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HJBL2ND3.mjs → chunk-U6INDDV4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GPVGYC45.mjs → chunk-V6QXWGYS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZRA35GYC.mjs → chunk-XRGF7PWG.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-6QTRZNLH.mjs → chunk-YPT6XQJX.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-QGTUKU6T.mjs → metro-layout-parser-IISMSHQ6.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-M2IXDM7B.mjs → swift-package-prebuilt-VA4DWCFB.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-4KYBNEBW.mjs → swift-sdk-app-module-3UUKIQI6.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-Z37PPINV.mjs → swift-sdk-image-XJURAHAQ.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-7KFCU6Y6.mjs → swift-sdk-image-producer-HF3NTKWX.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +137 -119
- 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 +160 -143
- 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 +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 +64 -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 +160 -143
- package/dist-lib/swift-compile.cjs +133 -115
- 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/dist-types/packages/peach-engine/src/engine/native-font-dataContract.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +17 -1
- package/package.json +1 -1
- package/src/one-direct-host-source.ts +23 -24
- package/src/swift-compile.ts +171 -152
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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 __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __commonJS = (cb, mod) => function __require() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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
|
|
|
4
4
|
// ../../node_modules/valibot/dist/index.cjs
|
package/dist-lib/vendor/ws.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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 __getOwnPropNames = Object.getOwnPropertyNames;
|
package/dist-lib/vendor/zod.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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 __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (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,12 +1,12 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2744 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
parse
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-NA3WRJON.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__privateAdd,
|
|
7
7
|
__privateGet,
|
|
8
8
|
__publicField
|
|
9
|
-
} from "./esm-chunks/chunk-
|
|
9
|
+
} from "./esm-chunks/chunk-YPT6XQJX.mjs";
|
|
10
10
|
|
|
11
11
|
// src/worklet-kernel.ts
|
|
12
12
|
var Unsupported = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
2
|
export interface HostingSafeAreaContainer {
|
|
3
3
|
view: RefObject<unknown>;
|
|
4
4
|
height: number;
|
|
@@ -16,6 +16,22 @@ export interface HostingSafeAreaContainer {
|
|
|
16
16
|
rowInset?: number;
|
|
17
17
|
}
|
|
18
18
|
export declare const HostingSafeAreaContext: import("react").Context<HostingSafeAreaContainer | null>;
|
|
19
|
+
export declare const ZERO_LIST_MARGIN_INSETS: {
|
|
20
|
+
left: number;
|
|
21
|
+
right: number;
|
|
22
|
+
};
|
|
23
|
+
export declare const ListMarginInsetsContext: import("react").Context<{
|
|
24
|
+
left: number;
|
|
25
|
+
right: number;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function PaddedListMargins({ left, right, children, }: {
|
|
28
|
+
left: number;
|
|
29
|
+
right: number;
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
}): import("react").FunctionComponentElement<import("react").ProviderProps<{
|
|
32
|
+
left: number;
|
|
33
|
+
right: number;
|
|
34
|
+
}>>;
|
|
19
35
|
export declare function systemLayoutMargin(screen: {
|
|
20
36
|
width: number;
|
|
21
37
|
height: number;
|
package/package.json
CHANGED
|
@@ -60,19 +60,10 @@ public final class PeachOneDirectStage: NSObject {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@objc public func attachHostView(_ view: UIView, frame: CGRect) {
|
|
64
|
-
if view.superview !== stageView {
|
|
65
|
-
view.removeFromSuperview()
|
|
66
|
-
stageView.addSubview(view)
|
|
67
|
-
}
|
|
68
|
-
if view.frame != frame {
|
|
69
|
-
view.frame = frame
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
63
|
@objc public func detachHostView(_ view: UIView) {
|
|
64
|
+
let wasDirectHost = view._peachReactContentHost != nil
|
|
74
65
|
view._peachReactContentHost = nil
|
|
75
|
-
if
|
|
66
|
+
if wasDirectHost {
|
|
76
67
|
view.removeFromSuperview()
|
|
77
68
|
}
|
|
78
69
|
}
|
|
@@ -1918,6 +1909,7 @@ struct DirectContainerRecord {
|
|
|
1918
1909
|
BOOL composed = NO;
|
|
1919
1910
|
peach_node hostContentNode = 0;
|
|
1920
1911
|
CGRect frame = CGRectZero;
|
|
1912
|
+
__weak UIView* hostParent = nil;
|
|
1921
1913
|
};
|
|
1922
1914
|
|
|
1923
1915
|
std::unordered_map<peach_node, DirectContainerRecord> gRecords;
|
|
@@ -1925,6 +1917,16 @@ std::unordered_map<peach_node, UIView*> gContentViews;
|
|
|
1925
1917
|
std::unordered_map<peach_node, UIView*> gTriggerViews;
|
|
1926
1918
|
peach_node gInPlaceTriggerNode = 0;
|
|
1927
1919
|
|
|
1920
|
+
UIView* contentViewForNode(peach_node node) {
|
|
1921
|
+
auto& slot = gContentViews[node];
|
|
1922
|
+
if (!slot) {
|
|
1923
|
+
slot = [[UIView alloc] initWithFrame:CGRectZero];
|
|
1924
|
+
slot.backgroundColor = UIColor.clearColor;
|
|
1925
|
+
[PeachOneDirectStage.shared tagContentView:slot node:node];
|
|
1926
|
+
}
|
|
1927
|
+
return slot;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1928
1930
|
NSString* nsStringFromBytes(const char* ptr, uint32_t len) {
|
|
1929
1931
|
if (!ptr || !len) return @"";
|
|
1930
1932
|
return [[NSString alloc] initWithBytes:ptr length:len encoding:NSUTF8StringEncoding] ?: @"";
|
|
@@ -2026,6 +2028,7 @@ id<PeachContainer> makeContainer(NSString* kind, peach_node node, NSDictionary*
|
|
|
2026
2028
|
it->second.hostView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, it->second.frame.size.width, it->second.frame.size.height)];
|
|
2027
2029
|
}
|
|
2028
2030
|
UIView* hostView = it->second.hostView;
|
|
2031
|
+
it->second.hostParent = nil;
|
|
2029
2032
|
[PeachOneDirectStage.shared detachHostView:hostView];
|
|
2030
2033
|
return hostView;
|
|
2031
2034
|
}
|
|
@@ -2039,13 +2042,7 @@ id<PeachContainer> makeContainer(NSString* kind, peach_node node, NSDictionary*
|
|
|
2039
2042
|
}
|
|
2040
2043
|
return trigger;
|
|
2041
2044
|
}
|
|
2042
|
-
|
|
2043
|
-
if (!slot) {
|
|
2044
|
-
slot = [[UIView alloc] initWithFrame:CGRectZero];
|
|
2045
|
-
slot.backgroundColor = UIColor.clearColor;
|
|
2046
|
-
[PeachOneDirectStage.shared tagContentView:slot node:node];
|
|
2047
|
-
}
|
|
2048
|
-
return slot;
|
|
2045
|
+
return contentViewForNode(node);
|
|
2049
2046
|
}
|
|
2050
2047
|
|
|
2051
2048
|
- (CGSize)layoutSizeForNode:(peach_node)node {
|
|
@@ -2222,13 +2219,16 @@ void peach_one_container_mount(uint32_t targetLo, uint32_t targetHi, uint32_t pa
|
|
|
2222
2219
|
record.hostView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, w, h)];
|
|
2223
2220
|
record.hostView.backgroundColor = UIColor.clearColor;
|
|
2224
2221
|
}
|
|
2225
|
-
UIView*
|
|
2226
|
-
if (
|
|
2222
|
+
UIView* currentParent = record.hostView.superview;
|
|
2223
|
+
if (!currentParent || currentParent == record.hostParent) {
|
|
2224
|
+
UIView* parent = hostContentNode ? contentViewForNode(hostContentNode) : PeachOneDirectStage.shared.stageView;
|
|
2225
|
+
record.hostParent = parent;
|
|
2227
2226
|
[PeachOneDirectStage.shared tagHostView:record.hostView
|
|
2228
2227
|
node:node
|
|
2229
2228
|
hostContentNode:hostContentNode];
|
|
2230
|
-
[
|
|
2231
|
-
|
|
2229
|
+
if (currentParent != parent) [parent addSubview:record.hostView];
|
|
2230
|
+
const CGRect next = CGRectMake(0, 0, w, h);
|
|
2231
|
+
if (!CGRectEqualToRect(record.hostView.frame, next)) record.hostView.frame = next;
|
|
2232
2232
|
} else {
|
|
2233
2233
|
CGRect current = record.hostView.frame;
|
|
2234
2234
|
current.size = CGSizeMake(w, h);
|
|
@@ -2262,8 +2262,7 @@ void peach_one_container_mount(uint32_t targetLo, uint32_t targetHi, uint32_t pa
|
|
|
2262
2262
|
|
|
2263
2263
|
// bounds-only update after layout (never re-runs mountIn on PeachSwiftUI)
|
|
2264
2264
|
if (!record.composed && record.hostView) {
|
|
2265
|
-
|
|
2266
|
-
if (record.hostView.superview == stageView) {
|
|
2265
|
+
if (record.hostParent && record.hostView.superview == record.hostParent) {
|
|
2267
2266
|
const CGRect next = CGRectMake(0, 0, w, h);
|
|
2268
2267
|
if (!CGRectEqualToRect(record.hostView.frame, next)) {
|
|
2269
2268
|
record.hostView.frame = next;
|