peachsim 0.1.2037 → 0.1.2039

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 (96) 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 +1 -1
  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 +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +76 -58
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +2 -2
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +3183 -3000
  31. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +73 -70
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +48 -30
  68. package/dist-lib/swift-compile.cjs +1 -1
  69. package/dist-lib/swift-compile.mjs +1 -1
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +1 -1
  77. package/dist-lib/vite.cjs +2 -2
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/animated-value.d.ts +1 -0
  81. package/dist-types/packages/peach-engine/src/engine/attributed-paragraph-paint.d.ts +2 -3
  82. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +3 -0
  83. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +4 -0
  84. package/dist-types/packages/peach-engine/src/engine/text-decoration.d.ts +5 -7
  85. package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +68 -0
  86. package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +4 -0
  87. package/package.json +1 -1
  88. package/src/nitro-bundle.ts +3 -2
  89. package/src/nitro-superset-inputs.ts +34 -0
  90. package/src/nitro-superset.ts +2 -41
  91. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +0 -224
  92. package/dist-types/packages/peach-engine/src/engine/cull-visibility.d.ts +0 -44
  93. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +0 -69
  94. package/dist-types/packages/peach-engine/src/engine/portals.d.ts +0 -18
  95. package/dist-types/packages/peach-engine/src/engine/svg-geometry.d.ts +0 -41
  96. package/dist-types/packages/peach-engine/src/engine/text-transform.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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;
