peachsim 0.1.2271 → 0.1.2273

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 (109) 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 +50 -30
  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 +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +44 -24
  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 +50 -30
  31. package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
  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 +22 -16
  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 +22 -16
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +53 -53
  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 +52 -30
  68. package/dist-lib/swift-compile.cjs +10 -4
  69. package/dist-lib/swift-compile.mjs +10 -4
  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 +11 -5
  77. package/dist-lib/vite.cjs +5 -5
  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/font-config.d.ts +1 -13
  81. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
  82. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +0 -1
  83. package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +72 -0
  84. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +9 -2
  87. package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-protocol.d.ts +69 -0
  88. package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-server.d.ts +21 -0
  89. package/dist-types/packages/peach-engine/src/screenshots/tokens.d.ts +1 -1
  90. package/dist-types/packages/peach-engine/src/settings/device-rotation-bus.d.ts +23 -0
  91. package/dist-types/packages/peach-engine/src/settings/device-turn.d.ts +4 -0
  92. package/dist-types/packages/peach-engine/src/settings/display-hold.d.ts +19 -0
  93. package/dist-types/packages/peach-engine/src/settings/duo-fold-effect.d.ts +26 -0
  94. package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +13 -0
  95. package/dist-types/packages/peach-engine/src/settings/index.d.ts +20 -0
  96. package/dist-types/packages/peach-engine/src/settings/schema.d.ts +5 -0
  97. package/dist-types/packages/peach-engine/src/settings/store.d.ts +1 -1
  98. package/kotlin/sdk.tar.gz +0 -0
  99. package/package.json +1 -1
  100. package/runtime-companion.json +1 -1
  101. package/src/nitro-adapter.lock.json +237 -237
  102. package/src/nitro-superset.lock.json +4 -4
  103. package/src/react-native-autolinking.ts +27 -12
  104. package/src/swift-distribution.lock.json +8 -8
  105. package/src/swift-wasm-prune.ts +11 -2
  106. package/src/turbo-compile.ts +1 -1
  107. package/src/turbo-runtime.lock.json +17 -17
  108. package/src/turbo-source.ts +15 -5
  109. package/dist-types/packages/peach-engine/src/ios/constants.d.ts +0 -15
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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;
@@ -5868,13 +5868,17 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
5868
5868
  function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
5869
5869
  const rspPath = import_node_path8.default.join(directory, ".peach-link.rsp");
5870
5870
  if (!import_node_fs8.default.existsSync(rspPath)) return;
5871
+ const staticClangTarget = new RegExp(
5872
+ `^(?:${staticClangTargets.map((name2) => name2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})(?:(?:Native|Swift)Implementation_[0-9a-f]+)?$`
5873
+ );
5874
+ const isStaticClangTarget = (name2) => staticClangTargets.length > 0 && staticClangTarget.test(name2);
5871
5875
  const origRsp = import_node_fs8.default.readFileSync(rspPath, "utf8");
5872
5876
  const tokens = Array.from(
5873
5877
  origRsp.matchAll(/"([^"]+)"|(\S+)/g),
5874
5878
  (m) => m[1] ?? m[2]
