peachsim 0.1.822 → 0.1.823
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 +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 +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 +169 -44
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +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 +169 -44
- 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/swift-compile.ts +183 -48
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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.823 | (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.823 | (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/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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.823 | (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.823 | (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/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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.823 | (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;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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;
|
|
@@ -30022,10 +30022,25 @@ function tableProtocolConformances(sources) {
|
|
|
30022
30022
|
for (const source of sources) {
|
|
30023
30023
|
const code = swiftCodeMask(source);
|
|
30024
30024
|
for (const owner of code.matchAll(
|
|
30025
|
-
/\b(?:class|extension)\s+([A-Za-z_]\w*)
|
|
30025
|
+
/\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
|
|
30026
30026
|
)) {
|
|
30027
|
+
const header = owner[2];
|
|
30028
|
+
let depth = 0;
|
|
30029
|
+
let colon = -1;
|
|
30030
|
+
for (let at = 0; at < header.length; at++) {
|
|
30031
|
+
if (header[at] === "<") depth++;
|
|
30032
|
+
else if (header[at] === ">") depth--;
|
|
30033
|
+
else if (header[at] === ":" && depth === 0) {
|
|
30034
|
+
colon = at;
|
|
30035
|
+
break;
|
|
30036
|
+
}
|
|
30037
|
+
}
|
|
30038
|
+
if (colon === -1) continue;
|
|
30027
30039
|
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
30028
|
-
for (const type of
|
|
30040
|
+
for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
|
|
30041
|
+
const name2 = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
|
|
30042
|
+
if (name2 && !type.includes("<")) inherited.add(name2);
|
|
30043
|
+
}
|
|
30029
30044
|
parents.set(owner[1], inherited);
|
|
30030
30045
|
}
|
|
30031
30046
|
}
|
|
@@ -30049,47 +30064,148 @@ function tableProtocolConformances(sources) {
|
|
|
30049
30064
|
function lowerTableProtocolMethods(source, conformances) {
|
|
30050
30065
|
const code = swiftCodeMask(source);
|
|
30051
30066
|
const dataSource = {
|
|
30052
|
-
numberOfRowsInSection:
|
|
30053
|
-
|
|
30054
|
-
|
|
30055
|
-
|
|
30056
|
-
|
|
30057
|
-
|
|
30067
|
+
numberOfRowsInSection: [
|
|
30068
|
+
"tableView:numberOfRowsInSection:",
|
|
30069
|
+
"_:UITableView,numberOfRowsInSection:Int->Int"
|
|
30070
|
+
],
|
|
30071
|
+
cellForRowAt: [
|
|
30072
|
+
"tableView:cellForRowAtIndexPath:",
|
|
30073
|
+
"_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
|
|
30074
|
+
],
|
|
30075
|
+
titleForHeaderInSection: [
|
|
30076
|
+
"tableView:titleForHeaderInSection:",
|
|
30077
|
+
"_:UITableView,titleForHeaderInSection:Int->String?"
|
|
30078
|
+
],
|
|
30079
|
+
titleForFooterInSection: [
|
|
30080
|
+
"tableView:titleForFooterInSection:",
|
|
30081
|
+
"_:UITableView,titleForFooterInSection:Int->String?"
|
|
30082
|
+
],
|
|
30083
|
+
canEditRowAt: [
|
|
30084
|
+
"tableView:canEditRowAtIndexPath:",
|
|
30085
|
+
"_:UITableView,canEditRowAt:IndexPath->Bool"
|
|
30086
|
+
],
|
|
30087
|
+
commit: [
|
|
30088
|
+
"tableView:commitEditingStyle:forRowAtIndexPath:",
|
|
30089
|
+
"_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
|
|
30090
|
+
]
|
|
30058
30091
|
};
|
|
30059
30092
|
const delegate = {
|
|
30060
|
-
willDisplay:
|
|
30061
|
-
|
|
30062
|
-
|
|
30063
|
-
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
|
|
30072
|
-
|
|
30073
|
-
|
|
30074
|
-
|
|
30075
|
-
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30079
|
-
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
|
|
30083
|
-
|
|
30084
|
-
|
|
30085
|
-
|
|
30086
|
-
|
|
30093
|
+
willDisplay: [
|
|
30094
|
+
"tableView:willDisplayCell:forRowAtIndexPath:",
|
|
30095
|
+
"_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
|
|
30096
|
+
],
|
|
30097
|
+
didEndDisplaying: [
|
|
30098
|
+
"tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
30099
|
+
"_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
|
|
30100
|
+
],
|
|
30101
|
+
heightForRowAt: [
|
|
30102
|
+
"tableView:heightForRowAtIndexPath:",
|
|
30103
|
+
"_:UITableView,heightForRowAt:IndexPath->CGFloat"
|
|
30104
|
+
],
|
|
30105
|
+
estimatedHeightForRowAt: [
|
|
30106
|
+
"tableView:estimatedHeightForRowAtIndexPath:",
|
|
30107
|
+
"_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
|
|
30108
|
+
],
|
|
30109
|
+
heightForHeaderInSection: [
|
|
30110
|
+
"tableView:heightForHeaderInSection:",
|
|
30111
|
+
"_:UITableView,heightForHeaderInSection:Int->CGFloat"
|
|
30112
|
+
],
|
|
30113
|
+
heightForFooterInSection: [
|
|
30114
|
+
"tableView:heightForFooterInSection:",
|
|
30115
|
+
"_:UITableView,heightForFooterInSection:Int->CGFloat"
|
|
30116
|
+
],
|
|
30117
|
+
estimatedHeightForHeaderInSection: [
|
|
30118
|
+
"tableView:estimatedHeightForHeaderInSection:",
|
|
30119
|
+
"_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
|
|
30120
|
+
],
|
|
30121
|
+
estimatedHeightForFooterInSection: [
|
|
30122
|
+
"tableView:estimatedHeightForFooterInSection:",
|
|
30123
|
+
"_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
|
|
30124
|
+
],
|
|
30125
|
+
viewForHeaderInSection: [
|
|
30126
|
+
"tableView:viewForHeaderInSection:",
|
|
30127
|
+
"_:UITableView,viewForHeaderInSection:Int->UIView?"
|
|
30128
|
+
],
|
|
30129
|
+
viewForFooterInSection: [
|
|
30130
|
+
"tableView:viewForFooterInSection:",
|
|
30131
|
+
"_:UITableView,viewForFooterInSection:Int->UIView?"
|
|
30132
|
+
],
|
|
30133
|
+
willDisplayHeaderView: [
|
|
30134
|
+
"tableView:willDisplayHeaderView:forSection:",
|
|
30135
|
+
"_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
|
|
30136
|
+
],
|
|
30137
|
+
willDisplayFooterView: [
|
|
30138
|
+
"tableView:willDisplayFooterView:forSection:",
|
|
30139
|
+
"_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
|
|
30140
|
+
],
|
|
30141
|
+
didEndDisplayingHeaderView: [
|
|
30142
|
+
"tableView:didEndDisplayingHeaderView:forSection:",
|
|
30143
|
+
"_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
|
|
30144
|
+
],
|
|
30145
|
+
didEndDisplayingFooterView: [
|
|
30146
|
+
"tableView:didEndDisplayingFooterView:forSection:",
|
|
30147
|
+
"_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
|
|
30148
|
+
],
|
|
30149
|
+
shouldHighlightRowAt: [
|
|
30150
|
+
"tableView:shouldHighlightRowAtIndexPath:",
|
|
30151
|
+
"_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
|
|
30152
|
+
],
|
|
30153
|
+
didHighlightRowAt: [
|
|
30154
|
+
"tableView:didHighlightRowAtIndexPath:",
|
|
30155
|
+
"_:UITableView,didHighlightRowAt:IndexPath->Void"
|
|
30156
|
+
],
|
|
30157
|
+
didUnhighlightRowAt: [
|
|
30158
|
+
"tableView:didUnhighlightRowAtIndexPath:",
|
|
30159
|
+
"_:UITableView,didUnhighlightRowAt:IndexPath->Void"
|
|
30160
|
+
],
|
|
30161
|
+
willSelectRowAt: [
|
|
30162
|
+
"tableView:willSelectRowAtIndexPath:",
|
|
30163
|
+
"_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
|
|
30164
|
+
],
|
|
30165
|
+
willDeselectRowAt: [
|
|
30166
|
+
"tableView:willDeselectRowAtIndexPath:",
|
|
30167
|
+
"_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
|
|
30168
|
+
],
|
|
30169
|
+
didSelectRowAt: [
|
|
30170
|
+
"tableView:didSelectRowAtIndexPath:",
|
|
30171
|
+
"_:UITableView,didSelectRowAt:IndexPath->Void"
|
|
30172
|
+
],
|
|
30173
|
+
didDeselectRowAt: [
|
|
30174
|
+
"tableView:didDeselectRowAtIndexPath:",
|
|
30175
|
+
"_:UITableView,didDeselectRowAt:IndexPath->Void"
|
|
30176
|
+
],
|
|
30177
|
+
accessoryButtonTappedForRowWith: [
|
|
30178
|
+
"tableView:accessoryButtonTappedForRowWithIndexPath:",
|
|
30179
|
+
"_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
|
|
30180
|
+
],
|
|
30181
|
+
editingStyleForRowAt: [
|
|
30182
|
+
"tableView:editingStyleForRowAtIndexPath:",
|
|
30183
|
+
"_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
|
|
30184
|
+
],
|
|
30185
|
+
leadingSwipeActionsConfigurationForRowAt: [
|
|
30186
|
+
"tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
30187
|
+
"_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
30188
|
+
],
|
|
30189
|
+
trailingSwipeActionsConfigurationForRowAt: [
|
|
30190
|
+
"tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
30191
|
+
"_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
30192
|
+
],
|
|
30193
|
+
willBeginEditingRowAt: [
|
|
30194
|
+
"tableView:willBeginEditingRowAtIndexPath:",
|
|
30195
|
+
"_:UITableView,willBeginEditingRowAt:IndexPath->Void"
|
|
30196
|
+
],
|
|
30197
|
+
didEndEditingRowAt: [
|
|
30198
|
+
"tableView:didEndEditingRowAtIndexPath:",
|
|
30199
|
+
"_:UITableView,didEndEditingRowAt:IndexPath?->Void"
|
|
30200
|
+
]
|
|
30087
30201
|
};
|
|
30088
30202
|
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
30089
30203
|
const edits = [];
|
|
30090
30204
|
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
30091
30205
|
const conforms = conformances.get(owner[1]);
|
|
30092
30206
|
if (!conforms) continue;
|
|
30207
|
+
if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
|
|
30208
|
+
continue;
|
|
30093
30209
|
const selectors = {
|
|
30094
30210
|
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
30095
30211
|
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
@@ -30113,15 +30229,24 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30113
30229
|
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
30114
30230
|
continue;
|
|
30115
30231
|
let selector;
|
|
30116
|
-
|
|
30232
|
+
const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
|
|
30117
30233
|
signature
|
|
30118
|
-
)
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30122
|
-
|
|
30123
|
-
);
|
|
30124
|
-
|
|
30234
|
+
);
|
|
30235
|
+
if (method) {
|
|
30236
|
+
const parameters = splitTopLevel(method[2]).map((parameter) => {
|
|
30237
|
+
const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
|
|
30238
|
+
return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
|
|
30239
|
+
}).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
30240
|
+
const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
30241
|
+
if (method[1] === "numberOfSections") {
|
|
30242
|
+
if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
|
|
30243
|
+
selector = "numberOfSectionsInTableView:";
|
|
30244
|
+
} else {
|
|
30245
|
+
const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
|
|
30246
|
+
const requirement = label ? selectors[label] : void 0;
|
|
30247
|
+
if (requirement && `${parameters}->${result2}` === requirement[1])
|
|
30248
|
+
selector = requirement[0];
|
|
30249
|
+
}
|
|
30125
30250
|
}
|
|
30126
30251
|
if (selector)
|
|
30127
30252
|
edits.push([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.823 | (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;
|
|
@@ -1253,10 +1253,25 @@ function tableProtocolConformances(sources) {
|
|
|
1253
1253
|
for (const source of sources) {
|
|
1254
1254
|
const code = swiftCodeMask(source);
|
|
1255
1255
|
for (const owner of code.matchAll(
|
|
1256
|
-
/\b(?:class|extension)\s+([A-Za-z_]\w*)
|
|
1256
|
+
/\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
|
|
1257
1257
|
)) {
|
|
1258
|
+
const header = owner[2];
|
|
1259
|
+
let depth = 0;
|
|
1260
|
+
let colon = -1;
|
|
1261
|
+
for (let at = 0; at < header.length; at++) {
|
|
1262
|
+
if (header[at] === "<") depth++;
|
|
1263
|
+
else if (header[at] === ">") depth--;
|
|
1264
|
+
else if (header[at] === ":" && depth === 0) {
|
|
1265
|
+
colon = at;
|
|
1266
|
+
break;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
if (colon === -1) continue;
|
|
1258
1270
|
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
1259
|
-
for (const type of
|
|
1271
|
+
for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
|
|
1272
|
+
const name = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
|
|
1273
|
+
if (name && !type.includes("<")) inherited.add(name);
|
|
1274
|
+
}
|
|
1260
1275
|
parents.set(owner[1], inherited);
|
|
1261
1276
|
}
|
|
1262
1277
|
}
|
|
@@ -1280,47 +1295,148 @@ function tableProtocolConformances(sources) {
|
|
|
1280
1295
|
function lowerTableProtocolMethods(source, conformances) {
|
|
1281
1296
|
const code = swiftCodeMask(source);
|
|
1282
1297
|
const dataSource = {
|
|
1283
|
-
numberOfRowsInSection:
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1298
|
+
numberOfRowsInSection: [
|
|
1299
|
+
"tableView:numberOfRowsInSection:",
|
|
1300
|
+
"_:UITableView,numberOfRowsInSection:Int->Int"
|
|
1301
|
+
],
|
|
1302
|
+
cellForRowAt: [
|
|
1303
|
+
"tableView:cellForRowAtIndexPath:",
|
|
1304
|
+
"_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
|
|
1305
|
+
],
|
|
1306
|
+
titleForHeaderInSection: [
|
|
1307
|
+
"tableView:titleForHeaderInSection:",
|
|
1308
|
+
"_:UITableView,titleForHeaderInSection:Int->String?"
|
|
1309
|
+
],
|
|
1310
|
+
titleForFooterInSection: [
|
|
1311
|
+
"tableView:titleForFooterInSection:",
|
|
1312
|
+
"_:UITableView,titleForFooterInSection:Int->String?"
|
|
1313
|
+
],
|
|
1314
|
+
canEditRowAt: [
|
|
1315
|
+
"tableView:canEditRowAtIndexPath:",
|
|
1316
|
+
"_:UITableView,canEditRowAt:IndexPath->Bool"
|
|
1317
|
+
],
|
|
1318
|
+
commit: [
|
|
1319
|
+
"tableView:commitEditingStyle:forRowAtIndexPath:",
|
|
1320
|
+
"_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
|
|
1321
|
+
]
|
|
1289
1322
|
};
|
|
1290
1323
|
const delegate = {
|
|
1291
|
-
willDisplay:
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1324
|
+
willDisplay: [
|
|
1325
|
+
"tableView:willDisplayCell:forRowAtIndexPath:",
|
|
1326
|
+
"_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
|
|
1327
|
+
],
|
|
1328
|
+
didEndDisplaying: [
|
|
1329
|
+
"tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
1330
|
+
"_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
|
|
1331
|
+
],
|
|
1332
|
+
heightForRowAt: [
|
|
1333
|
+
"tableView:heightForRowAtIndexPath:",
|
|
1334
|
+
"_:UITableView,heightForRowAt:IndexPath->CGFloat"
|
|
1335
|
+
],
|
|
1336
|
+
estimatedHeightForRowAt: [
|
|
1337
|
+
"tableView:estimatedHeightForRowAtIndexPath:",
|
|
1338
|
+
"_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
|
|
1339
|
+
],
|
|
1340
|
+
heightForHeaderInSection: [
|
|
1341
|
+
"tableView:heightForHeaderInSection:",
|
|
1342
|
+
"_:UITableView,heightForHeaderInSection:Int->CGFloat"
|
|
1343
|
+
],
|
|
1344
|
+
heightForFooterInSection: [
|
|
1345
|
+
"tableView:heightForFooterInSection:",
|
|
1346
|
+
"_:UITableView,heightForFooterInSection:Int->CGFloat"
|
|
1347
|
+
],
|
|
1348
|
+
estimatedHeightForHeaderInSection: [
|
|
1349
|
+
"tableView:estimatedHeightForHeaderInSection:",
|
|
1350
|
+
"_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
|
|
1351
|
+
],
|
|
1352
|
+
estimatedHeightForFooterInSection: [
|
|
1353
|
+
"tableView:estimatedHeightForFooterInSection:",
|
|
1354
|
+
"_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
|
|
1355
|
+
],
|
|
1356
|
+
viewForHeaderInSection: [
|
|
1357
|
+
"tableView:viewForHeaderInSection:",
|
|
1358
|
+
"_:UITableView,viewForHeaderInSection:Int->UIView?"
|
|
1359
|
+
],
|
|
1360
|
+
viewForFooterInSection: [
|
|
1361
|
+
"tableView:viewForFooterInSection:",
|
|
1362
|
+
"_:UITableView,viewForFooterInSection:Int->UIView?"
|
|
1363
|
+
],
|
|
1364
|
+
willDisplayHeaderView: [
|
|
1365
|
+
"tableView:willDisplayHeaderView:forSection:",
|
|
1366
|
+
"_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
|
|
1367
|
+
],
|
|
1368
|
+
willDisplayFooterView: [
|
|
1369
|
+
"tableView:willDisplayFooterView:forSection:",
|
|
1370
|
+
"_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
|
|
1371
|
+
],
|
|
1372
|
+
didEndDisplayingHeaderView: [
|
|
1373
|
+
"tableView:didEndDisplayingHeaderView:forSection:",
|
|
1374
|
+
"_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
|
|
1375
|
+
],
|
|
1376
|
+
didEndDisplayingFooterView: [
|
|
1377
|
+
"tableView:didEndDisplayingFooterView:forSection:",
|
|
1378
|
+
"_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
|
|
1379
|
+
],
|
|
1380
|
+
shouldHighlightRowAt: [
|
|
1381
|
+
"tableView:shouldHighlightRowAtIndexPath:",
|
|
1382
|
+
"_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
|
|
1383
|
+
],
|
|
1384
|
+
didHighlightRowAt: [
|
|
1385
|
+
"tableView:didHighlightRowAtIndexPath:",
|
|
1386
|
+
"_:UITableView,didHighlightRowAt:IndexPath->Void"
|
|
1387
|
+
],
|
|
1388
|
+
didUnhighlightRowAt: [
|
|
1389
|
+
"tableView:didUnhighlightRowAtIndexPath:",
|
|
1390
|
+
"_:UITableView,didUnhighlightRowAt:IndexPath->Void"
|
|
1391
|
+
],
|
|
1392
|
+
willSelectRowAt: [
|
|
1393
|
+
"tableView:willSelectRowAtIndexPath:",
|
|
1394
|
+
"_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
|
|
1395
|
+
],
|
|
1396
|
+
willDeselectRowAt: [
|
|
1397
|
+
"tableView:willDeselectRowAtIndexPath:",
|
|
1398
|
+
"_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
|
|
1399
|
+
],
|
|
1400
|
+
didSelectRowAt: [
|
|
1401
|
+
"tableView:didSelectRowAtIndexPath:",
|
|
1402
|
+
"_:UITableView,didSelectRowAt:IndexPath->Void"
|
|
1403
|
+
],
|
|
1404
|
+
didDeselectRowAt: [
|
|
1405
|
+
"tableView:didDeselectRowAtIndexPath:",
|
|
1406
|
+
"_:UITableView,didDeselectRowAt:IndexPath->Void"
|
|
1407
|
+
],
|
|
1408
|
+
accessoryButtonTappedForRowWith: [
|
|
1409
|
+
"tableView:accessoryButtonTappedForRowWithIndexPath:",
|
|
1410
|
+
"_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
|
|
1411
|
+
],
|
|
1412
|
+
editingStyleForRowAt: [
|
|
1413
|
+
"tableView:editingStyleForRowAtIndexPath:",
|
|
1414
|
+
"_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
|
|
1415
|
+
],
|
|
1416
|
+
leadingSwipeActionsConfigurationForRowAt: [
|
|
1417
|
+
"tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
1418
|
+
"_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
1419
|
+
],
|
|
1420
|
+
trailingSwipeActionsConfigurationForRowAt: [
|
|
1421
|
+
"tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
1422
|
+
"_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
1423
|
+
],
|
|
1424
|
+
willBeginEditingRowAt: [
|
|
1425
|
+
"tableView:willBeginEditingRowAtIndexPath:",
|
|
1426
|
+
"_:UITableView,willBeginEditingRowAt:IndexPath->Void"
|
|
1427
|
+
],
|
|
1428
|
+
didEndEditingRowAt: [
|
|
1429
|
+
"tableView:didEndEditingRowAtIndexPath:",
|
|
1430
|
+
"_:UITableView,didEndEditingRowAt:IndexPath?->Void"
|
|
1431
|
+
]
|
|
1318
1432
|
};
|
|
1319
1433
|
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
1320
1434
|
const edits = [];
|
|
1321
1435
|
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
1322
1436
|
const conforms = conformances.get(owner[1]);
|
|
1323
1437
|
if (!conforms) continue;
|
|
1438
|
+
if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
|
|
1439
|
+
continue;
|
|
1324
1440
|
const selectors = {
|
|
1325
1441
|
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
1326
1442
|
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
@@ -1344,15 +1460,24 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
1344
1460
|
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
1345
1461
|
continue;
|
|
1346
1462
|
let selector;
|
|
1347
|
-
|
|
1463
|
+
const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
|
|
1348
1464
|
signature
|
|
1349
|
-
)
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
);
|
|
1355
|
-
|
|
1465
|
+
);
|
|
1466
|
+
if (method) {
|
|
1467
|
+
const parameters = splitTopLevel(method[2]).map((parameter) => {
|
|
1468
|
+
const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
|
|
1469
|
+
return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
|
|
1470
|
+
}).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
1471
|
+
const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
1472
|
+
if (method[1] === "numberOfSections") {
|
|
1473
|
+
if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
|
|
1474
|
+
selector = "numberOfSectionsInTableView:";
|
|
1475
|
+
} else {
|
|
1476
|
+
const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
|
|
1477
|
+
const requirement = label ? selectors[label] : void 0;
|
|
1478
|
+
if (requirement && `${parameters}->${result2}` === requirement[1])
|
|
1479
|
+
selector = requirement[0];
|
|
1480
|
+
}
|
|
1356
1481
|
}
|
|
1357
1482
|
if (selector)
|
|
1358
1483
|
edits.push([
|