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.
Files changed (126) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +137 -119
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-I6YLE7RH.mjs → acorn-3G2P6SLD.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-YQSNOLNM.mjs → chunk-2XVKKP7C.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-RC3JQV7D.mjs → chunk-3N3NWKOV.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-GMFZTGVJ.mjs → chunk-3R76QB7G.mjs} +6 -6
  30. package/dist-lib/esm-chunks/{chunk-OXFGIZC4.mjs → chunk-4BSH2PJJ.mjs} +2 -2
  31. package/dist-lib/esm-chunks/{chunk-VWRLBFID.mjs → chunk-4J7M5ABU.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-QDTQYGJB.mjs → chunk-4SL6WT5R.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-CFPPESX7.mjs → chunk-5EMHE44C.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-4CNYVYQW.mjs → chunk-6HF6522F.mjs} +4 -4
  35. package/dist-lib/esm-chunks/{chunk-MHRTZ6I7.mjs → chunk-7PZCYBRZ.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-FKC5RBXR.mjs → chunk-CWTZZ5PW.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-Y4Q3W36I.mjs → chunk-EP64ATYX.mjs} +6 -6
  38. package/dist-lib/esm-chunks/{chunk-PLXC42XF.mjs → chunk-ESGH55PU.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-NWGCI4JC.mjs → chunk-FZCF4XKV.mjs} +3 -3
  40. package/dist-lib/esm-chunks/{chunk-VH5KY2GM.mjs → chunk-MHWKZ233.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-IVVVYJKG.mjs → chunk-MK5GDI4J.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-6LMI5DE3.mjs → chunk-NA3WRJON.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-MXADGMSE.mjs → chunk-OYGAP4IB.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-U262IRGM.mjs → chunk-Q3AUIPF2.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-2SC45KUK.mjs → chunk-QNMAUXAH.mjs} +145 -127
  46. package/dist-lib/esm-chunks/{chunk-G44GUBAL.mjs → chunk-SI55AJTD.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-HJBL2ND3.mjs → chunk-U6INDDV4.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-GPVGYC45.mjs → chunk-V6QXWGYS.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-ZRA35GYC.mjs → chunk-XRGF7PWG.mjs} +5 -5
  50. package/dist-lib/esm-chunks/{chunk-6QTRZNLH.mjs → chunk-YPT6XQJX.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-QGTUKU6T.mjs → metro-layout-parser-IISMSHQ6.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-M2IXDM7B.mjs → swift-package-prebuilt-VA4DWCFB.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-4KYBNEBW.mjs → swift-sdk-app-module-3UUKIQI6.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-Z37PPINV.mjs → swift-sdk-image-XJURAHAQ.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-7KFCU6Y6.mjs → swift-sdk-image-producer-HF3NTKWX.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +137 -119
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +160 -143
  61. package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +64 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +160 -143
  95. package/dist-lib/swift-compile.cjs +133 -115
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/engine/native-font-dataContract.d.ts +1 -0
  123. package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +17 -1
  124. package/package.json +1 -1
  125. package/src/one-direct-host-source.ts +23 -24
  126. package/src/swift-compile.ts +171 -152
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  parse
4
- } from "./esm-chunks/chunk-6LMI5DE3.mjs";
4
+ } from "./esm-chunks/chunk-NA3WRJON.mjs";
5
5
  import {
6
6
  __privateAdd,
7
7
  __privateGet,
8
8
  __publicField
9
- } from "./esm-chunks/chunk-6QTRZNLH.mjs";
9
+ } from "./esm-chunks/chunk-YPT6XQJX.mjs";
10
10
 
11
11
  // src/worklet-kernel.ts
12
12
  var Unsupported = class extends Error {
@@ -82,6 +82,7 @@ export interface FontShapedText {
82
82
  glyphs: FontShapedGlyph[]
83
83
  advance: number
84
84
  rightToLeft: boolean
85
+ unsafeBreaks?: number[]
85
86
  }
86
87
 
87
88
  export type FontDataOperation =
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2742",
3
+ "version": "0.1.2744",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -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 view.superview === stageView {
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
- auto& slot = gContentViews[node];
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* stageView = PeachOneDirectStage.shared.stageView;
2226
- if (record.hostView.superview == nil || record.hostView.superview == stageView) {
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
- [PeachOneDirectStage.shared attachHostView:record.hostView
2231
- frame:CGRectMake(0, 0, w, h)];
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
- UIView* stageView = PeachOneDirectStage.shared.stageView;
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;