5875
5879
  ).flatMap((token) => {
5876
5880
  const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(import_node_path8.default.basename(token))?.[1];
5877
- if (!target || !staticClangTargets.includes(target) || import_node_path8.default.basename(import_node_path8.default.dirname(token)) !== ".peach-libraries")
5881
+ if (!target || !isStaticClangTarget(target) || import_node_path8.default.basename(import_node_path8.default.dirname(token)) !== ".peach-libraries")
5878
5882
  return [token];
5879
5883
  const objects = import_node_path8.default.join(directory, ".peach-native-libraries", `${target}.build`);
5880
5884
  import_node_fs8.default.mkdirSync(objects, { recursive: true });
@@ -5944,7 +5948,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
5944
5948
  } else if (!inStartLib) {
5945
5949
  if (t.endsWith("/swiftrt.o")) {
5946
5950
  swiftrtOrigPath = t;
5947
- } else if (!t.endsWith(".swift.o") && staticClangTargets.some((name2) => t.includes(`/${name2}.build/`))) {
5951
+ } else if (!t.endsWith(".swift.o") && [...t.matchAll(/\/([^/]+)\.build\//g)].some(
5952
+ ([, name2]) => name2 !== void 0 && isStaticClangTarget(name2)
5953
+ )) {
5948
5954
  const obj = parseWasmObjectCached(t, false, false);
5949
5955
  let definesObjCClassOrCategory = false;
5950
5956
  for (let i = 0; i < obj.symKind.length; i++) {
@@ -13436,7 +13442,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13436
13442
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13437
13443
  var MULTI_MANIFEST_VERSION = 68;
13438
13444
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13439
- var compilerSourceDigest = true ? "bc384e05829330ac85b4cd23cd2a41bb18fa4c35b7008ba98d417b716f3a0605" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13445
+ var compilerSourceDigest = true ? "344d6e89c2ee7f5228ccf31a6be0c1366904d145c73cd31062c481e5410a4187" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13440
13446
  function swiftArtifactHash(input, release, moduleRoot) {
13441
13447
  const hash = (0, import_node_crypto13.createHash)("sha256");
13442
13448
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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);
@@ -5821,13 +5821,17 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
5821
5821
  function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
5822
5822
  const rspPath = path10.join(directory, ".peach-link.rsp");
5823
5823
  if (!fs4.existsSync(rspPath)) return;
5824
+ const staticClangTarget = new RegExp(
5825
+ `^(?:${staticClangTargets.map((name2) => name2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})(?:(?:Native|Swift)Implementation_[0-9a-f]+)?$`
5826
+ );
5827
+ const isStaticClangTarget = (name2) => staticClangTargets.length > 0 && staticClangTarget.test(name2);
5824
5828
  const origRsp = fs4.readFileSync(rspPath, "utf8");
5825
5829
  const tokens = Array.from(
5826
5830
  origRsp.matchAll(/"([^"]+)"|(\S+)/g),
5827
5831
  (m) => m[1] ?? m[2]
5828
5832
  ).flatMap((token) => {
5829
5833
  const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(path10.basename(token))?.[1];
5830
- if (!target || !staticClangTargets.includes(target) || path10.basename(path10.dirname(token)) !== ".peach-libraries")
5834
+ if (!target || !isStaticClangTarget(target) || path10.basename(path10.dirname(token)) !== ".peach-libraries")
5831
5835
  return [token];
5832
5836
  const objects = path10.join(directory, ".peach-native-libraries", `${target}.build`);
5833
5837
  fs4.mkdirSync(objects, { recursive: true });
@@ -5897,7 +5901,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
5897
5901
  } else if (!inStartLib) {
5898
5902
  if (t.endsWith("/swiftrt.o")) {
5899
5903
  swiftrtOrigPath = t;
5900
- } else if (!t.endsWith(".swift.o") && staticClangTargets.some((name2) => t.includes(`/${name2}.build/`))) {
5904
+ } else if (!t.endsWith(".swift.o") && [...t.matchAll(/\/([^/]+)\.build\//g)].some(
5905
+ ([, name2]) => name2 !== void 0 && isStaticClangTarget(name2)
5906
+ )) {
5901
5907
  const obj = parseWasmObjectCached(t, false, false);
5902
5908
  let definesObjCClassOrCategory = false;
5903
5909
  for (let i = 0; i < obj.symKind.length; i++) {
@@ -13422,7 +13428,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13422
13428
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13423
13429
  var MULTI_MANIFEST_VERSION = 68;
13424
13430
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13425
- var compilerSourceDigest = true ? "bc384e05829330ac85b4cd23cd2a41bb18fa4c35b7008ba98d417b716f3a0605" : swiftCompilerSourceDigest(import.meta.dirname);
13431
+ var compilerSourceDigest = true ? "344d6e89c2ee7f5228ccf31a6be0c1366904d145c73cd31062c481e5410a4187" : swiftCompilerSourceDigest(import.meta.dirname);
13426
13432
  function swiftArtifactHash(input, release, moduleRoot) {
13427
13433
  const hash = createHash13("sha256");
13428
13434
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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;
@@ -10833,13 +10833,17 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
10833
10833
  function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
10834
10834
  const rspPath = import_node_path10.default.join(directory, ".peach-link.rsp");
10835
10835
  if (!import_node_fs10.default.existsSync(rspPath)) return;
10836
+ const staticClangTarget = new RegExp(
10837
+ `^(?:${staticClangTargets.map((name3) => name3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})(?:(?:Native|Swift)Implementation_[0-9a-f]+)?$`
10838
+ );
10839
+ const isStaticClangTarget = (name3) => staticClangTargets.length > 0 && staticClangTarget.test(name3);
10836
10840
  const origRsp = import_node_fs10.default.readFileSync(rspPath, "utf8");
10837
10841
  const tokens2 = Array.from(
10838
10842
  origRsp.matchAll(/"([^"]+)"|(\S+)/g),
10839
10843
  (m) => m[1] ?? m[2]
10840
10844
  ).flatMap((token) => {
10841
10845
  const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(import_node_path10.default.basename(token))?.[1];
10842
- if (!target || !staticClangTargets.includes(target) || import_node_path10.default.basename(import_node_path10.default.dirname(token)) !== ".peach-libraries")
10846
+ if (!target || !isStaticClangTarget(target) || import_node_path10.default.basename(import_node_path10.default.dirname(token)) !== ".peach-libraries")
10843
10847
  return [token];
10844
10848
  const objects = import_node_path10.default.join(directory, ".peach-native-libraries", `${target}.build`);
10845
10849
  import_node_fs10.default.mkdirSync(objects, { recursive: true });
@@ -10909,7 +10913,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
10909
10913
  } else if (!inStartLib) {
10910
10914
  if (t.endsWith("/swiftrt.o")) {
10911
10915
  swiftrtOrigPath = t;
10912
- } else if (!t.endsWith(".swift.o") && staticClangTargets.some((name3) => t.includes(`/${name3}.build/`))) {
10916
+ } else if (!t.endsWith(".swift.o") && [...t.matchAll(/\/([^/]+)\.build\//g)].some(
10917
+ ([, name3]) => name3 !== void 0 && isStaticClangTarget(name3)
10918
+ )) {
10913
10919
  const obj = parseWasmObjectCached(t, false, false);
10914
10920
  let definesObjCClassOrCategory = false;
10915
10921
  for (let i = 0; i < obj.symKind.length; i++) {
@@ -18249,7 +18255,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
18249
18255
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
18250
18256
  var MULTI_MANIFEST_VERSION = 68;
18251
18257
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
18252
- var compilerSourceDigest = true ? "bc384e05829330ac85b4cd23cd2a41bb18fa4c35b7008ba98d417b716f3a0605" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18258
+ var compilerSourceDigest = true ? "344d6e89c2ee7f5228ccf31a6be0c1366904d145c73cd31062c481e5410a4187" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18253
18259
  function swiftArtifactHash(input, release, moduleRoot) {
18254
18260
  const hash = (0, import_node_crypto13.createHash)("sha256");
18255
18261
  hash.update(`swift-compile
@@ -32427,7 +32433,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
32427
32433
  return hash.digest("hex");
32428
32434
  }
32429
32435
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
32430
- var STANDIN_SOURCE_DIGEST = true ? "efd773c339d9f0cdb93189d322832bca352dd0d701338e88d3dbd8abdebfa05c" : standinSourceDigest();
32436
+ var STANDIN_SOURCE_DIGEST = true ? "c4178088419ff254271d3b739cc0d5c196fb4044efb839fd0bf5675b2bde1327" : standinSourceDigest();
32431
32437
 
32432
32438
  // src/swift-standins.ts
32433
32439
  var import_node_child_process31 = require("node:child_process");
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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;
@@ -2742,7 +2742,7 @@ var init_src = __esm({
2742
2742
  var runtime_companion_default;
2743
2743
  var init_runtime_companion = __esm({
2744
2744
  "runtime-companion.json"() {
2745
- runtime_companion_default = { abi: 1, sha256: "67493d7de4bb11712f0306f9697f039af53d359140b56023af67beabb7cdbcb0", file: "node/cli-67493d7de4bb11712f0306f9697f039af53d359140b56023af67beabb7cdbcb0.cjs" };
2745
+ runtime_companion_default = { abi: 1, sha256: "afe6d94b406c8cfdc744686167ab73462564318da7eb7b51a437759af0e32f7c", file: "node/cli-afe6d94b406c8cfdc744686167ab73462564318da7eb7b51a437759af0e32f7c.cjs" };
2746
2746
  }
2747
2747
  });
2748
2748
 
@@ -3100,7 +3100,7 @@ var STANDIN_SOURCE_DIGEST;
3100
3100
  var init_swift_standin_digest = __esm({
3101
3101
  "src/swift-standin-digest.ts"() {
3102
3102
  "use strict";
3103
- STANDIN_SOURCE_DIGEST = true ? "efd773c339d9f0cdb93189d322832bca352dd0d701338e88d3dbd8abdebfa05c" : standinSourceDigest();
3103
+ STANDIN_SOURCE_DIGEST = true ? "c4178088419ff254271d3b739cc0d5c196fb4044efb839fd0bf5675b2bde1327" : standinSourceDigest();
3104
3104
  }
3105
3105
  });
3106
3106
 
@@ -4753,7 +4753,7 @@ var init_swift_compile = __esm({
4753
4753
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
4754
4754
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
4755
4755
  ).join("");
4756
- compilerSourceDigest = true ? "bc384e05829330ac85b4cd23cd2a41bb18fa4c35b7008ba98d417b716f3a0605" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4756
+ compilerSourceDigest = true ? "344d6e89c2ee7f5228ccf31a6be0c1366904d145c73cd31062c481e5410a4187" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4757
4757
  CORE_FOUNDATION_HANDLE_IMPORTS = [
4758
4758
  "CFAllocator",
4759
4759
  "CFArray",
@@ -5277,7 +5277,7 @@ var init_react_native_core = __esm({
5277
5277
  init_swift_distribution();
5278
5278
  init_swift_package();
5279
5279
  init_swiftContract();
5280
- recipe = true ? "f25e6eebbd94a819a8b56491f6d54aa97b8d96b6a98e78011e85be546a8cb2bd" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
5280
+ recipe = true ? "95c43b6522d2611bfb11c1f6e191409cf1e5dd9af931c679be03191dc600d01c" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
5281
5281
  }
5282
5282
  });
5283
5283
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (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.2271 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2273 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -11,10 +11,6 @@ export declare const SF_PRO_VERTICAL_METRICS: {
11
11
  lineGap: number;
12
12
  unitsPerEm: number;
13
13
  };
14
- export declare function iosEmojiFontMetrics(fontSize: number, systemFont: boolean): {
15
- ascent: number;
16
- descent: number;
17
- };
18
14
  export declare function iosEmojiGlyphBearing(fontSize: number, systemFont: boolean): number;
19
15
  export declare const SF_PRO_VARIANT_FONT_FAMILY = "SF Pro Variant";
20
16
  export declare const SF_PRO_ROUNDED_FONT_FAMILY = "SF Pro Rounded";
@@ -120,7 +116,6 @@ export interface FontVerticalMetrics {
120
116
  }
121
117
  export declare function registerEngineFontVerticalMetrics(family: string, metrics: FontVerticalMetrics): void;
122
118
  export declare function getRegisteredFontVerticalMetrics(family: string | undefined, fontWeight?: unknown, fontStyle?: unknown): FontVerticalMetrics | undefined;
123
- export declare function resolveCustomFontBaselineOffset(metrics: FontVerticalMetrics, fontSize: number, lineHeight: unknown, skiaBaseline: number, runAscenderRise?: number | null): number;
124
119
  export declare function resetRegisteredFontFamilies(): void;
125
120
  export declare function resolveFontVariantFeatures(fontVariant: readonly string[] | undefined): string[];
126
121
  export declare function needsSystemVariantFace(fontVariant: readonly string[] | undefined, fontFamily: string | undefined, caseSensitiveForms?: true): boolean;
@@ -134,14 +129,7 @@ export declare function resolveSystemTextOffset(fontFamily: string | undefined,
134
129
  y: number;
135
130
  };
136
131
  export declare function resolveSystemTextLineHeightAdjustment(lineHeight: unknown, fontSize: number, fontFamily: string | undefined, swiftUI: boolean): number;
137
- export declare function resolveAndroidSystemFontMetrics(fontSize: number, fontFamily: string | undefined, physicalPixel: number, lineHeight?: number, includeFontPadding?: boolean, composeText?: boolean, androidTextSize?: SootSimStyle['_androidTextSize']): {
138
- ascent: number;
139
- descent: number;
140
- height: number;
141
- paddingTop: number;
142
- paddingBottom: number;
143
- } | null;
144
- export declare function resolveSystemLineHeightMultiplier(lineHeight: unknown, fontSize: number, fontFamily: string | undefined, composeText?: boolean, androidTextSize?: SootSimStyle['_androidTextSize']): number | null;
132
+ export declare function resolveAndroidSystemFontMetrics(fontSize: number, fontFamily: string | undefined, physicalPixel: number, lineHeight?: number, includeFontPadding?: boolean, composeText?: boolean, androidTextSize?: SootSimStyle['_androidTextSize']): import("./text-metric-policy.d.ts").AndroidSystemFontMetrics | null;
145
133
  export declare function resolveNaturalTextLineHeight(lineHeight: unknown, fontSize: number, fontFamily: string | undefined, fontWeight?: unknown, fontStyle?: unknown, composeText?: boolean, androidTextSize?: SootSimStyle['_androidTextSize']): number | null;
146
134
  export declare function resolveSystemTextMeasuredHeightTrim(lineHeight: unknown, fontSize: number, fontFamily: string | undefined, physicalPixel: number): number;
147
135
  export declare function resolveEngineAssetUrls(base: string, urls: readonly string[], pageUrl: string): string[];
@@ -254,6 +254,8 @@ export declare function setGpuSceneFramesHeld(held: boolean): void;
254
254
  export declare function shouldSkipLiveFramePublish(channelId: string): boolean;
255
255
  export declare function clearLiveFrameInflight(channelId: string): void;
256
256
  export declare function storeLiveFrame(channelId: string, bitmap: ImageFrameSource): void;
257
+ export declare function presentLiveFrameImage(channelId: string, image: SkImage | null): void;
258
+ export declare function noteLiveFrameLayerPresent(channelId: string): void;
257
259
  export declare function clearLiveFrame(channelId: string): void;
258
260
  export declare function storeWebViewFrame(surfaceId: string, generation: number, instanceId: string, bitmap: ImageBitmap, contentSize: {
259
261
  width: number;
@@ -26,7 +26,6 @@ export declare function firstLineRunAscender(runs: {
26
26
  ascenderAboveRoot: number;
27
27
  }[] | null, firstLineEnd: number): number | null;
28
28
  export declare function iosParagraphBaselineOffset(input: ParagraphBaselineInputs): number | null;
29
- export declare function iosFirstTextLineCenter(input: ParagraphBaselineInputs, capHeight: number): number | null;
30
29
  export interface TextGuides {
31
30
  firstTextLineCenter: number;
32
31
  firstTextBaseline: number;
@@ -0,0 +1,72 @@
1
+ import type { SootSimStyle } from './types.d.ts';
2
+ export declare const TEXT_WIDTH_CEIL = 0;
3
+ export declare const TEXT_WIDTH_FABRIC = 1;
4
+ export declare const TEXT_WIDTH_WIDEST_LINE = 2;
5
+ export declare const TEXT_WIDTH_ANDROID = 3;
6
+ export declare const TEXT_HEIGHT_CEIL = 0;
7
+ export declare const TEXT_HEIGHT_ANDROID_SYSTEM = 1;
8
+ export declare const TEXT_HEIGHT_RAW = 2;
9
+ export declare function bindTextMetricPolicy(ck: object): void;
10
+ export declare function roundTextWidth(raw: number, pixel: number, epsilon: number, widthPolicy: number): number;
11
+ export declare function roundTextHeight(raw: number, pixel: number, epsilon: number, heightPolicy: number): number;
12
+ export declare function ceilPhysicalPixels(pixels: number): number;
13
+ export declare function fabricAttachmentExtent(extent: number, scale: number): number;
14
+ export declare function androidLineHeight(lineHeight: number, scale: number): number;
15
+ export declare function scaleTextFontSize(fontSize: number, ratio?: number | null, composeText?: boolean, androidTextSize?: SootSimStyle['_androidTextSize']): number;
16
+ export interface AndroidSystemFontMetrics {
17
+ ascent: number;
18
+ descent: number;
19
+ height: number;
20
+ paddingTop: number;
21
+ paddingBottom: number;
22
+ }
23
+ export declare function androidSystemFontMetrics(fontPixels: number, pixel: number, lineHeight: number | undefined, includeFontPadding: boolean): AndroidSystemFontMetrics;
24
+ export declare function iosSystemLineHeightAdjustment(fontSize: number): number;
25
+ export declare function iosSystemMeasuredHeightTrim(fontSize: number, pixel: number): number;
26
+ export declare function iosSystemLineHeight(fontSize: number): number;
27
+ export declare function iosNaturalLineHeight(ascender: number, descender: number, unitsPerEm: number, fontSize: number): number;
28
+ export declare function iosEmojiFontMetrics(fontSize: number, systemFont: boolean): {
29
+ ascent: number;
30
+ descent: number;
31
+ };
32
+ export declare const IOS_BASELINE: {
33
+ readonly flags: 0;
34
+ readonly fontSize: 1;
35
+ readonly firstLineBaseline: 2;
36
+ readonly lineCount: 3;
37
+ readonly firstLineAscender: 4;
38
+ readonly paragraphLeading: 5;
39
+ readonly paragraphLineHeight: 6;
40
+ readonly firstFragmentY: 7;
41
+ readonly textFontScale: 8;
42
+ readonly contentHeight: 9;
43
+ readonly deviceScale: 10;
44
+ readonly fieldLineTop: 11;
45
+ readonly hostContentTop: 12;
46
+ readonly hostContentHeight: 13;
47
+ readonly styleLineAscent: 14;
48
+ readonly styleLineHeight: 15;
49
+ readonly ascender: 16;
50
+ readonly descender: 17;
51
+ readonly unitsPerEm: 18;
52
+ readonly styleAscender: 19;
53
+ readonly styleDescender: 20;
54
+ readonly styleUnitsPerEm: 21;
55
+ readonly naturalLineHeight: 22;
56
+ };
57
+ export declare const IOS_BASELINE_UIKIT_LABEL: number;
58
+ export declare const IOS_BASELINE_SWIFTUI_TEXT: number;
59
+ export declare const IOS_BASELINE_CORE_TEXT_LINE: number;
60
+ export declare const IOS_BASELINE_FIELD_LINE: number;
61
+ export declare const IOS_BASELINE_UIKIT_LABEL_CENTERED_SHRINK: number;
62
+ export declare const IOS_BASELINE_TEXTKIT_LEADING_ABOVE: number;
63
+ export declare const IOS_BASELINE_EXPLICIT_LINE_HEIGHT: number;
64
+ export declare const IOS_BASELINE_FIRST_LINE_HAS_EMOJI: number;
65
+ export declare const IOS_BASELINE_SYSTEM_FONT: number;
66
+ export declare const IOS_BASELINE_MINIMUM_SCALE_FACTOR: number;
67
+ export declare const IOS_BASELINE_STYLE_LINE_ASCENT: number;
68
+ export declare const IOS_BASELINE_STYLE_LINE_HEIGHT: number;
69
+ export declare function iosBaselineInputs(): Float64Array;
70
+ export declare function readIosParagraphBaselineOffset(): number | null;
71
+ export declare function readIosCompressedBaseline(): number | null;
72
+ export declare function readIosTextGuides(capHeight: number, lastLineBaseline: number): [firstTextLineCenter: number, firstTextBaseline: number, lastTextBaseline: number];
@@ -62,6 +62,7 @@ export interface WebGpuTextureDescriptorPort {
62
62
  readonly sampleCount?: number;
63
63
  readonly mipLevelCount?: number;
64
64
  readonly dimension?: GPUTextureDimension;
65
+ readonly viewFormats?: GPUTextureFormat[];
65
66
  }
66
67
  export interface WebGpuBufferDescriptorPort {
67
68
  readonly label?: string;
@@ -5,6 +5,7 @@ import type { GPUUploadTrace } from './compositor-protocol.d.ts';
5
5
  import type { RenderTree } from './compositor-runtime/render-tree.d.ts';
6
6
  import type { WebGpuGraphiteSubmissionBudget } from './webgpu-frame-transaction.d.ts';
7
7
  import type { WebGpuReadbackKind } from './webgpu-readback-scheduler.d.ts';
8
+ import type { WebGpuWireServer, WebGpuWireServerOptions } from './webgpu-wire-server.d.ts';
8
9
  import type { FontMgr, Image as SkImage, Surface } from 'canvaskit-wasm';
9
10
  export type CompositorGpuBackendKind = 'graphite' | 'ganesh';
10
11
  export type CompositorFrameKind = 'display' | 'capture' | 'auxiliary';
@@ -154,6 +155,7 @@ export interface CompositorGpuBackend {
154
155
  readonly programDevice: GPUDevice | null;
155
156
  createProgramTarget(display: CompositorGpuDisplay, generation: number, width: number, height: number): CompositorGpuTarget;
156
157
  programTexture(target: CompositorGpuTarget): GPUTexture;
158
+ createWebGpuWire(options: Pick<WebGpuWireServerOptions, 'post' | 'presentLayer'>): WebGpuWireServer | null;
157
159
  targetImage(target: CompositorGpuTarget): SkImage;
158
160
  readonly admissionLimit: number;
159
161
  tryAdmit(source: GpuFrameSource, graphiteSubmissionBudget?: WebGpuGraphiteSubmissionBudget, defer?: boolean, urgent?: boolean): CompositorGpuAdmissionDecision;
@@ -1,4 +1,5 @@
1
1
  import { type ImageFrameSource } from './image-pixel-contract.d.ts';
2
+ import type { WebGpuWireFromRenderer, WebGpuWireToRenderer } from './webgpu-wire-protocol.d.ts';
2
3
  export interface RemoteLiveFrameIdentity {
3
4
  sessionId: string;
4
5
  seq: number;
@@ -11,7 +12,7 @@ export type LiveFrameMirrorEnvelope = {
11
12
  captureRequestId?: number;
12
13
  remoteFrame?: RemoteLiveFrameIdentity;
13
14
  };
14
- export type LiveFramePortMessage = {
15
+ export type LiveFramePortMessage = WebGpuWireToRenderer | {
15
16
  type: 'liveFrameMirror';
16
17
  payload: LiveFrameMirrorEnvelope;
17
18
  } | {
@@ -20,8 +21,10 @@ export type LiveFramePortMessage = {
20
21
  } | {
21
22
  type: 'sceneLiveFrameSnapshot';
22
23
  surfaceId: string;
24
+ } | {
25
+ type: 'sceneLiveFrameRecordStop';
23
26
  };
24
- export type LiveFramePortReply = {
27
+ export type LiveFramePortReply = WebGpuWireFromRenderer | {
25
28
  type: 'liveFrameAcked';
26
29
  channelId: string;
27
30
  } | {
@@ -31,6 +34,10 @@ export type LiveFramePortReply = {
31
34
  } | {
32
35
  type: 'sceneLiveFrameSnapshotDone';
33
36
  error?: string;
37
+ } | {
38
+ type: 'liveFrameRecorded';
39
+ channelId: string;
40
+ bitmap: ImageFrameSource;
34
41
  };
35
42
  type PostMessage = (msg: Extract<LiveFramePortMessage, {
36
43
  type: 'liveFrameMirror';
@@ -0,0 +1,69 @@
1
+ export type WebGpuWireId = number;
2
+ export type WebGpuWireCommand = readonly unknown[];
3
+ export interface WebGpuWireObjectRef {
4
+ readonly $: WebGpuWireId;
5
+ }
6
+ export declare function isWebGpuWireObjectRef(value: unknown): value is WebGpuWireObjectRef;
7
+ export interface WebGpuWireAdapterSnapshot {
8
+ readonly features: readonly string[];
9
+ readonly limits: Readonly<Record<string, number>>;
10
+ readonly info: Readonly<Record<string, string | number | boolean | undefined>>;
11
+ }
12
+ export interface WebGpuWireErrorRecord {
13
+ readonly type: 'validation' | 'out-of-memory' | 'internal' | 'pipeline';
14
+ readonly message: string;
15
+ readonly reason?: 'validation' | 'internal';
16
+ }
17
+ export interface WebGpuWireCompilationMessage {
18
+ readonly message: string;
19
+ readonly type: GPUCompilationMessageType;
20
+ readonly lineNum: number;
21
+ readonly linePos: number;
22
+ readonly offset: number;
23
+ readonly length: number;
24
+ }
25
+ export type WebGpuWireReplyValue = {
26
+ readonly kind: 'adapter';
27
+ readonly adapter: WebGpuWireAdapterSnapshot | null;
28
+ } | {
29
+ readonly kind: 'device';
30
+ } | {
31
+ readonly kind: 'done';
32
+ } | {
33
+ readonly kind: 'mapped';
34
+ readonly bytes: ArrayBuffer;
35
+ } | {
36
+ readonly kind: 'scope';
37
+ readonly error: WebGpuWireErrorRecord | null;
38
+ } | {
39
+ readonly kind: 'compilation';
40
+ readonly messages: readonly WebGpuWireCompilationMessage[];
41
+ };
42
+ export type WebGpuWireToRenderer = {
43
+ readonly type: 'gpuWireOpen';
44
+ readonly presented: SharedArrayBuffer;
45
+ } | {
46
+ readonly type: 'gpuWireBatch';
47
+ readonly commands: readonly WebGpuWireCommand[];
48
+ };
49
+ export type WebGpuWireFromRenderer = {
50
+ readonly type: 'gpuWireReply';
51
+ readonly request: number;
52
+ readonly value?: WebGpuWireReplyValue;
53
+ readonly error?: WebGpuWireErrorRecord | {
54
+ readonly type: 'operation' | 'type' | 'abort';
55
+ readonly message: string;
56
+ };
57
+ } | {
58
+ readonly type: 'gpuWireUncapturedError';
59
+ readonly device: WebGpuWireId;
60
+ readonly error: WebGpuWireErrorRecord;
61
+ } | {
62
+ readonly type: 'gpuWireDeviceLost';
63
+ readonly device: WebGpuWireId;
64
+ readonly reason: GPUDeviceLostReason;
65
+ readonly message: string;
66
+ };
67
+ export declare function isWebGpuWireFromRenderer(value: unknown): value is WebGpuWireFromRenderer;
68
+ export declare function webGpuCanvasChannel(contextId: number): string;
69
+ export declare const WEBGPU_WIRE_CANVAS_TEXTURES = 3;
@@ -0,0 +1,21 @@
1
+ import { type WebGpuWireFromRenderer, type WebGpuWireToRenderer } from './webgpu-wire-protocol.d.ts';
2
+ import type { GraphiteCanvasKitModule, GraphiteDeviceContext } from './canvaskit-webgpu.d.ts';
3
+ import type { LiveFramePixels } from './image-pixel-contract.d.ts';
4
+ import type { WebGpuFrameTransactionOwner } from './webgpu-frame-transaction.d.ts';
5
+ import type { Image as SkImage } from 'canvaskit-wasm';
6
+ export interface WebGpuWireServerOptions {
7
+ readonly canvasKit: GraphiteCanvasKitModule;
8
+ readonly deviceContext: GraphiteDeviceContext;
9
+ readonly transactionOwner: WebGpuFrameTransactionOwner;
10
+ readonly post: (message: WebGpuWireFromRenderer, transfer: Transferable[]) => void;
11
+ readonly presentLayer: (channelId: string, image: SkImage | null) => void;
12
+ }
13
+ export type WebGpuWireFrameRecorder = (channelId: string, frame: LiveFramePixels) => void;
14
+ export declare class WebGpuWireServer {
15
+ #private;
16
+ constructor(options: WebGpuWireServerOptions);
17
+ receive(message: WebGpuWireToRenderer): void;
18
+ dispose(): void;
19
+ setRecorder(recorder: WebGpuWireFrameRecorder | null): void;
20
+ readFront(channelId: string): Promise<LiveFramePixels> | null;
21
+ }
@@ -2,7 +2,7 @@ import { type ScreenshotBackgroundStyles } from '../../../../../src/screenshots/
2
2
  import type { DeviceSpec } from '../../../../../src/device-catalog.ts';
3
3
  export declare function resolveScreenshotDeviceFrameGeometry(device: Pick<DeviceSpec, 'cornerRadius' | 'frameInsets' | 'height' | 'width'>): {
4
4
  outerAspect: number;
5
- outerCornerRadius: import("../../../../../src/device-catalog.ts").CornerRadii;
5
+ outerCornerRadius: import("../settings/index.d.ts").CornerRadii;
6
6
  outerHeight: number;
7
7
  outerWidth: number;
8
8
  };
@@ -0,0 +1,23 @@
1
+ import type { LandscapeSide } from '../../../../../src/device-catalog.ts';
2
+ export type DeviceRotationState = {
3
+ active: boolean;
4
+ live: boolean;
5
+ turn: 90 | 180;
6
+ direction: -1 | 1;
7
+ landscapeSide: LandscapeSide;
8
+ progress: number;
9
+ image: HTMLCanvasElement | null;
10
+ from: {
11
+ width: number;
12
+ height: number;
13
+ };
14
+ to: {
15
+ width: number;
16
+ height: number;
17
+ };
18
+ };
19
+ type Listener = () => void;
20
+ export declare function getDeviceRotation(): DeviceRotationState;
21
+ export declare function subscribeDeviceRotation(fn: Listener): () => void;
22
+ export declare function publishDeviceRotation(patch: Partial<DeviceRotationState>): void;
23
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function deviceTurn(width: number, height: number): {
2
+ durationMs: number;
3
+ progress(elapsedMs: number): number;
4
+ };
@@ -0,0 +1,19 @@
1
+ import type { DisplayHold } from '../../../../../src/device-catalog.ts';
2
+ export type ClientBox = {
3
+ left: number;
4
+ top: number;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare function displayHoldOf(element: Element): DisplayHold;
9
+ export declare function unturnClient(box: ClientBox, hold: DisplayHold, clientX: number, clientY: number): {
10
+ box: ClientBox;
11
+ clientX: number;
12
+ clientY: number;
13
+ };
14
+ export declare function turnClient(box: ClientBox, hold: DisplayHold, clientX: number, clientY: number): {
15
+ clientX: number;
16
+ clientY: number;
17
+ };
18
+ export declare function unturnBox(box: ClientBox, around: ClientBox, hold: DisplayHold): ClientBox;
19
+ export declare function turnBox(box: ClientBox, around: ClientBox, hold: DisplayHold): ClientBox;
@@ -0,0 +1,26 @@
1
+ import type { DuoFoldFace, DuoFoldLook } from './duo-fold-bus.d.ts';
2
+ export declare const DUO_FOLD_IMAGE_MAX_SIDE = 1200;
3
+ export declare function duoFoldLookFade(look: DuoFoldLook | null, now: number): number;
4
+ export declare function duoFoldLookStrength(look: DuoFoldLook | null, now: number): number;
5
+ export declare function duoFoldInnerBrightness(progress: number, strength: number, changesDisplay: boolean): number;
6
+ type Vec2 = readonly [number, number];
7
+ export type DuoFoldFacePose = {
8
+ hinge: Vec2;
9
+ free: Vec2;
10
+ display: 'outer' | 'inner';
11
+ turn: number;
12
+ strength: number;
13
+ camera: {
14
+ center: Vec2;
15
+ radius: Vec2;
16
+ } | null;
17
+ };
18
+ export declare function drawDuoFoldEffect(target: HTMLCanvasElement, source: HTMLCanvasElement, pose: DuoFoldFacePose): boolean;
19
+ export declare class DuoFoldEffectPass {
20
+ private readonly programs;
21
+ private readonly framebuffer;
22
+ constructor(gl: WebGL2RenderingContext);
23
+ draw(source: DuoFoldFace | ImageData, revision: number, pose: DuoFoldFacePose, target: WebGLTexture): boolean;
24
+ destroy(): void;
25
+ }
26
+ export {};
@@ -0,0 +1,13 @@
1
+ import { type DeviceSpec } from '../../../../../src/device-catalog.ts';
2
+ import { type DuoFoldFace } from './duo-fold-bus.d.ts';
3
+ export declare const DUO_BOOK_PROGRESS: number;
4
+ export interface DuoFoldDisplay {
5
+ prepare: (() => Promise<void>) | null;
6
+ departing(spec: DeviceSpec): DuoFoldFace | null;
7
+ subscribe(listener: () => void): () => void;
8
+ presented(): DuoFoldFace | null;
9
+ frameToken(): number;
10
+ markDirty(): void;
11
+ }
12
+ export declare const pageDuoFoldDisplay: DuoFoldDisplay;
13
+ export declare function installDuoFoldEngine(search: string, display: DuoFoldDisplay): void;