peachsim 0.1.821 → 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
|
@@ -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;
|
|
@@ -2648,10 +2648,25 @@ function tableProtocolConformances(sources) {
|
|
|
2648
2648
|
for (const source of sources) {
|
|
2649
2649
|
const code = swiftCodeMask(source);
|
|
2650
2650
|
for (const owner of code.matchAll(
|
|
2651
|
-
/\b(?:class|extension)\s+([A-Za-z_]\w*)
|
|
2651
|
+
/\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
|
|
2652
2652
|
)) {
|
|
2653
|
+
const header = owner[2];
|
|
2654
|
+
let depth = 0;
|
|
2655
|
+
let colon = -1;
|
|
2656
|
+
for (let at = 0; at < header.length; at++) {
|
|
2657
|
+
if (header[at] === "<") depth++;
|
|
2658
|
+
else if (header[at] === ">") depth--;
|
|
2659
|
+
else if (header[at] === ":" && depth === 0) {
|
|
2660
|
+
colon = at;
|
|
2661
|
+
break;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
if (colon === -1) continue;
|
|
2653
2665
|
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
2654
|
-
for (const type of
|
|
2666
|
+
for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
|
|
2667
|
+
const name2 = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
|
|
2668
|
+
if (name2 && !type.includes("<")) inherited.add(name2);
|
|
2669
|
+
}
|
|
2655
2670
|
parents.set(owner[1], inherited);
|
|
2656
2671
|
}
|
|
2657
2672
|
}
|
|
@@ -2675,47 +2690,148 @@ function tableProtocolConformances(sources) {
|
|
|
2675
2690
|
function lowerTableProtocolMethods(source, conformances) {
|
|
2676
2691
|
const code = swiftCodeMask(source);
|
|
2677
2692
|
const dataSource = {
|
|
2678
|
-
numberOfRowsInSection:
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2693
|
+
numberOfRowsInSection: [
|
|
2694
|
+
"tableView:numberOfRowsInSection:",
|
|
2695
|
+
"_:UITableView,numberOfRowsInSection:Int->Int"
|
|
2696
|
+
],
|
|
2697
|
+
cellForRowAt: [
|
|
2698
|
+
"tableView:cellForRowAtIndexPath:",
|
|
2699
|
+
"_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
|
|
2700
|
+
],
|
|
2701
|
+
titleForHeaderInSection: [
|
|
2702
|
+
"tableView:titleForHeaderInSection:",
|
|
2703
|
+
"_:UITableView,titleForHeaderInSection:Int->String?"
|
|
2704
|
+
],
|
|
2705
|
+
titleForFooterInSection: [
|
|
2706
|
+
"tableView:titleForFooterInSection:",
|
|
2707
|
+
"_:UITableView,titleForFooterInSection:Int->String?"
|
|
2708
|
+
],
|
|
2709
|
+
canEditRowAt: [
|
|
2710
|
+
"tableView:canEditRowAtIndexPath:",
|
|
2711
|
+
"_:UITableView,canEditRowAt:IndexPath->Bool"
|
|
2712
|
+
],
|
|
2713
|
+
commit: [
|
|
2714
|
+
"tableView:commitEditingStyle:forRowAtIndexPath:",
|
|
2715
|
+
"_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
|
|
2716
|
+
]
|
|
2684
2717
|
};
|
|
2685
2718
|
const delegate = {
|
|
2686
|
-
willDisplay:
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2719
|
+
willDisplay: [
|
|
2720
|
+
"tableView:willDisplayCell:forRowAtIndexPath:",
|
|
2721
|
+
"_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
|
|
2722
|
+
],
|
|
2723
|
+
didEndDisplaying: [
|
|
2724
|
+
"tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
2725
|
+
"_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
|
|
2726
|
+
],
|
|
2727
|
+
heightForRowAt: [
|
|
2728
|
+
"tableView:heightForRowAtIndexPath:",
|
|
2729
|
+
"_:UITableView,heightForRowAt:IndexPath->CGFloat"
|
|
2730
|
+
],
|
|
2731
|
+
estimatedHeightForRowAt: [
|
|
2732
|
+
"tableView:estimatedHeightForRowAtIndexPath:",
|
|
2733
|
+
"_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
|
|
2734
|
+
],
|
|
2735
|
+
heightForHeaderInSection: [
|
|
2736
|
+
"tableView:heightForHeaderInSection:",
|
|
2737
|
+
"_:UITableView,heightForHeaderInSection:Int->CGFloat"
|
|
2738
|
+
],
|
|
2739
|
+
heightForFooterInSection: [
|
|
2740
|
+
"tableView:heightForFooterInSection:",
|
|
2741
|
+
"_:UITableView,heightForFooterInSection:Int->CGFloat"
|
|
2742
|
+
],
|
|
2743
|
+
estimatedHeightForHeaderInSection: [
|
|
2744
|
+
"tableView:estimatedHeightForHeaderInSection:",
|
|
2745
|
+
"_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
|
|
2746
|
+
],
|
|
2747
|
+
estimatedHeightForFooterInSection: [
|
|
2748
|
+
"tableView:estimatedHeightForFooterInSection:",
|
|
2749
|
+
"_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
|
|
2750
|
+
],
|
|
2751
|
+
viewForHeaderInSection: [
|
|
2752
|
+
"tableView:viewForHeaderInSection:",
|
|
2753
|
+
"_:UITableView,viewForHeaderInSection:Int->UIView?"
|
|
2754
|
+
],
|
|
2755
|
+
viewForFooterInSection: [
|
|
2756
|
+
"tableView:viewForFooterInSection:",
|
|
2757
|
+
"_:UITableView,viewForFooterInSection:Int->UIView?"
|
|
2758
|
+
],
|
|
2759
|
+
willDisplayHeaderView: [
|
|
2760
|
+
"tableView:willDisplayHeaderView:forSection:",
|
|
2761
|
+
"_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
|
|
2762
|
+
],
|
|
2763
|
+
willDisplayFooterView: [
|
|
2764
|
+
"tableView:willDisplayFooterView:forSection:",
|
|
2765
|
+
"_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
|
|
2766
|
+
],
|
|
2767
|
+
didEndDisplayingHeaderView: [
|
|
2768
|
+
"tableView:didEndDisplayingHeaderView:forSection:",
|
|
2769
|
+
"_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
|
|
2770
|
+
],
|
|
2771
|
+
didEndDisplayingFooterView: [
|
|
2772
|
+
"tableView:didEndDisplayingFooterView:forSection:",
|
|
2773
|
+
"_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
|
|
2774
|
+
],
|
|
2775
|
+
shouldHighlightRowAt: [
|
|
2776
|
+
"tableView:shouldHighlightRowAtIndexPath:",
|
|
2777
|
+
"_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
|
|
2778
|
+
],
|
|
2779
|
+
didHighlightRowAt: [
|
|
2780
|
+
"tableView:didHighlightRowAtIndexPath:",
|
|
2781
|
+
"_:UITableView,didHighlightRowAt:IndexPath->Void"
|
|
2782
|
+
],
|
|
2783
|
+
didUnhighlightRowAt: [
|
|
2784
|
+
"tableView:didUnhighlightRowAtIndexPath:",
|
|
2785
|
+
"_:UITableView,didUnhighlightRowAt:IndexPath->Void"
|
|
2786
|
+
],
|
|
2787
|
+
willSelectRowAt: [
|
|
2788
|
+
"tableView:willSelectRowAtIndexPath:",
|
|
2789
|
+
"_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
|
|
2790
|
+
],
|
|
2791
|
+
willDeselectRowAt: [
|
|
2792
|
+
"tableView:willDeselectRowAtIndexPath:",
|
|
2793
|
+
"_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
|
|
2794
|
+
],
|
|
2795
|
+
didSelectRowAt: [
|
|
2796
|
+
"tableView:didSelectRowAtIndexPath:",
|
|
2797
|
+
"_:UITableView,didSelectRowAt:IndexPath->Void"
|
|
2798
|
+
],
|
|
2799
|
+
didDeselectRowAt: [
|
|
2800
|
+
"tableView:didDeselectRowAtIndexPath:",
|
|
2801
|
+
"_:UITableView,didDeselectRowAt:IndexPath->Void"
|
|
2802
|
+
],
|
|
2803
|
+
accessoryButtonTappedForRowWith: [
|
|
2804
|
+
"tableView:accessoryButtonTappedForRowWithIndexPath:",
|
|
2805
|
+
"_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
|
|
2806
|
+
],
|
|
2807
|
+
editingStyleForRowAt: [
|
|
2808
|
+
"tableView:editingStyleForRowAtIndexPath:",
|
|
2809
|
+
"_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
|
|
2810
|
+
],
|
|
2811
|
+
leadingSwipeActionsConfigurationForRowAt: [
|
|
2812
|
+
"tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
2813
|
+
"_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
2814
|
+
],
|
|
2815
|
+
trailingSwipeActionsConfigurationForRowAt: [
|
|
2816
|
+
"tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
2817
|
+
"_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
2818
|
+
],
|
|
2819
|
+
willBeginEditingRowAt: [
|
|
2820
|
+
"tableView:willBeginEditingRowAtIndexPath:",
|
|
2821
|
+
"_:UITableView,willBeginEditingRowAt:IndexPath->Void"
|
|
2822
|
+
],
|
|
2823
|
+
didEndEditingRowAt: [
|
|
2824
|
+
"tableView:didEndEditingRowAtIndexPath:",
|
|
2825
|
+
"_:UITableView,didEndEditingRowAt:IndexPath?->Void"
|
|
2826
|
+
]
|
|
2713
2827
|
};
|
|
2714
2828
|
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
2715
2829
|
const edits = [];
|
|
2716
2830
|
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
2717
2831
|
const conforms = conformances.get(owner[1]);
|
|
2718
2832
|
if (!conforms) continue;
|
|
2833
|
+
if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
|
|
2834
|
+
continue;
|
|
2719
2835
|
const selectors = {
|
|
2720
2836
|
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
2721
2837
|
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
@@ -2739,15 +2855,24 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2739
2855
|
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
2740
2856
|
continue;
|
|
2741
2857
|
let selector;
|
|
2742
|
-
|
|
2858
|
+
const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
|
|
2743
2859
|
signature
|
|
2744
|
-
)
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
);
|
|
2750
|
-
|
|
2860
|
+
);
|
|
2861
|
+
if (method) {
|
|
2862
|
+
const parameters = splitTopLevel(method[2]).map((parameter) => {
|
|
2863
|
+
const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
|
|
2864
|
+
return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
|
|
2865
|
+
}).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
2866
|
+
const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
2867
|
+
if (method[1] === "numberOfSections") {
|
|
2868
|
+
if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
|
|
2869
|
+
selector = "numberOfSectionsInTableView:";
|
|
2870
|
+
} else {
|
|
2871
|
+
const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
|
|
2872
|
+
const requirement = label ? selectors[label] : void 0;
|
|
2873
|
+
if (requirement && `${parameters}->${result2}` === requirement[1])
|
|
2874
|
+
selector = requirement[0];
|
|
2875
|
+
}
|
|
2751
2876
|
}
|
|
2752
2877
|
if (selector)
|
|
2753
2878
|
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 __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.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 __create = Object.create;
|
|
@@ -11691,10 +11691,25 @@ function tableProtocolConformances(sources) {
|
|
|
11691
11691
|
for (const source of sources) {
|
|
11692
11692
|
const code = swiftCodeMask(source);
|
|
11693
11693
|
for (const owner of code.matchAll(
|
|
11694
|
-
/\b(?:class|extension)\s+([A-Za-z_]\w*)
|
|
11694
|
+
/\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
|
|
11695
11695
|
)) {
|
|
11696
|
+
const header = owner[2];
|
|
11697
|
+
let depth = 0;
|
|
11698
|
+
let colon = -1;
|
|
11699
|
+
for (let at = 0; at < header.length; at++) {
|
|
11700
|
+
if (header[at] === "<") depth++;
|
|
11701
|
+
else if (header[at] === ">") depth--;
|
|
11702
|
+
else if (header[at] === ":" && depth === 0) {
|
|
11703
|
+
colon = at;
|
|
11704
|
+
break;
|
|
11705
|
+
}
|
|
11706
|
+
}
|
|
11707
|
+
if (colon === -1) continue;
|
|
11696
11708
|
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
11697
|
-
for (const type of
|
|
11709
|
+
for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
|
|
11710
|
+
const name2 = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
|
|
11711
|
+
if (name2 && !type.includes("<")) inherited.add(name2);
|
|
11712
|
+
}
|
|
11698
11713
|
parents.set(owner[1], inherited);
|
|
11699
11714
|
}
|
|
11700
11715
|
}
|
|
@@ -11718,47 +11733,148 @@ function tableProtocolConformances(sources) {
|
|
|
11718
11733
|
function lowerTableProtocolMethods(source, conformances) {
|
|
11719
11734
|
const code = swiftCodeMask(source);
|
|
11720
11735
|
const dataSource = {
|
|
11721
|
-
numberOfRowsInSection:
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11736
|
+
numberOfRowsInSection: [
|
|
11737
|
+
"tableView:numberOfRowsInSection:",
|
|
11738
|
+
"_:UITableView,numberOfRowsInSection:Int->Int"
|
|
11739
|
+
],
|
|
11740
|
+
cellForRowAt: [
|
|
11741
|
+
"tableView:cellForRowAtIndexPath:",
|
|
11742
|
+
"_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
|
|
11743
|
+
],
|
|
11744
|
+
titleForHeaderInSection: [
|
|
11745
|
+
"tableView:titleForHeaderInSection:",
|
|
11746
|
+
"_:UITableView,titleForHeaderInSection:Int->String?"
|
|
11747
|
+
],
|
|
11748
|
+
titleForFooterInSection: [
|
|
11749
|
+
"tableView:titleForFooterInSection:",
|
|
11750
|
+
"_:UITableView,titleForFooterInSection:Int->String?"
|
|
11751
|
+
],
|
|
11752
|
+
canEditRowAt: [
|
|
11753
|
+
"tableView:canEditRowAtIndexPath:",
|
|
11754
|
+
"_:UITableView,canEditRowAt:IndexPath->Bool"
|
|
11755
|
+
],
|
|
11756
|
+
commit: [
|
|
11757
|
+
"tableView:commitEditingStyle:forRowAtIndexPath:",
|
|
11758
|
+
"_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
|
|
11759
|
+
]
|
|
11727
11760
|
};
|
|
11728
11761
|
const delegate = {
|
|
11729
|
-
willDisplay:
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11762
|
+
willDisplay: [
|
|
11763
|
+
"tableView:willDisplayCell:forRowAtIndexPath:",
|
|
11764
|
+
"_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
|
|
11765
|
+
],
|
|
11766
|
+
didEndDisplaying: [
|
|
11767
|
+
"tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
11768
|
+
"_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
|
|
11769
|
+
],
|
|
11770
|
+
heightForRowAt: [
|
|
11771
|
+
"tableView:heightForRowAtIndexPath:",
|
|
11772
|
+
"_:UITableView,heightForRowAt:IndexPath->CGFloat"
|
|
11773
|
+
],
|
|
11774
|
+
estimatedHeightForRowAt: [
|
|
11775
|
+
"tableView:estimatedHeightForRowAtIndexPath:",
|
|
11776
|
+
"_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
|
|
11777
|
+
],
|
|
11778
|
+
heightForHeaderInSection: [
|
|
11779
|
+
"tableView:heightForHeaderInSection:",
|
|
11780
|
+
"_:UITableView,heightForHeaderInSection:Int->CGFloat"
|
|
11781
|
+
],
|
|
11782
|
+
heightForFooterInSection: [
|
|
11783
|
+
"tableView:heightForFooterInSection:",
|
|
11784
|
+
"_:UITableView,heightForFooterInSection:Int->CGFloat"
|
|
11785
|
+
],
|
|
11786
|
+
estimatedHeightForHeaderInSection: [
|
|
11787
|
+
"tableView:estimatedHeightForHeaderInSection:",
|
|
11788
|
+
"_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
|
|
11789
|
+
],
|
|
11790
|
+
estimatedHeightForFooterInSection: [
|
|
11791
|
+
"tableView:estimatedHeightForFooterInSection:",
|
|
11792
|
+
"_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
|
|
11793
|
+
],
|
|
11794
|
+
viewForHeaderInSection: [
|
|
11795
|
+
"tableView:viewForHeaderInSection:",
|
|
11796
|
+
"_:UITableView,viewForHeaderInSection:Int->UIView?"
|
|
11797
|
+
],
|
|
11798
|
+
viewForFooterInSection: [
|
|
11799
|
+
"tableView:viewForFooterInSection:",
|
|
11800
|
+
"_:UITableView,viewForFooterInSection:Int->UIView?"
|
|
11801
|
+
],
|
|
11802
|
+
willDisplayHeaderView: [
|
|
11803
|
+
"tableView:willDisplayHeaderView:forSection:",
|
|
11804
|
+
"_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
|
|
11805
|
+
],
|
|
11806
|
+
willDisplayFooterView: [
|
|
11807
|
+
"tableView:willDisplayFooterView:forSection:",
|
|
11808
|
+
"_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
|
|
11809
|
+
],
|
|
11810
|
+
didEndDisplayingHeaderView: [
|
|
11811
|
+
"tableView:didEndDisplayingHeaderView:forSection:",
|
|
11812
|
+
"_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
|
|
11813
|
+
],
|
|
11814
|
+
didEndDisplayingFooterView: [
|
|
11815
|
+
"tableView:didEndDisplayingFooterView:forSection:",
|
|
11816
|
+
"_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
|
|
11817
|
+
],
|
|
11818
|
+
shouldHighlightRowAt: [
|
|
11819
|
+
"tableView:shouldHighlightRowAtIndexPath:",
|
|
11820
|
+
"_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
|
|
11821
|
+
],
|
|
11822
|
+
didHighlightRowAt: [
|
|
11823
|
+
"tableView:didHighlightRowAtIndexPath:",
|
|
11824
|
+
"_:UITableView,didHighlightRowAt:IndexPath->Void"
|
|
11825
|
+
],
|
|
11826
|
+
didUnhighlightRowAt: [
|
|
11827
|
+
"tableView:didUnhighlightRowAtIndexPath:",
|
|
11828
|
+
"_:UITableView,didUnhighlightRowAt:IndexPath->Void"
|
|
11829
|
+
],
|
|
11830
|
+
willSelectRowAt: [
|
|
11831
|
+
"tableView:willSelectRowAtIndexPath:",
|
|
11832
|
+
"_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
|
|
11833
|
+
],
|
|
11834
|
+
willDeselectRowAt: [
|
|
11835
|
+
"tableView:willDeselectRowAtIndexPath:",
|
|
11836
|
+
"_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
|
|
11837
|
+
],
|
|
11838
|
+
didSelectRowAt: [
|
|
11839
|
+
"tableView:didSelectRowAtIndexPath:",
|
|
11840
|
+
"_:UITableView,didSelectRowAt:IndexPath->Void"
|
|
11841
|
+
],
|
|
11842
|
+
didDeselectRowAt: [
|
|
11843
|
+
"tableView:didDeselectRowAtIndexPath:",
|
|
11844
|
+
"_:UITableView,didDeselectRowAt:IndexPath->Void"
|
|
11845
|
+
],
|
|
11846
|
+
accessoryButtonTappedForRowWith: [
|
|
11847
|
+
"tableView:accessoryButtonTappedForRowWithIndexPath:",
|
|
11848
|
+
"_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
|
|
11849
|
+
],
|
|
11850
|
+
editingStyleForRowAt: [
|
|
11851
|
+
"tableView:editingStyleForRowAtIndexPath:",
|
|
11852
|
+
"_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
|
|
11853
|
+
],
|
|
11854
|
+
leadingSwipeActionsConfigurationForRowAt: [
|
|
11855
|
+
"tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
11856
|
+
"_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
11857
|
+
],
|
|
11858
|
+
trailingSwipeActionsConfigurationForRowAt: [
|
|
11859
|
+
"tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
|
|
11860
|
+
"_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
|
|
11861
|
+
],
|
|
11862
|
+
willBeginEditingRowAt: [
|
|
11863
|
+
"tableView:willBeginEditingRowAtIndexPath:",
|
|
11864
|
+
"_:UITableView,willBeginEditingRowAt:IndexPath->Void"
|
|
11865
|
+
],
|
|
11866
|
+
didEndEditingRowAt: [
|
|
11867
|
+
"tableView:didEndEditingRowAtIndexPath:",
|
|
11868
|
+
"_:UITableView,didEndEditingRowAt:IndexPath?->Void"
|
|
11869
|
+
]
|
|
11756
11870
|
};
|
|
11757
11871
|
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
11758
11872
|
const edits = [];
|
|
11759
11873
|
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
11760
11874
|
const conforms = conformances.get(owner[1]);
|
|
11761
11875
|
if (!conforms) continue;
|
|
11876
|
+
if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
|
|
11877
|
+
continue;
|
|
11762
11878
|
const selectors = {
|
|
11763
11879
|
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
11764
11880
|
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
@@ -11782,15 +11898,24 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
11782
11898
|
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
11783
11899
|
continue;
|
|
11784
11900
|
let selector;
|
|
11785
|
-
|
|
11901
|
+
const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
|
|
11786
11902
|
signature
|
|
11787
|
-
)
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
);
|
|
11793
|
-
|
|
11903
|
+
);
|
|
11904
|
+
if (method) {
|
|
11905
|
+
const parameters = splitTopLevel(method[2]).map((parameter) => {
|
|
11906
|
+
const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
|
|
11907
|
+
return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
|
|
11908
|
+
}).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
11909
|
+
const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
|
|
11910
|
+
if (method[1] === "numberOfSections") {
|
|
11911
|
+
if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
|
|
11912
|
+
selector = "numberOfSectionsInTableView:";
|
|
11913
|
+
} else {
|
|
11914
|
+
const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
|
|
11915
|
+
const requirement = label ? selectors[label] : void 0;
|
|
11916
|
+
if (requirement && `${parameters}->${result2}` === requirement[1])
|
|
11917
|
+
selector = requirement[0];
|
|
11918
|
+
}
|
|
11794
11919
|
}
|
|
11795
11920
|
if (selector)
|
|
11796
11921
|
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;
|
|
@@ -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;
|
|
@@ -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/index.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 __create = Object.create;
|
package/dist-lib/kotlin-host.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/menu.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/menu.mjs
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 __defProp = Object.defineProperty;
|