@@ -64741,7 +64741,7 @@ var init_expo_native_prebuilt = __esm({
64741
64741
  init_swift_native_pin();
64742
64742
  init_xcode_project();
64743
64743
  EXPO_NATIVE_ENTRY_NAME = "ios";
64744
- EXPO_NATIVE_COMPILER_DIGEST = true ? "806572a7a7ff5802a58dc9fe5a6a9887d405db7472682e439e2d17a7a08f2c1f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64744
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "1933e84e92574b07acfa0b9e76b086ea4459e73fd92b8e50416c8c2128146092" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64745
64745
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
64746
64746
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
64747
64747
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -83633,6 +83633,39 @@ var init_nitro_compiler_digest = __esm({
83633
83633
  }
83634
83634
  });
83635
83635
 
83636
+ // src/nitro-superset-inputs.ts
83637
+ async function nitroSupersetInputs(options) {
83638
+ const resolve13 = (0, import_node_module14.createRequire)((0, import_node_path93.join)(options.appRoot, "package.json")).resolve;
83639
+ const pin2 = swiftNativePin();
83640
+ const inputs = {
83641
+ configuration: options.configuration,
83642
+ "ios-deployment-target": options.iosDeploymentTarget,
83643
+ "react-native": packageVersion((0, import_node_path93.dirname)(resolve13("react-native/package.json"))),
83644
+ "swift-distribution": pin2.distribution.id,
83645
+ "nitro-runtime": JSON.stringify(pin2.adapters.nitro)
83646
+ };
83647
+ const nitroModules = (0, import_node_path93.dirname)(resolve13("react-native-nitro-modules/package.json"));
83648
+ for (const { name: name3, root } of [
83649
+ ...options.providers,
83650
+ { name: "react-native-nitro-modules", root: nitroModules }
83651
+ ])
83652
+ inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
83653
+ return inputs;
83654
+ }
83655
+ var import_node_fs96, import_node_module14, import_node_path93, packageVersion;
83656
+ var init_nitro_superset_inputs = __esm({
83657
+ "src/nitro-superset-inputs.ts"() {
83658
+ "use strict";
83659
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
83660
+ import_node_fs96 = require("node:fs");
83661
+ import_node_module14 = require("node:module");
83662
+ import_node_path93 = require("node:path");
83663
+ init_package_tree_digest();
83664
+ init_swift_native_pin();
83665
+ packageVersion = (root) => JSON.parse((0, import_node_fs96.readFileSync)((0, import_node_path93.join)(root, "package.json"), "utf8")).version;
83666
+ }
83667
+ });
83668
+
83636
83669
  // src/nitro-superset.lock.json
83637
83670
  var nitro_superset_lock_default;
83638
83671
  var init_nitro_superset_lock = __esm({
@@ -83679,24 +83712,15 @@ var init_nitro_superset_lock = __esm({
83679
83712
  });
83680
83713
 
83681
83714
  // src/nitro-superset.ts
83682
- async function nitroSupersetInputs(options) {
83683
- const resolve13 = (0, import_node_module14.createRequire)((0, import_node_path93.join)(options.appRoot, "package.json")).resolve;
83684
- const pin2 = swiftNativePin();
83685
- const inputs = {
83686
- configuration: options.configuration,
83687
- "ios-deployment-target": options.iosDeploymentTarget,
83688
- "react-native": packageVersion((0, import_node_path93.dirname)(resolve13("react-native/package.json"))),
83689
- "swift-distribution": pin2.distribution.id,
83690
- "nitro-runtime": JSON.stringify(pin2.adapters.nitro)
83691
- };
83692
- const nitroModules = (0, import_node_path93.dirname)(resolve13("react-native-nitro-modules/package.json"));
83693
- for (const { name: name3, root } of [
83694
- ...options.providers,
83695
- { name: "react-native-nitro-modules", root: nitroModules }
83696
- ])
83697
- inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
83698
- return inputs;
83699
- }
83715
+ var nitro_superset_exports = {};
83716
+ __export(nitro_superset_exports, {
83717
+ NITRO_COMPILER_DIGEST: () => NITRO_COMPILER_DIGEST,
83718
+ NITRO_SUPERSET_ENTRY_NAME: () => NITRO_SUPERSET_ENTRY_NAME,
83719
+ nitroSupersetKey: () => nitroSupersetKey,
83720
+ nitroSupersetLock: () => nitroSupersetLock,
83721
+ nitroSupersetUrl: () => nitroSupersetUrl,
83722
+ sharedNitroModule: () => sharedNitroModule
83723
+ });
83700
83724
  function readInputs(value) {
83701
83725
  if (!isRecord(value)) return null;
83702
83726
  const inputs = {};
@@ -83729,25 +83753,20 @@ async function sharedNitroModule(options) {
83729
83753
  const own = new Set(options.providers.map(({ name: name3 }) => name3));
83730
83754
  return { ...metadata, packages: metadata.packages.filter(({ name: name3 }) => own.has(name3)) };
83731
83755
  }
83732
- var import_node_fs96, import_node_module14, import_node_path93, NITRO_SUPERSET_ENTRY_NAME, packageVersion, NITRO_COMPILER_DIGEST, nitroSupersetLock, nitroSupersetKey, published2, publishedMetadata;
83756
+ var NITRO_SUPERSET_ENTRY_NAME, NITRO_COMPILER_DIGEST, nitroSupersetLock, nitroSupersetKey, published2, publishedMetadata;
83733
83757
  var init_nitro_superset = __esm({
83734
83758
  "src/nitro-superset.ts"() {
83735
83759
  "use strict";
83736
83760
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
83737
- import_node_fs96 = require("node:fs");
83738
- import_node_module14 = require("node:module");
83739
- import_node_path93 = require("node:path");
83740
83761
  init_is_record();
83741
83762
  init_native_prebuilt();
83742
83763
  init_nitro_compiler_digest();
83764
+ init_nitro_superset_inputs();
83743
83765
  init_nitro_superset_lock();
83744
83766
  init_nitroContract();
83745
- init_package_tree_digest();
83746
- init_swift_native_pin();
83747
83767
  init_swift_standin_digest();
83748
83768
  NITRO_SUPERSET_ENTRY_NAME = "superset";
83749
- packageVersion = (root) => JSON.parse((0, import_node_fs96.readFileSync)((0, import_node_path93.join)(root, "package.json"), "utf8")).version;
83750
- NITRO_COMPILER_DIGEST = true ? "d3deac102aab857a948a4c0f45d30c3341b055e451aa58766b9cf48f7f072cec" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
83769
+ NITRO_COMPILER_DIGEST = true ? "40befe379fc82618b7056633734de41be4a26de1277b4147846aabaad9271591" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
83751
83770
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
83752
83771
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
83753
83772
  published2 = /* @__PURE__ */ new Map();
@@ -83798,7 +83817,7 @@ async function compileNitroApp(appRoot, origin, configuration, moduleRoot, share
83798
83817
  projectRoot,
83799
83818
  iosTarget
83800
83819
  )?.iosDeploymentTarget;
83801
- const sharedModule = shared && !moduleRoot && iosDeploymentTarget ? await sharedNitroModule({
83820
+ const sharedModule = shared && !moduleRoot && iosDeploymentTarget ? await (await Promise.resolve().then(() => (init_nitro_superset(), nitro_superset_exports))).sharedNitroModule({
83802
83821
  appRoot,
83803
83822
  configuration,
83804
83823
  iosDeploymentTarget,
@@ -83919,7 +83938,6 @@ var init_nitro_bundle = __esm({
83919
83938
  init_nativePreparationContract();
83920
83939
  init_nitro_compile();
83921
83940
  init_nitro_source();
83922
- init_nitro_superset();
83923
83941
  init_swift_distribution();
83924
83942
  init_swift_host();
83925
83943
  init_swift_icu();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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;
@@ -5630,7 +5630,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
5630
5630
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
5631
5631
 
5632
5632
  // src/expo-native-prebuilt.ts
5633
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "806572a7a7ff5802a58dc9fe5a6a9887d405db7472682e439e2d17a7a08f2c1f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5633
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "1933e84e92574b07acfa0b9e76b086ea4459e73fd92b8e50416c8c2128146092" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5634
5634
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
5635
5635
 
5636
5636
  // src/installed-package-versions.ts
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (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.2037 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2039 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -3,3 +3,4 @@ export declare function beginReadFrame(): void;
3
3
  export declare function endReadFrame(): void;
4
4
  export declare function readAnimatedValue(value: any): any;
5
5
  export declare function readPresentedAnimatedValue(value: any): any;
6
+ export declare function finiteNumber(value: unknown, fallback?: number): number;
@@ -1,7 +1,6 @@
1
1
  import type { AttributedParagraph } from './attributed-paragraph.d.ts';
2
- import type { TextParagraphInputs } from './canvaskit-renderer.d.ts';
3
2
  import type { SootSimNode } from './node.d.ts';
4
- import type { TextPaintServices } from './text-decoration.d.ts';
3
+ import type { TextParagraphInputs } from './text-paint.d.ts';
5
4
  import type { RenderContext, SootSimStyle } from './types.d.ts';
6
5
  import type { TextStyle } from 'canvaskit-wasm';
7
- export declare function drawAttributedParagraphDecorations(node: SootSimNode, ctx: RenderContext, inputs: TextParagraphInputs, paragraph: AttributedParagraph, x: number, y: number, makeMarkerStyle: (style: SootSimStyle) => TextStyle | null, paintServices: TextPaintServices): void;
6
+ export declare function drawAttributedParagraphDecorations(node: SootSimNode, ctx: RenderContext, inputs: TextParagraphInputs, paragraph: AttributedParagraph, x: number, y: number, makeMarkerStyle: (style: SootSimStyle) => TextStyle | null): void;
@@ -1,4 +1,5 @@
1
1
  import { type DamageRect } from './damage-rect.d.ts';
2
+ import type { RenderContext } from './types.d.ts';
2
3
  import type { Surface } from 'canvaskit-wasm';
3
4
  export declare const DAMAGE_CLIP_THRESHOLD = 0.8;
4
5
  declare const CLIP_REASONS: readonly [null, 'no-damage', 'full-damage', 'empty-damage', 'empty-surface', 'threshold'];
@@ -108,4 +109,6 @@ export interface DamageFrameEnd {
108
109
  deferred: DamageRect | null;
109
110
  }
110
111
  export declare function endDamageFrame(damage: FrameDamage): DamageFrameEnd;
112
+ export declare function transformedLayoutDamage(ctx: RenderContext, x: number, y: number, w: number, h: number): DamageRect | null;
113
+ export declare function requestLiquidGlassAnimationFrame(ctx: RenderContext, x: number, y: number, w: number, h: number): void;
111
114
  export {};
@@ -141,6 +141,10 @@ export interface SceneNativeBinding {
141
141
  _peach_scene_set_buffers(integers: number, doubles: number, floats: number, layoutMatrices: number): void;
142
142
  _peach_paint_walk(canvas: number, slot: number, self: number, childX: number, childY: number, flags: number, txOffX: number, txOffY: number, hasClip: number, clipLeft: number, clipTop: number, clipRight: number, clipBottom: number, dpr: number, surfaceWidth: number, surfaceHeight: number, layoutVersion: number, paintFloor: number, paintEpoch: number, fontGeneration: number, android: number, hasDamage: number, damageLeft: number, damageTop: number, damageRight: number, damageBottom: number, damageId: number, frameMs: number): number;
143
143
  _peach_paint_excluded_input(count: number): number;
144
+ _peach_walk_cull_counts(): number;
145
+ _peach_paint_prewarm_begin(pass: number): void;
146
+ _peach_paint_prewarm_unfinished(stop: number): void;
147
+ _peach_paint_prewarm_reopen(slot: number): void;
144
148
  _peach_paint_level(parent: number, childX: number, childY: number, hosted: number): number;
145
149
  _peach_scene_bounds_out(): number;
146
150
  _peach_shared_set(slot: number, boundary: number, shared: number, exiting: number): void;
@@ -1,11 +1,9 @@
1
- import type { TextParagraphInputs } from './canvaskit-renderer.d.ts';
2
1
  import type { SootSimNode } from './node.d.ts';
2
+ import type { TextParagraphInputs } from './text-paint.d.ts';
3
3
  import type { Paragraph } from './text-paragraph.d.ts';
4
4
  import type { SootSimStyle, RenderContext } from './types.d.ts';
5
5
  import type { Canvas } from 'canvaskit-wasm';
6
- export type TextPaintServices = Pick<typeof import('./canvaskit-renderer.d.ts'), 'acquirePaint' | 'releasePaint' | 'parseColor'> & {
7
- strokesTextDecoration: (style: SootSimStyle['textDecorationStyle']) => boolean;
8
- drawsSwiftUIDecoration: (style: SootSimStyle, run: SootSimStyle) => boolean;
9
- drawsTextKitUnderline: (style: SootSimStyle, run: SootSimStyle) => boolean;
10
- };
11
- export declare function drawTextDecorations(node: SootSimNode, ctx: RenderContext, canvas: Canvas, inputs: TextParagraphInputs, para: Paragraph, decorationRuns: NonNullable<SootSimNode['_paragraphRuns']>, textPaintServices: TextPaintServices): void;
6
+ export declare function strokesTextDecoration(style: unknown): boolean;
7
+ export declare function drawsSwiftUIDecoration(nodeStyle: SootSimStyle, runStyle: SootSimStyle): boolean;
8
+ export declare function drawsTextKitUnderline(nodeStyle: SootSimStyle, runStyle: SootSimStyle): boolean;
9
+ export declare function drawTextDecorations(node: SootSimNode, ctx: RenderContext, canvas: Canvas, inputs: TextParagraphInputs, para: Paragraph, decorationRuns: NonNullable<SootSimNode['_paragraphRuns']>): void;
@@ -0,0 +1,68 @@
1
+ import { SootSimNode } from './node.d.ts';
2
+ import { type TextHyphenation } from './text-line-break.d.ts';
3
+ import { type TextParagraphLineHeight } from './text-nested.d.ts';
4
+ import { type Paragraph } from './text-paragraph.d.ts';
5
+ import type { CanvasKitRenderingApi as CanvasKit } from './canvaskit-api.d.ts';
6
+ import type { SootSimStyle, RenderContext } from './types.d.ts';
7
+ import type { Canvas, FontMgr } from 'canvaskit-wasm';
8
+ export interface PreparedTextDraw {
9
+ x: number;
10
+ y: number;
11
+ maxWidth: number;
12
+ contentHeight: number;
13
+ inputs: TextParagraphInputs;
14
+ para: Paragraph;
15
+ }
16
+ export declare function prepareTextDraw(node: SootSimNode, ctx: RenderContext, x: number, y: number, maxWidth: number, offFrame: boolean): PreparedTextDraw | null;
17
+ type TextShaderBounds = {
18
+ x: number;
19
+ y: number;
20
+ width: number;
21
+ height: number;
22
+ };
23
+ export declare function textShaderBounds(node: SootSimNode, ctx: RenderContext): TextShaderBounds;
24
+ export declare function setGlyphRealizationSink(sink: (node: SootSimNode, textKey: string) => void): void;
25
+ export interface TextParagraphInputs {
26
+ text: string;
27
+ style: SootSimStyle;
28
+ fontSize: number;
29
+ color: string | number;
30
+ paragraphLineHeight: number | null;
31
+ hasExplicitLineHeight: boolean;
32
+ attachmentsStandOnBaseline: boolean;
33
+ mixedParagraphs: boolean;
34
+ textKitLines: TextParagraphLineHeight['textKitLines'];
35
+ paragraphLeading: number;
36
+ letterSpacing: number;
37
+ textOffset: {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ overlaySnapBias: number;
42
+ fontStyle: string;
43
+ numberOfLines: number;
44
+ ellipsizeMode: 'clip' | 'head' | 'middle' | 'tail';
45
+ pushOut: boolean;
46
+ hyphenation: TextHyphenation | undefined;
47
+ hasNestedText: boolean;
48
+ clipToHostBounds: boolean;
49
+ pad: {
50
+ left: number;
51
+ top: number;
52
+ right: number;
53
+ bottom: number;
54
+ };
55
+ rasterScale: number;
56
+ textKey: string;
57
+ }
58
+ export declare function resolveTextParagraphInputs(node: SootSimNode, rasterScale: number): TextParagraphInputs;
59
+ export declare function ensureNodeParagraph(node: SootSimNode, contentWidth: number, ck: CanvasKit, fontMgr: FontMgr, rasterScale: number, precomputed?: TextParagraphInputs, prewarmPhase?: boolean): Paragraph | null;
60
+ export declare function textClipOffset(node: SootSimNode, inputs: TextParagraphInputs, para: Paragraph, maxWidth: number): number;
61
+ export declare function textClips(node: SootSimNode, inputs: TextParagraphInputs, para: Paragraph, contentHeight: number): boolean;
62
+ export declare function textKitFittedHeight(inputs: TextParagraphInputs, para: Paragraph, contentHeight: number): number;
63
+ export declare function textHasOverlays(node: SootSimNode, inputs: TextParagraphInputs): boolean;
64
+ export declare function drawTextOverlays(node: SootSimNode, ctx: RenderContext, canvas: Canvas, inputs: TextParagraphInputs, para: Paragraph): void;
65
+ export declare function nativeTextOriginShift(node: SootSimNode, ctx: RenderContext, inset: number, axis?: 'x' | 'y'): number;
66
+ export declare function textPaintX(node: SootSimNode, ctx: RenderContext, x: number, maxWidth: number, inputs: TextParagraphInputs, para: Paragraph): number;
67
+ export declare function drawTextPaint(node: SootSimNode, ctx: RenderContext, x: number, y: number, maxWidth: number, contentHeight: number, inputs: TextParagraphInputs, para: Paragraph, offFrame?: boolean): void;
68
+ export {};
@@ -27,5 +27,9 @@ export interface SootSimElectronBridge {
27
27
  setDevice?(model: string): void;
28
28
  setDevicePosture?(posture: string, foldActive: boolean): void;
29
29
  setDeviceOrientation?(orientation: string): void;
30
+ setDeviceTurn?(box: {
31
+ width: number;
32
+ height: number;
33
+ } | null): void;
30
34
  [key: string]: unknown;
31
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2037",
3
+ "version": "0.1.2039",
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",
@@ -13,7 +13,6 @@ import {
13
13
  } from './nativePreparationContract'
14
14
  import { compileNitroModule } from './nitro-compile'
15
15
  import { discoverNitroProviders, selectNitroProviders } from './nitro-source'
16
- import { sharedNitroModule } from './nitro-superset'
17
16
  import { swiftDistributionRoot } from './swift-distribution'
18
17
  import { icuUrl, type SwiftArtifact } from './swift-host'
19
18
  import { swiftIcuBundleAsset } from './swift-icu'
@@ -91,7 +90,9 @@ export async function compileNitroApp(
91
90
  )?.iosDeploymentTarget
92
91
  const sharedModule =
93
92
  shared && !moduleRoot && iosDeploymentTarget
94
- ? await sharedNitroModule({
93
+ ? await (
94
+ await import('./nitro-superset')
95
+ ).sharedNitroModule({
95
96
  appRoot,
96
97
  configuration,
97
98
  iosDeploymentTarget,
@@ -0,0 +1,34 @@
1
+ import { readFileSync } from 'node:fs'
2
+ import { createRequire } from 'node:module'
3
+ import { dirname, join } from 'node:path'
4
+ import { packageTreeDigest } from './package-tree-digest'
5
+ import { swiftNativePin } from './swift-native-pin'
6
+ import type { NitroBuildConfiguration } from './nitroContract'
7
+
8
+ const packageVersion = (root: string): string =>
9
+ JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')).version
10
+
11
+ export async function nitroSupersetInputs(options: {
12
+ appRoot: string
13
+ configuration: NitroBuildConfiguration
14
+ iosDeploymentTarget: string
15
+ providers: readonly { name: string; root: string }[]
16
+ }): Promise<Record<string, string>> {
17
+ const resolve = createRequire(join(options.appRoot, 'package.json')).resolve
18
+ const pin = swiftNativePin()
19
+ const inputs: Record<string, string> = {
20
+ configuration: options.configuration,
21
+ 'ios-deployment-target': options.iosDeploymentTarget,
22
+ 'react-native': packageVersion(dirname(resolve('react-native/package.json'))),
23
+ 'swift-distribution': pin.distribution.id,
24
+ 'nitro-runtime': JSON.stringify(pin.adapters.nitro),
25
+ }
26
+ const nitroModules = dirname(resolve('react-native-nitro-modules/package.json'))
27
+ for (const { name, root } of [
28
+ ...options.providers,
29
+ { name: 'react-native-nitro-modules', root: nitroModules },
30
+ ])
31
+ inputs[`provider:${name}`] =
32
+ `${packageVersion(root)}\0${await packageTreeDigest(root)}`
33
+ return inputs
34
+ }
@@ -2,15 +2,12 @@
2
2
  // compiled Nitro provider links one Swift, Foundation and UIKit closure that is
3
3
  // most of an executable's bytes, so building each app's own copy ships the same
4
4
  // closure per app. one executable of every provider in the capsule is published
5
- // on the prebuilt registry under a key of its committed inputs and the compiler
5
+ // on the prebuilt registry under a key of its generated inputs and the compiler
6
6
  // sources, and an app whose providers are byte-identical to the ones it was
7
7
  // built from points its metadata at that key: the browser downloads it once for
8
8
  // every app, port and deployment. an app with a provider outside the lock, a
9
9
  // different provider build, or a HybridObject or view its config answers
10
10
  // compiles its own executable.
11
- import { readFileSync } from 'node:fs'
12
- import { createRequire } from 'node:module'
13
- import { dirname, join } from 'node:path'
14
11
  import { isRecord } from './is-record'
15
12
  import {
16
13
  NATIVE_PREBUILT_ORIGIN,
@@ -18,53 +15,17 @@ import {
18
15
  nativeEntryPrefix,
19
16
  } from './native-prebuilt'
20
17
  import { nitroCompilerSourceDigest } from './nitro-compiler-digest'
18
+ import { nitroSupersetInputs } from './nitro-superset-inputs'
21
19
  import supersetLockJson from './nitro-superset.lock.json' with { type: 'json' }
22
20
  import {
23
21
  readNitroMetadata,
24
22
  type NitroBuildConfiguration,
25
23
  type NitroCompiledModule,
26
24
  } from './nitroContract'
27
- import { packageTreeDigest } from './package-tree-digest'
28
- import { swiftNativePin } from './swift-native-pin'
29
25
  import { STANDIN_SOURCE_DIGEST } from './swift-standin-digest'
30
26
 
31
27
  export const NITRO_SUPERSET_ENTRY_NAME = 'superset'
32
28
 
33
- const packageVersion = (root: string): string =>
34
- JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')).version
35
-
36
- /**
37
- * what one executable of these providers depends on, apart from the sources
38
- * that compile it, which NITRO_COMPILER_DIGEST adds to the key: the toolchain
39
- * and runtime identities, the build configuration, the iOS deployment target
40
- * its project compiles for, and each provider's version and source tree, Nitro
41
- * Modules' included.
42
- */
43
- export async function nitroSupersetInputs(options: {
44
- appRoot: string
45
- configuration: NitroBuildConfiguration
46
- iosDeploymentTarget: string
47
- providers: readonly { name: string; root: string }[]
48
- }): Promise<Record<string, string>> {
49
- const resolve = createRequire(join(options.appRoot, 'package.json')).resolve
50
- const pin = swiftNativePin()
51
- const inputs: Record<string, string> = {
52
- configuration: options.configuration,
53
- 'ios-deployment-target': options.iosDeploymentTarget,
54
- 'react-native': packageVersion(dirname(resolve('react-native/package.json'))),
55
- 'swift-distribution': pin.distribution.id,
56
- 'nitro-runtime': JSON.stringify(pin.adapters.nitro),
57
- }
58
- const nitroModules = dirname(resolve('react-native-nitro-modules/package.json'))
59
- for (const { name, root } of [
60
- ...options.providers,
61
- { name: 'react-native-nitro-modules', root: nitroModules },
62
- ])
63
- inputs[`provider:${name}`] =
64
- `${packageVersion(root)}\0${await packageTreeDigest(root)}`
65
- return inputs
66
- }
67
-
68
29
  // build-cli replaces this in every bundle with the digest of the sources it
69
30
  // bundles; source runs read the files once at load, like STANDIN_SOURCE_DIGEST.
70
31
  declare const __NITRO_COMPILER_DIGEST__: string | undefined