peachsim 0.1.2271 → 0.1.2272
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +46 -26
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +44 -24
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +46 -26
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +22 -16
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +22 -16
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +46 -26
- package/dist-lib/swift-compile.cjs +10 -4
- package/dist-lib/swift-compile.mjs +10 -4
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +11 -5
- package/dist-lib/vite.cjs +5 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -8
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +27 -0
- package/dist-types/packages/peach-engine/src/screenshots/tokens.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/settings/device-rotation-bus.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/settings/device-turn.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/settings/display-hold.d.ts +19 -0
- package/dist-types/packages/peach-engine/src/settings/duo-fold-effect.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +13 -0
- package/dist-types/packages/peach-engine/src/settings/index.d.ts +20 -0
- package/dist-types/packages/peach-engine/src/settings/schema.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/settings/store.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/react-native-autolinking.ts +27 -12
- package/src/swift-wasm-prune.ts +11 -2
- package/src/turbo-compile.ts +1 -1
- package/src/turbo-source.ts +15 -5
- package/dist-types/packages/peach-engine/src/ios/constants.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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.
|
|
1
|
+
/*! peach v0.1.2272 | (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.
|
|
1
|
+
/*! peach v0.1.2272 | (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/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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;
|
|
@@ -31548,7 +31548,7 @@ async function cliAdvertises(cli, args, token, appRoot, signal) {
|
|
|
31548
31548
|
const { stdout, stderr } = await run4("node", [cli, ...args], {
|
|
31549
31549
|
cwd: appRoot,
|
|
31550
31550
|
signal,
|
|
31551
|
-
timeout:
|
|
31551
|
+
timeout: CLI_TIMEOUT_MS,
|
|
31552
31552
|
maxBuffer: 1 * 1024 * 1024,
|
|
31553
31553
|
env: { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" }
|
|
31554
31554
|
});
|
|
@@ -31591,7 +31591,7 @@ async function reactNativeAutolinkingConfig(appRoot, platform2, signal) {
|
|
|
31591
31591
|
return autolinkerJson(
|
|
31592
31592
|
"expo-modules-autolinking react-native-config",
|
|
31593
31593
|
await run4("node", args, {
|
|
31594
|
-
timeout:
|
|
31594
|
+
timeout: CLI_TIMEOUT_MS,
|
|
31595
31595
|
maxBuffer: 8 * 1024 * 1024,
|
|
31596
31596
|
env: { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" },
|
|
31597
31597
|
// expo configuration resolves its project from cwd.
|
|
@@ -31614,25 +31614,30 @@ async function reactNativeAutolinkingConfig(appRoot, platform2, signal) {
|
|
|
31614
31614
|
);
|
|
31615
31615
|
if (bin === void 0) throw new Error(`${cliManifest} declares no CLI bin`);
|
|
31616
31616
|
const cliPath = import_node_path12.default.join(import_node_path12.default.dirname(cliManifest), bin);
|
|
31617
|
-
const
|
|
31618
|
-
|
|
31619
|
-
|
|
31620
|
-
|
|
31621
|
-
|
|
31622
|
-
|
|
31623
|
-
|
|
31617
|
+
const configManifest = JSON.parse(
|
|
31618
|
+
import_node_fs16.default.readFileSync(
|
|
31619
|
+
(0, import_node_module.createRequire)(cliManifest).resolve(
|
|
31620
|
+
"@react-native-community/cli-config/package.json"
|
|
31621
|
+
),
|
|
31622
|
+
"utf8"
|
|
31623
|
+
)
|
|
31624
|
+
);
|
|
31625
|
+
const configVersion = isRecord(configManifest) && typeof configManifest.version === "string" ? /^(\d+)\.\d+\.\d+(?:-alpha\.(\d+))?/.exec(configManifest.version) : null;
|
|
31626
|
+
if (!configVersion) throw new Error(`${cliManifest} resolves no cli-config version`);
|
|
31627
|
+
const configMajor = Number(configVersion[1]);
|
|
31628
|
+
const configArgs = configMajor > 14 || configMajor === 14 && (configVersion[2] === void 0 || Number(configVersion[2]) >= 6) ? ["config", "--platform", platform2] : ["config"];
|
|
31624
31629
|
return autolinkerJson(
|
|
31625
31630
|
`react-native ${configArgs.join(" ")}`,
|
|
31626
31631
|
await run4("node", [cliPath, ...configArgs], {
|
|
31627
31632
|
cwd: appRoot,
|
|
31628
31633
|
signal,
|
|
31629
|
-
timeout:
|
|
31634
|
+
timeout: CLI_TIMEOUT_MS,
|
|
31630
31635
|
maxBuffer: 16 * 1024 * 1024,
|
|
31631
31636
|
env: { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1", NO_COLOR: "1" }
|
|
31632
31637
|
})
|
|
31633
31638
|
);
|
|
31634
31639
|
}
|
|
31635
|
-
var import_node_child_process9, import_node_fs16, import_node_module, import_node_path12, import_node_util3, run4;
|
|
31640
|
+
var import_node_child_process9, import_node_fs16, import_node_module, import_node_path12, import_node_util3, run4, CLI_TIMEOUT_MS;
|
|
31636
31641
|
var init_react_native_autolinking = __esm({
|
|
31637
31642
|
"src/react-native-autolinking.ts"() {
|
|
31638
31643
|
"use strict";
|
|
@@ -31644,6 +31649,7 @@ var init_react_native_autolinking = __esm({
|
|
|
31644
31649
|
init_forked_script_contract();
|
|
31645
31650
|
init_is_record();
|
|
31646
31651
|
run4 = (0, import_node_util3.promisify)(import_node_child_process9.execFile);
|
|
31652
|
+
CLI_TIMEOUT_MS = 12e4;
|
|
31647
31653
|
}
|
|
31648
31654
|
});
|
|
31649
31655
|
|
|
@@ -48324,13 +48330,17 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
|
|
|
48324
48330
|
function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
48325
48331
|
const rspPath = import_node_path35.default.join(directory2, ".peach-link.rsp");
|
|
48326
48332
|
if (!import_node_fs39.default.existsSync(rspPath)) return;
|
|
48333
|
+
const staticClangTarget = new RegExp(
|
|
48334
|
+
`^(?:${staticClangTargets.map((name3) => name3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})(?:(?:Native|Swift)Implementation_[0-9a-f]+)?$`
|
|
48335
|
+
);
|
|
48336
|
+
const isStaticClangTarget = (name3) => staticClangTargets.length > 0 && staticClangTarget.test(name3);
|
|
48327
48337
|
const origRsp = import_node_fs39.default.readFileSync(rspPath, "utf8");
|
|
48328
48338
|
const tokens2 = Array.from(
|
|
48329
48339
|
origRsp.matchAll(/"([^"]+)"|(\S+)/g),
|
|
48330
48340
|
(m) => m[1] ?? m[2]
|
|
48331
48341
|
).flatMap((token) => {
|
|
48332
48342
|
const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(import_node_path35.default.basename(token))?.[1];
|
|
48333
|
-
if (!target || !
|
|
48343
|
+
if (!target || !isStaticClangTarget(target) || import_node_path35.default.basename(import_node_path35.default.dirname(token)) !== ".peach-libraries")
|
|
48334
48344
|
return [token];
|
|
48335
48345
|
const objects = import_node_path35.default.join(directory2, ".peach-native-libraries", `${target}.build`);
|
|
48336
48346
|
import_node_fs39.default.mkdirSync(objects, { recursive: true });
|
|
@@ -48400,7 +48410,9 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48400
48410
|
} else if (!inStartLib) {
|
|
48401
48411
|
if (t.endsWith("/swiftrt.o")) {
|
|
48402
48412
|
swiftrtOrigPath = t;
|
|
48403
|
-
} else if (!t.endsWith(".swift.o") &&
|
|
48413
|
+
} else if (!t.endsWith(".swift.o") && [...t.matchAll(/\/([^/]+)\.build\//g)].some(
|
|
48414
|
+
([, name3]) => name3 !== void 0 && isStaticClangTarget(name3)
|
|
48415
|
+
)) {
|
|
48404
48416
|
const obj = parseWasmObjectCached(t, false, false);
|
|
48405
48417
|
let definesObjCClassOrCategory = false;
|
|
48406
48418
|
for (let i = 0; i < obj.symKind.length; i++) {
|
|
@@ -59739,7 +59751,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59739
59751
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59740
59752
|
MULTI_MANIFEST_VERSION = 68;
|
|
59741
59753
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59742
|
-
compilerSourceDigest = true ? "
|
|
59754
|
+
compilerSourceDigest = true ? "344d6e89c2ee7f5228ccf31a6be0c1366904d145c73cd31062c481e5410a4187" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59743
59755
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59744
59756
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59745
59757
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -66210,7 +66222,7 @@ var init_swift_standin_digest = __esm({
|
|
|
66210
66222
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
66211
66223
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
66212
66224
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
66213
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
66225
|
+
STANDIN_SOURCE_DIGEST = true ? "8b48aa843be8f7e9c5387ebe4a812705365646a07e391deb75a3911fda59d7bf" : standinSourceDigest();
|
|
66214
66226
|
}
|
|
66215
66227
|
});
|
|
66216
66228
|
|
|
@@ -66673,7 +66685,7 @@ var init_package_tree_digest = __esm({
|
|
|
66673
66685
|
|
|
66674
66686
|
// src/expo-native-prebuilt.ts
|
|
66675
66687
|
function expoNativeCompilerDigestValue() {
|
|
66676
|
-
return true ? "
|
|
66688
|
+
return true ? "31dba38fbc84ff0a92d17fb4618fdb89ab93d5e37416258c8127ca505fd91d81" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66677
66689
|
}
|
|
66678
66690
|
function readSources(value) {
|
|
66679
66691
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -81904,7 +81916,10 @@ async function collectTurboSources(options) {
|
|
|
81904
81916
|
const fileFlags = new Map(
|
|
81905
81917
|
installedTargets.flatMap(
|
|
81906
81918
|
(target2) => Object.entries(target2.objc?.fileFlags ?? {}).map(
|
|
81907
|
-
([file, flags]) => [
|
|
81919
|
+
([file, flags]) => [
|
|
81920
|
+
import_node_fs92.default.realpathSync(file),
|
|
81921
|
+
{ flags, prefixHeader: target2.objc?.prefixHeader ?? null }
|
|
81922
|
+
]
|
|
81908
81923
|
)
|
|
81909
81924
|
)
|
|
81910
81925
|
);
|
|
@@ -81918,8 +81933,13 @@ async function collectTurboSources(options) {
|
|
|
81918
81933
|
(compiled ? compiledSources : textualSources).add(key2);
|
|
81919
81934
|
if (Object.hasOwn(result.files, key2)) return key2;
|
|
81920
81935
|
const disk = import_node_path88.default.join(root, relative6);
|
|
81921
|
-
const
|
|
81922
|
-
if (flags
|
|
81936
|
+
const installed2 = compiled ? fileFlags.get(import_node_fs92.default.realpathSync(disk)) : void 0;
|
|
81937
|
+
if (installed2?.flags.length) {
|
|
81938
|
+
let prefixHeader = null;
|
|
81939
|
+
if (installed2.prefixHeader) {
|
|
81940
|
+
prefixHeader = `${targetPath(targetName)}/${import_node_path88.default.basename(installed2.prefixHeader)}`;
|
|
81941
|
+
add2(prefixHeader, import_node_fs92.default.readFileSync(installed2.prefixHeader, "utf8"));
|
|
81942
|
+
}
|
|
81923
81943
|
result.nativeTargets ??= [];
|
|
81924
81944
|
let native = result.nativeTargets.find(({ name: name3 }) => name3 === targetName);
|
|
81925
81945
|
if (!native) {
|
|
@@ -81930,7 +81950,7 @@ async function collectTurboSources(options) {
|
|
|
81930
81950
|
publicHeaders: [],
|
|
81931
81951
|
flattensPublicHeaders: false,
|
|
81932
81952
|
bridgingHeader: null,
|
|
81933
|
-
prefixHeader
|
|
81953
|
+
prefixHeader,
|
|
81934
81954
|
headerSearchPaths: [
|
|
81935
81955
|
`${targetPath(targetName)}/include`,
|
|
81936
81956
|
`${targetPath(TURBO_CORE_TARGET)}/include`
|
|
@@ -81947,7 +81967,7 @@ async function collectTurboSources(options) {
|
|
|
81947
81967
|
};
|
|
81948
81968
|
result.nativeTargets.push(native);
|
|
81949
81969
|
}
|
|
81950
|
-
native.fileFlags[key2] = flags;
|
|
81970
|
+
native.fileFlags[key2] = installed2.flags;
|
|
81951
81971
|
native.sourceDirectories[key2] = import_node_path88.default.posix.dirname(key2);
|
|
81952
81972
|
}
|
|
81953
81973
|
const bytes = readPackageFile(root, disk, Infinity);
|
|
@@ -83589,7 +83609,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
83589
83609
|
files2[file] ??= source;
|
|
83590
83610
|
}
|
|
83591
83611
|
const installedCodegen = (dependencies?.nativeTargets ?? []).flatMap(
|
|
83592
|
-
(native) => Object.keys(native.sourceDirectories).filter(
|
|
83612
|
+
(native) => Object.keys(native.sourceDirectories).filter(isSwiftNativeTranslationUnit)
|
|
83593
83613
|
);
|
|
83594
83614
|
for (const copy of Object.keys(files2)) {
|
|
83595
83615
|
const tail = /\/upstream\/ReactCodegen\/(.+)$/.exec(copy)?.[1];
|
|
@@ -84247,7 +84267,7 @@ var init_react_native_core = __esm({
|
|
|
84247
84267
|
init_swift_distribution();
|
|
84248
84268
|
init_swift_package();
|
|
84249
84269
|
init_swiftContract();
|
|
84250
|
-
recipe = true ? "
|
|
84270
|
+
recipe = true ? "95c43b6522d2611bfb11c1f6e191409cf1e5dd9af931c679be03191dc600d01c" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
84251
84271
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
84252
84272
|
building = /* @__PURE__ */ new Map();
|
|
84253
84273
|
}
|
|
@@ -88112,7 +88132,7 @@ var init_nitro_superset = __esm({
|
|
|
88112
88132
|
init_nitroContract();
|
|
88113
88133
|
init_swift_standin_digest();
|
|
88114
88134
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88115
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
88135
|
+
NITRO_COMPILER_DIGEST = true ? "84ac3343e51f5a18dae5437cf96144ec1981aae8f6f213f7f707dc86c598591d" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88116
88136
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88117
88137
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88118
88138
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -88820,7 +88840,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
88820
88840
|
var runtime_companion_default;
|
|
88821
88841
|
var init_runtime_companion = __esm({
|
|
88822
88842
|
"runtime-companion.json"() {
|
|
88823
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
88843
|
+
runtime_companion_default = { abi: 1, sha256: "afe6d94b406c8cfdc744686167ab73462564318da7eb7b51a437759af0e32f7c", file: "node/cli-afe6d94b406c8cfdc744686167ab73462564318da7eb7b51a437759af0e32f7c.cjs" };
|
|
88824
88844
|
}
|
|
88825
88845
|
});
|
|
88826
88846
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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 || !
|
|
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") &&
|
|
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 ? "
|
|
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.
|
|
1
|
+
/*! peach v0.1.2272 | (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 || !
|
|
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") &&
|
|
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 ? "
|
|
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.
|
|
1
|
+
/*! peach v0.1.2272 | (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.
|
|
1
|
+
/*! peach v0.1.2272 | (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.
|
|
1
|
+
/*! peach v0.1.2272 | (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/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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 || !
|
|
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") &&
|
|
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 ? "
|
|
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 ? "
|
|
32436
|
+
var STANDIN_SOURCE_DIGEST = true ? "8b48aa843be8f7e9c5387ebe4a812705365646a07e391deb75a3911fda59d7bf" : 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.
|
|
1
|
+
/*! peach v0.1.2272 | (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: "
|
|
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 ? "
|
|
3103
|
+
STANDIN_SOURCE_DIGEST = true ? "8b48aa843be8f7e9c5387ebe4a812705365646a07e391deb75a3911fda59d7bf" : 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 ? "
|
|
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 ? "
|
|
5280
|
+
recipe = true ? "95c43b6522d2611bfb11c1f6e191409cf1e5dd9af931c679be03191dc600d01c" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5281
5281
|
}
|
|
5282
5282
|
});
|
|
5283
5283
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2272 | (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;
|
|
@@ -134,14 +134,7 @@ export declare function resolveSystemTextOffset(fontFamily: string | undefined,
|
|
|
134
134
|
y: number;
|
|
135
135
|
};
|
|
136
136
|
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;
|
|
137
|
+
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
138
|
export declare function resolveNaturalTextLineHeight(lineHeight: unknown, fontSize: number, fontFamily: string | undefined, fontWeight?: unknown, fontStyle?: unknown, composeText?: boolean, androidTextSize?: SootSimStyle['_androidTextSize']): number | null;
|
|
146
139
|
export declare function resolveSystemTextMeasuredHeightTrim(lineHeight: unknown, fontSize: number, fontFamily: string | undefined, physicalPixel: number): number;
|
|
147
140
|
export declare function resolveEngineAssetUrls(base: string, urls: readonly string[], pageUrl: string): string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
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;
|
|
@@ -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("
|
|
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,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;
|