peachsim 0.1.822 → 0.1.824
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/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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 +15 -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 +169 -44
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +169 -44
- 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 +200 -77
- package/dist-lib/host/fetch-proxy-handler.cjs +24 -34
- 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 +33 -3
- package/dist-lib/index.cjs +1 -1
- 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 +1 -1
- 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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +200 -77
- package/dist-lib/swift-compile.cjs +169 -44
- package/dist-lib/swift-compile.mjs +169 -44
- 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 +169 -44
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/backend-origin.ts +27 -0
- package/src/host/bridge-host.ts +8 -3
- package/src/host/fetch-proxy-handler.ts +20 -37
- package/src/host/fetch-proxy-transport.ts +4 -8
- package/src/host/websocket-proxy.ts +12 -0
- package/src/swift-compile.ts +183 -48
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -30,6 +30,7 @@ __export(backend_origin_exports, {
|
|
|
30
30
|
isContrastBackendHost: () => isContrastBackendHost,
|
|
31
31
|
isContrastBackendOrigin: () => isContrastBackendOrigin,
|
|
32
32
|
isLoopbackHost: () => isLoopbackHost,
|
|
33
|
+
isTrustedBridgeRequest: () => isTrustedBridgeRequest,
|
|
33
34
|
loopbackOriginOf: () => loopbackOriginOf,
|
|
34
35
|
normalizeHostname: () => normalizeHostname,
|
|
35
36
|
resolveBrowserAssetProxyUrl: () => resolveBrowserAssetProxyUrl,
|
|
@@ -50,6 +51,18 @@ function isLoopbackHost(hostname) {
|
|
|
50
51
|
const normalized = normalizeHostname(hostname);
|
|
51
52
|
return normalized === "localhost" || normalized.endsWith(".localhost") || normalized === "0.0.0.0" || normalized === "::1" || /^127(?:\.\d{1,3}){3}$/.test(normalized);
|
|
52
53
|
}
|
|
54
|
+
function isTrustedBridgeRequest(headers) {
|
|
55
|
+
const origin = headers.origin;
|
|
56
|
+
if (origin === void 0) return true;
|
|
57
|
+
try {
|
|
58
|
+
const { hostname, host } = new URL(String(origin));
|
|
59
|
+
return isLoopbackHost(hostname) || [headers.host, headers[":authority"], headers["x-forwarded-host"]].some(
|
|
60
|
+
(value) => typeof value === "string" && value.toLowerCase() === host
|
|
61
|
+
);
|
|
62
|
+
} catch {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
53
66
|
function loopbackOriginOf(value) {
|
|
54
67
|
try {
|
|
55
68
|
const url = new URL(value);
|
|
@@ -108,6 +121,7 @@ function resolveContrastBackendOrigin(currentOrigin) {
|
|
|
108
121
|
isContrastBackendHost,
|
|
109
122
|
isContrastBackendOrigin,
|
|
110
123
|
isLoopbackHost,
|
|
124
|
+
isTrustedBridgeRequest,
|
|
111
125
|
loopbackOriginOf,
|
|
112
126
|
normalizeHostname,
|
|
113
127
|
resolveBrowserAssetProxyUrl,
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1226,10 +1226,25 @@ function tableProtocolConformances(sources) {
|
|
|
1226
1226
|
for (const source of sources) {
|
|
1227
1227
|
const code = swiftCodeMask(source);
|
|
1228
1228
|
for (const owner of code.matchAll(
|
|
1229
|
-
/\b(?:class|extension)\s+([A-Za-z_]\w*)
|
|
1229
|
+
/\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
|
|
1230
1230
|
)) {
|
|
1231
|
+
const header = owner[2];
|
|
1232
|
+
let depth = 0;
|
|
1233
|
+
let colon = -1;
|
|
1234
|
+
for (let at = 0; at < header.length; at++) {
|
|
1235
|
+
if (header[at] === "<") depth++;
|
|
1236
|
+
else if (header[at] === ">") depth--;
|
|
1237
|
+
else if (header[at] === ":" && depth === 0) {
|
|
1238
|
+
colon = at;
|
|
1239
|
+
break;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
if (colon === -1) continue;
|
|
1231
1243
|
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
1232
|
-
for (const type of
|
|
1244
|
+
for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
|
|
1245
|
+
const name2 = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
|
|
1246
|
+
if (name2 && !type.includes("<")) inherited.add(name2);
|
|
1247
|
+
}
|
|
1233
1248
|
parents.set(owner[1], inherited);
|
|
1234
1249
|
}
|
|
1235
1250
|
}
|
|
@@ -1253,47 +1268,148 @@ function tableProtocolConformances(sources) {
|
|
|
1253
1268
|
function lowerTableProtocolMethods(source, conformances) {
|
|
1254
1269
|
const code = swiftCodeMask(source);
|
|
1255
1270
|
const dataSource = {
|
|
1256
|
-
numberOfRowsInSection:
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1271
|
+
numberOfRowsInSection: [
|
|
1272
|
+
"tableView:numberOfRowsInSection:",
|
|
1273
|
+
"_:UITableView,numberOfRowsInSection:Int->Int"
|
|
1274
|
+
],
|
|
1275
|
+
cellForRowAt: [
|
|
1276
|
+
"tableView:cellForRowAtIndexPath:",
|
|
1277
|
+
"_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
|
|
1278
|
+
],
|
|
1279
|
+
titleForHeaderInSection: [
|
|
1280
|
+
"tableView:titleForHeaderInSection:",
|
|
1281
|
+
"_:UITableView,titleForHeaderInSection:Int->String?"
|
|
1282
|
+
],
|
|
1283
|
+
titleForFooterInSection: [
|
|
1284
|
+
"tableView:titleForFooterInSection:",
|
|
1285
|
+
"_:UITableView,titleForFooterInSection:Int->String?"
|
|
1286
|
+
],
|
|
1287
|
+
canEditRowAt: [
|
|
1288
|
+
"tableView:canEditRowAtIndexPath:",
|
|
1289
|
+
"_:UITableView,canEditRowAt:IndexPath->Bool"
|
|
1290
|
+
],
|
|
1291
|
+
commit: [
|
|
1292
|
+
"tableView:commitEditingStyle:forRowAtIndexPath:",
|
|
1293
|
+
"_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
|
|
1294
|
+
]
|
|
1262
1295
|
};
|
|
1263
1296
|
const delegate = {
|
|
1264
|
-
willDisplay:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1297
|
+
willDisplay: [
|
|
1298
|
+
"tableView:willDisplayCell:forRowAtIndexPath:",
|
|
1299
|
+
"_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
|
|
1300
|
+
],
|
|
1301
|
+
didEndDisplaying: [
|
|
1302
|
+
"tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
1303
|
+
"_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
|
|
1304
|
+
],
|
|
1305
|
+
heightForRowAt: [
|
|
1306
|
+
"tableView:heightForRowAtIndexPath:",
|
|
1307
|
+
"_:UITableView,heightForRowAt:IndexPath->CGFloat"
|
|
1308
|
+
],
|
|
1309
|
+
estimatedHeightForRowAt: [
|
|
1310
|
+
"tableView:estimatedHeightForRowAtIndexPath:",
|
|
1311
|
+
"_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
|
|
1312
|
+
],
|
|
1313
|
+
heightForHeaderInSection: [
|
|
1314
|
+
"tableView:heightForHeaderInSection:",
|
|
1315
|
+
"_:UITableView,heightForHeaderInSection:Int->CGFloat"
|
|
1316
|
+
],
|
|
1317
|
+
heightForFooterInSection: [
|
|
1318
|
+
"tableView:heightForFooterInSection:",
|
|
1319
|
+
"_:UITableView,heightForFooterInSection:Int->CGFloat"
|
|
1320
|
+
],
|
|
1321
|
+
estimatedHeightForHeaderInSection: [
|
|
1322
|
+
"tableView:estimatedHeightForHeaderInSection:",
|
|
1323
|
+
"_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
|
|
1324
|
+
],
|
|
1325
|
+
estimatedHeightForFooterInSection: [
|
|
1326
|
+
"tableView:estimatedHeightForFooterInSection:",
|
|
1327
|
+
"_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
|
|
1328
|
+
],
|
|
1329
|
+
viewForHeaderInSection: [
|
|
1330
|
+
"tableView:viewForHeaderInSection:",
|
|
1331
|
+
"_:UITableView,viewForHeaderInSection:Int->UIView?"
|
|
1332
|
+
],
|
|
1333
|
+
viewForFooterInSection: [
|
|
1334
|
+
"tableView:viewForFooterInSection:",
|
|
1335
|
+
"_:UITableView,viewForFooterInSection:Int->UIView?"
|
|
1336
|
+
],
|
|
1337
|
+
willDisplayHeaderView: [
|
|
1338
|
+
"tableView:willDisplayHeaderView:forSection:",
|
|
1339
|
+
"_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
|
|
1340
|
+
],
|
|
1341
|
+
willDisplayFooterView: [
|
|
1342
|
+
"tableView:willDisplayFooterView:forSection:",
|
|
1343
|
+
"_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
|
|
1344
|
+
],
|
|
1345
|
+
didEndDisplayingHeaderView: [
|
|
1346
|
+
"tableView:didEndDisplayingHeaderView:forSection:",
|
|
1347
|
+
"_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
|
|
1348
|
+
],
|
|
1349
|
+
didEndDisplayingFooterView: [
|
|
1350
|
+
"tableView:didEndDisplayingFooterView:forSection:",
|
|
1351
|
+
"_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
|
|
1352
|
+
],
|
|
1353
|
+
shouldHighlightRowAt: [
|
|
1354
|
+
"tableView:shouldHighlightRowAtIndexPath:",
|
|
1355
|
+
"_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
|
|
1356
|
+
],
|
|
1357
|
+
didHighlightRowAt: [
|
|
1358
|
+
"tableView:didHighlightRowAtIndexPath:",
|
|
1359
|
+
"_:UITableView,didHighlightRowAt:IndexPath->Void"
|
|
1360
|
+
],
|
|
1361
|
+
didUnhighlightRowAt: [
|
|
1362
|
+
"tableView:didUnhighlightRowAtIndexPath:",
|
|
1363
|
+
"_:UITableView,didUnhighlightRowAt:IndexPath->Void"
|
|
1364
|
+
],
|
|
1365
|
+
willSelectRowAt: [
|
|
1366
|
+
"tableView:willSelectRowAtIndexPath:",
|
|
1367
|
+
"_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
|
|
1368
|
+
],
|
|
1369
|
+
willDeselectRowAt: [
|
|
1370
|
+
"tableView:willDeselectRowAtIndexPath:",
|
|
1371
|
+
"_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
|
|
1372
|
+
],
|
|
1373
|
+
didSelectRowAt: [
|
|
1374
|
+
"tableView:didSelectRowAtIndexPath:",
|
|
1375
|
+
"_:UITableView,didSelectRowAt:IndexPath->Void"
|
|
1376
|
+
],
|
|
1377
|
+
didDeselectRowAt: [
|
|
1378
|
+
"tableView:didDeselectRowAtIndexPath:",
|
|
1379
|
+
"_:UITableView,didDeselectRowAt:IndexPath->Void"
|
|
1380
|
+
],
|
|
1381
|
+
accessoryButtonTappedForRowWith: [
|
|
1382
|
+
"tableView:accessoryButtonTappedForRowWithIndexPath:",
|
|
1383
|
+
"_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
|
|
1384
|
+
],
|
|
1385
|
+
editingStyleForRowAt: [
|
|
1386
|
+
"tableView:editingStyleForRowAtIndexPath:",
|
|
1387
|
+
"_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
|
|
1388
|
+
],
|
|
1389
|
+
leadingSwipeActionsConfigurationForRowAt: [
|
|
1390
|
+
"tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
1391
|
+
"_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
1392
|
+
],
|
|
1393
|
+
trailingSwipeActionsConfigurationForRowAt: [
|
|
1394
|
+
"tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
1395
|
+
"_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
1396
|
+
],
|
|
1397
|
+
willBeginEditingRowAt: [
|
|
1398
|
+
"tableView:willBeginEditingRowAtIndexPath:",
|
|
1399
|
+
"_:UITableView,willBeginEditingRowAt:IndexPath->Void"
|
|
1400
|
+
],
|
|
1401
|
+
didEndEditingRowAt: [
|
|
1402
|
+
"tableView:didEndEditingRowAtIndexPath:",
|
|
1403
|
+
"_:UITableView,didEndEditingRowAt:IndexPath?->Void"
|
|
1404
|
+
]
|
|
1291
1405
|
};
|
|
1292
1406
|
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
1293
1407
|
const edits = [];
|
|
1294
1408
|
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
1295
1409
|
const conforms = conformances.get(owner[1]);
|
|
1296
1410
|
if (!conforms) continue;
|
|
1411
|
+
if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
|
|
1412
|
+
continue;
|
|
1297
1413
|
const selectors = {
|
|
1298
1414
|
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
1299
1415
|
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
@@ -1317,15 +1433,24 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
1317
1433
|
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
1318
1434
|
continue;
|
|
1319
1435
|
let selector;
|
|
1320
|
-
|
|
1436
|
+
const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
|
|
1321
1437
|
signature
|
|
1322
|
-
)
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
);
|
|
1328
|
-
|
|
1438
|
+
);
|
|
1439
|
+
if (method) {
|
|
1440
|
+
const parameters = splitTopLevel(method[2]).map((parameter) => {
|
|
1441
|
+
const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
|
|
1442
|
+
return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
|
|
1443
|
+
}).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
1444
|
+
const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
1445
|
+
if (method[1] === "numberOfSections") {
|
|
1446
|
+
if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
|
|
1447
|
+
selector = "numberOfSectionsInTableView:";
|
|
1448
|
+
} else {
|
|
1449
|
+
const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
|
|
1450
|
+
const requirement = label ? selectors[label] : void 0;
|
|
1451
|
+
if (requirement && `${parameters}->${result2}` === requirement[1])
|
|
1452
|
+
selector = requirement[0];
|
|
1453
|
+
}
|
|
1329
1454
|
}
|
|
1330
1455
|
if (selector)
|
|
1331
1456
|
edits.push([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (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/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.824 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|