@onekeyfe/react-native-native-list 6.7.0-6 → 6.7.0-61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/README.md +312 -375
  2. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
  3. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +250 -9
  4. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +50 -13
  5. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +25 -3
  6. package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
  7. package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
  8. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
  9. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +102 -7
  10. package/android/src/main/java/com/onekey/nativelist/NativeListGeneratedIcons.kt +47 -0
  11. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +225 -11
  12. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +152 -33
  13. package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
  14. package/android/src/main/java/com/onekey/nativelist/NativeListMediaPlaceholderView.kt +244 -0
  15. package/android/src/main/java/com/onekey/nativelist/NativeListMediaPreviewSlot.kt +66 -31
  16. package/android/src/main/java/com/onekey/nativelist/NativeListMediaTileRenderer.kt +32 -11
  17. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
  18. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +209 -3
  19. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +120 -287
  20. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
  21. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +7 -0
  22. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +8 -3
  23. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
  24. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +130 -1
  25. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1978 -136
  26. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +35 -0
  27. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListDescriptionTouchPolicyTest.kt +153 -0
  28. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
  29. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
  30. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
  31. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
  32. package/docs/ROW_TEMPLATES.md +78 -14
  33. package/docs/SPEC.md +1318 -16
  34. package/docs/STYLE_SPEC.md +18 -0
  35. package/ios/HybridNativeList.swift +21 -2
  36. package/ios/NativeListAccessoryStack.swift +237 -51
  37. package/ios/NativeListActivityDetailsView.swift +43 -16
  38. package/ios/NativeListActivityRenderer.swift +8 -2
  39. package/ios/NativeListButtonGroupRenderer.swift +89 -0
  40. package/ios/NativeListDataRowRenderer.swift +167 -30
  41. package/ios/NativeListDesignAssets.swift +13 -75
  42. package/ios/NativeListGeneratedIcons.swift +55 -0
  43. package/ios/NativeListIconBinding.swift +171 -0
  44. package/ios/NativeListIdentityRenderer.swift +256 -39
  45. package/ios/NativeListLeadingVisual.swift +127 -28
  46. package/ios/NativeListMarketRenderer.swift +120 -31
  47. package/ios/NativeListMediaPlaceholderView.swift +189 -0
  48. package/ios/NativeListMediaPreviewSlot.swift +122 -61
  49. package/ios/NativeListMediaTileRenderer.swift +15 -11
  50. package/ios/NativeListMessageRenderer.swift +34 -1
  51. package/ios/NativeListMetricCardRenderer.swift +4 -2
  52. package/ios/NativeListModels.swift +42 -2
  53. package/ios/NativeListRendererRegistry.swift +1 -0
  54. package/ios/NativeListResolvedText.swift +17 -5
  55. package/ios/NativeListRowHost.swift +14 -0
  56. package/ios/NativeListSectionHeaderRenderer.swift +100 -4
  57. package/ios/NativeListTextLabel.swift +106 -0
  58. package/ios/RNCNativeListView.swift +1097 -60
  59. package/ios/tests/NativeListAccessoryStackTests.swift +101 -0
  60. package/ios/tests/NativeListAccountSelectorLayoutTests.swift +96 -0
  61. package/ios/tests/NativeListActivityPresentationTests.swift +423 -0
  62. package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
  63. package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
  64. package/ios/tests/NativeListLifecycleTests.swift +2959 -4
  65. package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
  66. package/ios/tests/NativeListMediaVisibilityTests.swift +41 -7
  67. package/ios/tests/NativeListSharedIconTests.swift +236 -0
  68. package/lib/module/NativeList.js +236 -38
  69. package/lib/module/NativeList.web.js +163 -45
  70. package/lib/module/index.js +1 -1
  71. package/lib/module/models.js +3 -0
  72. package/lib/module/selection.js +1 -1
  73. package/lib/module/validation.js +1263 -48
  74. package/lib/module/web/NativeListGeneratedIcons.js +31 -0
  75. package/lib/module/web/NativeListWebEngine.js +513 -275
  76. package/lib/module/web/templates/ActivityRowRenderer.js +41 -54
  77. package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
  78. package/lib/module/web/templates/DataRowRenderer.js +56 -5
  79. package/lib/module/web/templates/IdentityRowRenderer.js +161 -7
  80. package/lib/module/web/templates/MarketTableRowRenderer.js +36 -19
  81. package/lib/module/web/templates/MediaTileRowRenderer.js +84 -25
  82. package/lib/module/web/templates/MessageRowRenderer.js +18 -2
  83. package/lib/module/web/templates/RowContainerStyle.js +1 -0
  84. package/lib/module/web/templates/RowRendererRegistry.js +3 -0
  85. package/lib/module/web/templates/SectionHeaderRowRenderer.js +36 -2
  86. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  87. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  88. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  89. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  90. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  91. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  92. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  93. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  94. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  95. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  96. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  97. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  98. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  99. package/lib/typescript/src/NativeList.d.ts +3 -3
  100. package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
  101. package/lib/typescript/src/NativeList.types.d.ts +20 -2
  102. package/lib/typescript/src/index.d.ts +2 -2
  103. package/lib/typescript/src/models.d.ts +134 -17
  104. package/lib/typescript/src/validation.d.ts +20 -0
  105. package/lib/typescript/src/web/NativeListGeneratedIcons.d.ts +2 -0
  106. package/lib/typescript/src/web/NativeListWebEngine.d.ts +32 -1
  107. package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
  108. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
  109. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +9 -3
  110. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  111. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  112. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  113. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  114. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  115. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  116. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  117. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  118. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  119. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  120. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  121. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  122. package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  123. package/package.json +16 -10
  124. package/react-native-native-list.podspec +2 -6
  125. package/scripts/generate-icons.mjs +150 -0
  126. package/scripts/generate-icons.test.mjs +288 -0
  127. package/scripts/native-list-icons.json +260 -0
  128. package/src/NativeList.nitro.ts +2 -0
  129. package/src/NativeList.tsx +439 -91
  130. package/src/NativeList.types.ts +24 -2
  131. package/src/NativeList.web.tsx +286 -88
  132. package/src/index.ts +2 -0
  133. package/src/models.ts +272 -144
  134. package/src/selection.ts +1 -0
  135. package/src/validation.ts +3041 -146
  136. package/src/web/NativeListGeneratedIcons.ts +28 -0
  137. package/src/web/NativeListWebEngine.ts +818 -343
  138. package/src/web/templates/ActivityRowRenderer.ts +71 -91
  139. package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
  140. package/src/web/templates/DataRowRenderer.ts +121 -20
  141. package/src/web/templates/IdentityRowRenderer.ts +234 -9
  142. package/src/web/templates/MarketTableRowRenderer.ts +53 -33
  143. package/src/web/templates/MediaTileRowRenderer.ts +90 -28
  144. package/src/web/templates/MessageRowRenderer.ts +23 -7
  145. package/src/web/templates/RowContainerStyle.ts +2 -0
  146. package/src/web/templates/RowRendererRegistry.ts +11 -1
  147. package/src/web/templates/SectionHeaderRowRenderer.ts +47 -4
  148. package/ios/Resources/NativeListIcons.xcassets/Contents.json +0 -1
  149. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/Contents.json +0 -1
  150. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/icon.svg +0 -1
  151. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/Contents.json +0 -1
  152. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/icon.svg +0 -1
  153. package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/Contents.json +0 -1
  154. package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/icon.svg +0 -1
  155. package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/Contents.json +0 -1
  156. package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/icon.svg +0 -1
  157. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/Contents.json +0 -1
  158. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/icon.svg +0 -1
  159. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/Contents.json +0 -1
  160. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/icon.svg +0 -1
  161. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/Contents.json +0 -1
  162. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/icon.svg +0 -1
  163. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/Contents.json +0 -1
  164. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/icon.svg +0 -1
  165. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/Contents.json +0 -1
  166. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/icon.svg +0 -1
  167. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/Contents.json +0 -1
  168. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/icon.svg +0 -1
  169. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/Contents.json +0 -1
  170. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/icon.svg +0 -1
  171. package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/Contents.json +0 -1
  172. package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/icon.svg +0 -1
  173. package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/Contents.json +0 -1
  174. package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/icon.svg +0 -1
  175. package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/Contents.json +0 -1
  176. package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/icon.svg +0 -1
  177. package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/Contents.json +0 -1
  178. package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/icon.svg +0 -1
  179. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/Contents.json +0 -1
  180. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/icon.svg +0 -1
  181. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/Contents.json +0 -1
  182. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/icon.svg +0 -1
  183. package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/Contents.json +0 -1
  184. package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/icon.svg +0 -1
  185. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/Contents.json +0 -1
  186. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/icon.svg +0 -1
  187. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/Contents.json +0 -1
  188. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/icon.svg +0 -1
  189. package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/Contents.json +0 -1
  190. package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/icon.svg +0 -1
  191. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/Contents.json +0 -15
  192. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/icon.svg +0 -14
  193. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/Contents.json +0 -15
  194. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/icon.svg +0 -12
  195. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/Contents.json +0 -15
  196. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/icon.svg +0 -6
  197. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/Contents.json +0 -15
  198. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/icon.svg +0 -15
  199. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/Contents.json +0 -15
  200. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/icon.svg +0 -3
  201. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/Contents.json +0 -15
  202. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/icon.svg +0 -7
  203. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/Contents.json +0 -15
  204. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/icon.svg +0 -18
  205. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/Contents.json +0 -15
  206. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/icon.svg +0 -7
  207. package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/Contents.json +0 -1
  208. package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/icon.svg +0 -1
  209. package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/Contents.json +0 -1
  210. package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/icon.svg +0 -1
  211. package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/Contents.json +0 -1
  212. package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/icon.svg +0 -1
  213. package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/Contents.json +0 -1
  214. package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/icon.svg +0 -1
  215. package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/Contents.json +0 -1
  216. package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/icon.svg +0 -1
package/docs/SPEC.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # NativeList contract
2
2
 
3
+ ## Shared image SVG integration — Implemented
4
+
5
+ Static icons use the image package's named resources and SVG implementation:
6
+ the main registry, Activity's ten private glyphs, Market stars/recognized badge,
7
+ Media fallback and Android checkbox. The closed per-platform coverage, including
8
+ the main-line asset-list additions, is recorded under Built-in icon metadata
9
+ generation; unknown-name text fallbacks remain. The NativeList-only legacy name
10
+ `BadgeVerifiedSolid` resolves to canonical `BadgeRecognizedSolid`. Circle and
11
+ dynamic charts/spinners/dotted decoration remain local primitives.
12
+
13
+ Each iOS glyph slot owns a request owner and revision, including overlays and
14
+ UIButton states. Final graphical identity (name, raster geometry/scale and render
15
+ strategy) controls requests. A private synchronous bind transaction preserves
16
+ both an identical pending request and a ready raster across reset/rebind calls;
17
+ changed or empty identities cancel and clear. Only the current attached revision
18
+ may apply a completion. Detach, reuse and raster geometry changes invalidate
19
+ ownership. UIKit template tint changes reuse the immutable mask. UIButton states
20
+ share one decode, retaining template/original and disabled tint/alpha/action
21
+ behavior. Name validity and descriptor geometry control visibility, layout and
22
+ touch bounds; image availability does not control them.
23
+ Detached binds and auto-height measurement use only known intrinsic metadata;
24
+ they MUST NOT submit named requests or read/decode SVG resources. Initial attach
25
+ starts loading without changing the measured glyph or button dimensions.
26
+
27
+ iOS original brand/opacity modes and the size overload's always-template behavior
28
+ remain. Android named glyphs preserve their source aspect ratio, fit both source
29
+ dimensions within the view and optional glyph-size limit, and center the result
30
+ on both axes. This includes the non-square 16 × 20 Apple artwork; it MUST NOT
31
+ extend beyond the view. Checkboxes retain their 16 dp glyph plus 2 dp border
32
+ offset in selector geometry, otherwise 80 percent centered geometry. Shared images are immutable; no cross-view mutable
33
+ Drawable bounds or pixel changes are allowed. Named work uses image's existing
34
+ two-worker and bounded cache service. Web consumers use its pure DOM external-icon
35
+ helper while keeping inherited color, action labels, anchors and exact sizes.
36
+
37
+ Acceptance must cover actual slots, first bind and repeated row reuse, unknown
38
+ and empty inputs, detach/reattach, resize/tint changes, both UIButton states,
39
+ checkboxes, Apple, original brands, legacy badge, and Web/desktop menus. All
40
+ static path readers must be removed from migrated routes; procedural drawings
41
+ and unrelated URI image loading retain their existing ownership.
42
+
43
+ `NativeListRiskAccessoryTest` checks fractional and integral glyph bounds,
44
+ portrait/landscape sources, rectangular slots and both glyph-size scaling modes.
45
+ Its raw-SVG alpha comparison uses integral destination edges to isolate color
46
+ semantics from fractional bitmap interpolation.
47
+
3
48
  This is the entry point for the package's behavioral contract. The linked
4
49
  documents are part of this spec; implementation status is separate from target
5
50
  architecture and runtime evidence.
@@ -26,6 +71,400 @@ prevention; there is no automatic fitting or shrinking pass.
26
71
 
27
72
  ## Public API and defaults
28
73
 
74
+ ### Media loading and failure placeholders — Implemented
75
+
76
+ Gallery media tiles draw one placeholder layer over the media slot on iOS
77
+ (`NativeListMediaPlaceholderView.swift`), Android
78
+ (`NativeListMediaPlaceholderView.kt`) and Web (`MediaTileRowRenderer.ts`). All
79
+ three share one geometry so the states read the same everywhere:
80
+
81
+ - **Loading** — from bind until the first candidate loads or every candidate
82
+ fails. Fill: `strongBackground`. A sheen band 60% of the tile wide, skewed
83
+ -12°, sweeps left to right over 1.6s (70% travel with `cubic-bezier(0.4, 0,
84
+ 0.2, 1)`, 30% rest). Every tile derives its phase from one shared clock
85
+ (`CACurrentMediaTime` / `SystemClock.uptimeMillis` / `performance.now`), so a
86
+ grid sweeps in step, recycled cells included. The sheen is white at 75% on a
87
+ light `rowBackground` (Web: `background`) and 7% on a dark one. Reduced
88
+ motion (iOS Reduce Motion, Android animator scale 0, Web
89
+ `prefers-reduced-motion`) holds the band still at 60% strength.
90
+ - **Failed** — explicit `imageState: 'error'` or exhausted probes. Fill:
91
+ `strongBackground`, plus 1pt `primaryText` lines at 4.5% alpha along 135°,
92
+ 7pt apart, masked by a radial gradient that is clear inside 22% of the
93
+ half-diagonal and opaque from 70%. No text is shown, so there is no copy to
94
+ localize.
95
+ - **Loaded / empty** — the placeholder is hidden; `imageState: 'empty'`
96
+ without a source keeps the slot transparent as before.
97
+
98
+ Both visible states draw a 24-unit glyph at 28% of the tile width, capped at
99
+ 44pt, stroked 1.5 units in `disabledText` at 70% of its alpha: a rounded frame
100
+ (3,3,18,18, r4), a sun (9,9 r1.6) and a ridge (5,20.5 → 14.5,11 → 21,17.5).
101
+ The failed glyph adds a slash (3,3 → 21,21) and cuts a 1.6-unit gap into the
102
+ frame on both sides of it. A 1px `separator` hairline at 60% of its alpha
103
+ outlines the slot in both states.
104
+
105
+ The placeholder owns the slot fill while visible. On Android the media view
106
+ is made invisible in the failed state, because OneKeyImage may paint its own
107
+ terminal state symbol after a probe advances. Image content and SVG decoding
108
+ remain owned by OneKeyImage; no per-cell WebView or fallback network source is
109
+ added. A theme rebind updates every color. Runtime acceptance (2026-11-10):
110
+ iOS dark and Android light on a watch-only wallet NFT grid, Web light/dark in
111
+ the standalone engine harness.
112
+
113
+ ### Recipient identity and inline warning rows
114
+
115
+ Status: implemented in local source for the Select Address and Swap selectors;
116
+ native device and broader Web runtime verification remain pending. These fields travel in snapshot/patch JSON
117
+ and do not change the Nitro ABI.
118
+
119
+ An `identity` row may opt into `subtitleLines: 0`, meaning the complete subtitle
120
+ wraps at its measured text-column width without a line cap. Existing omitted,
121
+ one-line and two-line behavior stays unchanged. An identity row with
122
+ `contentHeight: 'auto'` measures its actual title, subtitle, leading visual,
123
+ badges and trailing accessories and grows to fit; this is opt-in and does not
124
+ alter selector or wallet-sidebar presets. An explicit `style.container.height`
125
+ or `row.height` still wins over content measurement, in that order. Content
126
+ height changes with row width, text, style or configured font and may not retain
127
+ a stale prior width's measurement. The existing 4096 UTF-16-code-unit bound per
128
+ text field still applies; zero is not an unlimited data-size allowance.
129
+
130
+ On Web, opt-in auto-height identity rows without an explicit height use the
131
+ intrinsic body height in CSS layout pixels, before ancestor transforms. A hidden
132
+ body with zero layout height supplies no rendered measurement; zero MUST NOT
133
+ replace a valid layout height. Rebinding between automatic and explicit height
134
+ restores the corresponding body sizing. Multiline subtitles, including
135
+ `subtitleLines: 0`, break unspaced words within the text-column width; single-line
136
+ behavior remains unchanged.
137
+
138
+ Auto-height recipient rows are production-consumer verified with isolated wallet
139
+ fixtures, including modal scaling, width changes and row reuse. This scoped
140
+ acceptance does not establish Electron or browser-extension runtime acceptance.
141
+
142
+ An `identity` row may set `longPressActionKey` to a nonempty action key. A valid
143
+ touch long press on an enabled row emits one `onRowAction` with its current row key,
144
+ action key, `row` anchor source and window press point. An accessibility long-click
145
+ without a physical touch retains the row anchor without a press point. It suppresses the
146
+ ordinary press for that gesture. Motion cancellation, row rebind/recycle,
147
+ disabled state and disposal cancel pending recognition. Trailing accessory
148
+ actions remain independent. Omission preserves existing tap behavior.
149
+
150
+ ### Native Swap token menu backport
151
+
152
+ Status: implemented in local native source, unreleased. Native build and runtime
153
+ acceptance are separate checks. Web and Desktop layout and actions stay unchanged;
154
+ their generated icon artwork is covered in the following section.
155
+
156
+ iOS and Android render `DotVerSolid` with the app's existing 24-unit solid icon
157
+ geometry. On Android, exactly two identity trailing accessories consisting of
158
+ `valuePair` followed by an `icon` named `DotVerSolid` with `actionKey: 'menu'`
159
+ lay out horizontally, matching iOS. Other icon names or action keys retain the
160
+ existing axis rules. This backport does not change row padding, accessory spacing,
161
+ button dimensions, actions, disabled state, or the public snapshot contract.
162
+
163
+ `NativeListAccessoryStackTests` checks the iOS image lookup and bound button image.
164
+ `NativeListRiskAccessoryTest` checks Android's actual icon drawing and the target
165
+ horizontal pair, including vertical controls on rebind.
166
+
167
+ ### Built-in icon metadata generation
168
+
169
+ The closed `scripts/native-list-icons.json` manifest retains platform coverage,
170
+ canonical App source paths and iOS rendering strategy. `Circle` is a local
171
+ primitive. The NativeList-only legacy `BadgeVerifiedSolid` name maps to
172
+ `solid/badge-recognized.svg` / canonical `BadgeRecognizedSolid`, preserving its
173
+ thumbs-up artwork without adding a general alias.
174
+
175
+ `scripts/generate-icons.mjs --app-root <app-root>` matches each source uniquely
176
+ against image's generated catalog, validates source digests and manifest
177
+ metadata, then emits exactly three small Swift/Kotlin/Web name/geometry tables.
178
+ It writes no SVG, path data or xcassets; image owns the single resource pipeline.
179
+ All validation precedes writes. `--check` is read-only and detects missing or
180
+ ambiguous sources, invalid metadata and stale output. Stable sorting emits no
181
+ machine paths or timestamps. Frozen tests compare exact registry key sets;
182
+ this does not prove that every application-computed name is registered.
183
+
184
+ The closed manifest contains 43 names with iOS 42, Android 41 and Web 25
185
+ registry entries (including DotVerSolid). Document2Outline, WalletOutline and
186
+ PlusLargeOutline are registered on all three platforms; TicketOutline also
187
+ retains Web and adds native coverage. These main-line names use image-owned
188
+ canonical SVGs, not duplicate NativeList paths or asset catalogs.
189
+ Existing Activity ten-name and Market/Media private call sites resolve canonical
190
+ names through the same DOM helper; their previous coverage does not expand.
191
+ Image preserves raw path order, fill rules, fixed colors, opacity and viewBoxes.
192
+ NativeList retains its layout, button bounds, actions and snapshot interfaces.
193
+
194
+ Focused SDK fixture acceptance covers native attached lifecycle/rebinding,
195
+ legacy iOS asset comparisons, shared alpha semantics and real Web/Electron
196
+ source/lib consumers. This is not full App, balance, transaction or signed
197
+ release acceptance.
198
+
199
+ Identity trailing accessories stack vertically, except for the pairs every
200
+ platform lays out side by side: `value` + `checkbox`, `valuePair` + `menu`,
201
+ `valuePair` + an `icon` named `DotVerSolid` whose `actionKey` is `menu`,
202
+ `valuePair` + `chevron`, a `RefreshCcwOutline` icon without an action key +
203
+ `chevron`, and `PencilOutline` + `DragOutline` icons. iOS decides this in
204
+ `configureTrailingStack`; Android in `nativeListIdentityTrailingIsHorizontal`
205
+ (JVM test `NativeListIdentityTrailingAxisTest`). The `valuePair` + menu-icon
206
+ pair is the Swap token selector's balance column and row menu; stacking it
207
+ clipped both inside the fixed 60dp row on Android.
208
+
209
+
210
+ A `message` row may opt into `bodyLines: 0`; its complete body wraps within its
211
+ existing text area and determines natural height unless an explicit row or
212
+ container height overrides it. Existing omitted and one-to-three-line behavior
213
+ stays unchanged. `style.body.lines`, when supplied, retains its existing
214
+ one-to-three-line precedence. `presentation: 'inlineWarning'` changes only the
215
+ message container border: requested `style.container.borderWidth` and
216
+ `borderColor` draw top and bottom edges at full row width, with no side edges or
217
+ corner radius. Omitted border width draws no border; omitted presentation keeps
218
+ the existing all-edge container style. The caller supplies warning text, icon,
219
+ font, padding, colors and list-width layout; the SDK does not infer risk status.
220
+ All optional fields must clear on rebind/recycle and patch replacement. The
221
+ existing 4096-code-unit body limit applies.
222
+
223
+ An image-backed `LeadingVisual` may set `fallbackTextColor` to a hex
224
+ `#RRGGBB` or `#RRGGBBAA` color. It colors only the visible initials/fallback
225
+ text, including a failed image's fallback state; omission retains the existing
226
+ platform default. It does not alter the visual background, bitmap, icon, or
227
+ overlay colors. Validation rejects malformed colors. Rebind and recycle must
228
+ clear the previous text color so dark/light theme updates cannot leak between
229
+ rows. Consumers own the semantic theme choice (for example inverse text over
230
+ inverse background).
231
+
232
+ iOS measures opt-in identity and unlimited message content before collection
233
+ placement. Android binds text with unlimited native lines and allows its row
234
+ view to measure that content. Web uses wrapping DOM text and measured row
235
+ height. All platforms retain existing explicit-height precedence and existing
236
+ default rows. Focused source tests must cover validation, patching, old-to-new
237
+ reuse, action isolation and height changing with width/text; real iOS, Android
238
+ and Web acceptance must cover narrow addresses, dynamic type/fonts, long press
239
+ versus tap, keyboard interaction, and the horizontal warning border. Source or
240
+ build success alone is not runtime evidence.
241
+
242
+ ### DeFi position row controls
243
+
244
+ Status: implemented in local source, unreleased. Focused validation and Web
245
+ DOM tests pass; native source compilation passes, while target-app compilation
246
+ and device acceptance remain separate gates.
247
+ `buttonGroup` is a vertical data row with `RowBase` identity and a nonempty
248
+ `buttons` array. Each button has a unique nonempty `key`, localized nonempty
249
+ `label`, nonempty `actionKey`, and optional `disabled`, `loading`, `testID` and
250
+ `accessibilityLabel`. It renders the existing DeFi medium block info-outline
251
+ controls: equal-width buttons, 10-point gap, 12-point vertical padding and
252
+ 12-point radius. Every declared action remains visible; the renderer must not
253
+ truncate the array. Loading retains the button's width, disables that button,
254
+ and displays an activity indicator. A disabled row disables every button.
255
+ Activation emits one existing row action with the button's `actionKey` and
256
+ its own source/slot, without activating the row. A full rebind or recycle
257
+ removes prior buttons, loading indicators, labels, test IDs and handlers.
258
+ The SDK does not infer which DeFi actions are allowed or perform transactions.
259
+
260
+ `sectionHeader` may include `leadingBadge` (the existing badge shape),
261
+ with an optional `NativeListTheme.successBackground` used only for its
262
+ `success` tone. Omitting that theme color keeps the old badge default.
263
+ `style.valuePlacement: 'afterTitle'`, and
264
+ `style.titleDecoration: 'none' | 'dashed'`. Missing fields retain the current
265
+ heading layout and decoration. `valueHelp` and a `valuePair` trailing
266
+ accessory's `primaryHelp` share
267
+ `{ actionKey, presentation: 'tooltip' | 'popover', underline?: 'dashed' }`.
268
+ Presentation and underline are independent: the former selects trigger
269
+ semantics, the latter only draws a dashed underline. `tooltip` on Web opens on
270
+ mouse/pen entry and eligible focus, closes on departure/blur, and mouse/pen
271
+ press closes it until departure; touch toggles. It has no native touch target
272
+ or event. `popover` on all platforms toggles only on click/press and does not
273
+ open from hover. These help targets do not activate their row. Presentation
274
+ change, departure, scroll, rebind, replacement by another anchor and disposal
275
+ invalidate the old anchor.
276
+ On Web, the value-pair primary help target is keyboard focusable; focus opens
277
+ tooltip help and Enter/Space activates popover help without pressing the row.
278
+ The consuming app owns Tooltip/Popover content. Missing help fields keep
279
+ the original noninteractive text. All additions use snapshot JSON and do not
280
+ change the Nitro ABI.
281
+
282
+ `valuePair.primaryFontWeight?: 'medium'` applies only to the primary text
283
+ line. The secondary line keeps its existing regular weight. Omitting the field
284
+ preserves each platform's existing value-pair typography; full rebind and
285
+ recycle remove any previous primary-only override. The field travels in the
286
+ existing snapshot JSON and does not change the Nitro ABI.
287
+
288
+ Validation rejects empty or duplicate button keys, empty labels/action keys,
289
+ invalid booleans and help descriptors, and unknown style fields. The list's
290
+ existing row, text and snapshot bounds apply; no
291
+ silent action truncation is permitted. Conformance includes Web DOM events,
292
+ iOS/Android renderer bind/reuse, TypeScript validation, native builds, and
293
+ later real UI checks for help anchors, loading, disabled actions and geometry.
294
+
295
+ ### Segmented value-pair accessory
296
+
297
+ Status: implemented in local source, unreleased. Focused validation and Web DOM
298
+ tests pass; production iOS target compilation passes. Native instrumentation,
299
+ full App builds and device acceptance remain separate gates. A `valuePair`
300
+ trailing accessory retains its required `primary` and `secondary` fallback
301
+ strings. It may also supply optional readonly `primaryTextSegments` and
302
+ `secondaryTextSegments` arrays of existing `ValueTextSegment` objects. Missing
303
+ or empty arrays display the corresponding fallback; nonempty arrays display
304
+ their text runs. Callers provide matching fallback text, but validation does
305
+ not enforce that match.
306
+
307
+ Each array has at most 64 segments, each with string `text` of at most 4096
308
+ characters and optional `style: 'subscript'`. Total text per array is at most
309
+ 4096 characters. Full snapshots and explicit patch replacements reject null,
310
+ malformed arrays, unknown segment keys and other styles. An omitted patch field
311
+ leaves the existing accessory unchanged; replacement without segments clears
312
+ old runs. Subscript retains the existing 60-percent smaller-font convention
313
+ after semantic text styling. Both lines retain their default size, tone, line
314
+ height, right alignment and accessibility text. These fields add no action or
315
+ hit target and travel in existing snapshot JSON without a Nitro ABI change.
316
+
317
+ ### Identity title image
318
+
319
+ Status: implemented in local source, unreleased. Type checks, JS/Web tests,
320
+ Web runtime checks, package build, iOS XCTest-target compilation, Android
321
+ production/instrumentation-test compilation and JVM tests pass. Focused iOS
322
+ Simulator XCTest and Android emulator instrumentation verify image lifecycle,
323
+ null removal and wallet-sidebar layout. Complete wallet App acceptance remains
324
+ pending.
325
+ An `identity` row may supply `titleImage: { image, accessibilityLabel?,
326
+ hoverActionKey? }`. `image` uses the existing `ImageSource` contract and must
327
+ declare equal finite width and height within 1...40 logical units. The image
328
+ is circular, follows the title and any title icons with a 4-point gap, and
329
+ precedes title suffixes and inline badges. It reserves its declared square
330
+ while loading or after failure, so neither state moves the text. Existing
331
+ rows without this field keep their current layout. The image does not change
332
+ row identity or infer a stock, issuer, or other product meaning.
333
+
334
+ iOS and Android use the existing OneKeyImage-backed slot, request options and
335
+ retry limits. Slots belong to the mounted row renderer; OneKeyImage owns image
336
+ caches. Text-only rebinds retain an unchanged row/source request. Source or row
337
+ changes, removal, recycling and disposal cancel prior work and prevent stale
338
+ completion from painting the next binding. Failure leaves the reserved square
339
+ empty; the SDK adds no title-image fallback request or separate cache.
340
+
341
+ On Web, optional `hoverActionKey` uses the title icon's existing help semantics
342
+ and `leadingAction` anchor source: mouse/pen entry opens an anchored help event,
343
+ departure invalidates it, mouse/pen press closes it until departure, and touch
344
+ press toggles it. Pressing this help target does not activate the row. Without
345
+ help, the image participates in the ordinary row press. It adds no tab stop.
346
+ Native renderers ignore this Web-only help field and preserve ordinary row
347
+ presses. The consumer owns the tooltip text and presentation. Omitted
348
+ `accessibilityLabel` makes the image decorative; a supplied label describes it.
349
+
350
+ Android wallet-sidebar rows with a title image reserve image width and pack the
351
+ wallet name with the image as one centered group. Long names ellipsize within
352
+ the remaining space; removing the image restores the full-width centered name.
353
+
354
+ Full snapshots without `titleImage` remove the image and old help anchor.
355
+ Explicit patch replacement updates the descriptor; an omitted patch field
356
+ leaves it unchanged. Null patches and empty image URIs remove the image. Development guards
357
+ reject malformed descriptors and invalid display geometry; production sanitizes
358
+ optional decoration as described in the validation contract. A production patch
359
+ that supplies a malformed title-image replacement explicitly clears the old
360
+ image and help target instead of retaining stale decoration. The field travels in existing JSON and does not change the Nitro ABI;
361
+ consumers must use a native SDK that implements the field before enabling it.
362
+
363
+ Acceptance covers protocol validation, image/source replacement and removal,
364
+ text-only request retention, Web help-action isolation and anchor cleanup,
365
+ native bind/recycle geometry, and native compilation. Device and complete App
366
+ acceptance must be reported separately from source and DOM tests.
367
+
368
+ ### Identity row risk-management controls
369
+
370
+ Status: implemented in source for local consumers, unreleased. Focused validation,
371
+ Web DOM tests, native builds and device acceptance are tracked separately below.
372
+ The optional `identity.titleIcon` is a static, non-actionable icon after the
373
+ title: a 20-point glyph with a 4-point gap, optional tint and accessibility
374
+ label. "After the title" means directly after the title text: the title row
375
+ packs at its start on every platform (Android `PackedTitleLineLayout`, Web flex
376
+ `0 1 auto`, iOS a slack-absorbing filler at the end of the title row), so the
377
+ glyph and any badge follow the text and never drift toward the trailing column
378
+ (OK-66041). The glyph is vertically centered on the title line; on Web the
379
+ `title` text style (including its line clamp) applies to the title text span,
380
+ never to the flex row that carries the glyph (OK-66402). Its optional Web-only `hoverActionKey` emits an anchored help action
381
+ from the icon alone on mouse/pen hover or touch press; the consumer owns the
382
+ tooltip. Mouse/pen press closes the anchor until pointer leave. Touch press
383
+ toggles the icon anchor. The icon adds no tab stop or separate click action;
384
+ row activation remains unchanged. Departure, scroll, full rebind and destroy
385
+ invalidate the anchor. Omission removes the icon in a full snapshot; omission
386
+ in a patch leaves the existing value unchanged. An explicit replacement icon
387
+ without `hoverActionKey` clears the old hover action. Removing the icon
388
+ requires a full snapshot.
389
+
390
+ On Web, `identity.secondaryTitleIcon` accepts the same descriptor and appears
391
+ after `titleIcon`. Both icons retain independent hover/touch anchors at their
392
+ own glyph rectangles; entering the other invalidates the previous anchor.
393
+ Native renderers ignore this optional Web-only field. Full rebinding to one
394
+ or no icons clears the removed glyph and anchor; explicit icon replacement
395
+ without `hoverActionKey` clears that icon's old hover action. Neither icon
396
+ creates a tab stop or separate click action.
397
+ On Web, clicking either help icon (including its SVG) does not activate the row;
398
+ clicking elsewhere on the row keeps the normal row action.
399
+
400
+ `identity.style.leadingContentMaxWidthRatio`, when given,
401
+ must be finite and within `(0, 1]`; it caps the combined leading visual, gap
402
+ and title content relative to the row's available inner width. Omission keeps
403
+ the existing unrestricted layout. Long titles truncate inside the cap, and
404
+ unused width remains available to trailing controls. The ratio is layout-only,
405
+ never a reuse identity or row-height input.
406
+
407
+ `trailing` accepts an optional `button` accessory with required nonempty
408
+ `label` and `actionKey`, optional `disabled`, `testID`,
409
+ `accessibilityLabel`, and optional hex colors `textColor`,
410
+ `backgroundColor`, `pressedBackgroundColor`, `hoverBackgroundColor`, and
411
+ `focusRingColor`. This single variant has the existing small secondary button
412
+ geometry: medium 14/20 text, 10-point horizontal and 4-point vertical
413
+ padding, a one-point transparent border and a pill radius. Omitted colors use
414
+ the theme's corresponding text and strong-background colors. The button does
415
+ not carry arbitrary React content, a size or variant parameter, or loading
416
+ state. Row or accessory disabled state prevents its action and dims the control
417
+ to 0.4 opacity.
418
+
419
+ Activation emits one existing row-action event with the current row key,
420
+ `trailingAccessory` source and zero-based descriptor slot, without also activating the row.
421
+ The host's existing binding epoch guards recycled controls. Full rebinding
422
+ clears omitted title icons and old button text, visual states, test IDs,
423
+ accessibility values and callbacks, including button-to-icon-to-absent reuse.
424
+ Patches replace fields they explicitly change and leave omitted fields intact.
425
+ iOS and Android use native controls; Web uses a semantic `button` with native
426
+ keyboard activation and disabled semantics. The new fields travel inside the
427
+ existing snapshot JSON and do not alter the Nitro bridge ABI. Consumers own
428
+ localized labels, state updates and any tooltip outside the data row.
429
+
430
+ Acceptance requires snapshot and patch validation, Web action/isolation and
431
+ reuse checks, native renderer tests on production classes, native builds and
432
+ device checks for title placement, cap/truncation, colors, press and recycle.
433
+ No source-only check counts as native runtime evidence.
434
+
435
+ `theme.rowHoverBackground` is an optional Web-only hex color for an enabled
436
+ row's hover background. Omission keeps the existing pressed-background hover
437
+ color. Pressed/active rows continue to use `rowPressedBackground`; native
438
+ renderers ignore the new field. The existing `loadingStrategy: 'skeleton'`
439
+ on a Web leading image displays an animated skeleton while loading, then
440
+ clears it on success, failure, rebind or recycle; other strategies keep their
441
+ existing appearance.
442
+
443
+ Identity leading visuals consume the existing `borderColor` as a one-point/dp
444
+ solid bitmap border when supplied without `borderStyle: 'dashed'`; omission or
445
+ a dashed style clears the solid border on every bind.
446
+ The image is inset by that border width. An overlay may optionally set
447
+ `fontWeight` to one of the existing text weight names
448
+ (`regular | medium | semibold | bold`). This changes only overlay text;
449
+ omission retains the current platform default. Setting and clearing the field
450
+ must survive patching and recycled-view rebinding on all three platforms.
451
+ The existing `leading.fallbackIcon` may optionally set a positive `size` for
452
+ its glyph and a hex `backgroundColor` for the visual's no-image and image-load-
453
+ failure states. A successfully loaded bitmap continues to use
454
+ `leading.backgroundColor`. Omitted fallback fields preserve current rendering.
455
+ Image success, failure and full rebinding must restore the matching background
456
+ and glyph size without carrying values from the previous visual.
457
+ An image overlay may optionally declare `fallbackIcon` with a required glyph
458
+ name and optional tint. It shows only after that overlay image fails, while
459
+ loading retains the overlay's empty background and success shows the bitmap.
460
+ The existing icon accessory accepts only one optional `buttonStyle` value,
461
+ `tertiary`, for the source icon button's 38-point press frame, 24-point glyph,
462
+ six-point padding, one-point border, seven-point visual overhang and pressed
463
+ background. Omission preserves every existing icon accessory layout and action.
464
+ The non-action `RefreshCcwOutline` accessory keeps the source's 16-point glyph
465
+ and frame, with no independent press target. Rebinding it to an actionable
466
+ icon restores the existing icon size and event behavior.
467
+
29
468
  ### iOS 26 fixed top scroll-edge overlay
30
469
 
31
470
  Standalone `NativeList` accepts optional
@@ -76,6 +515,33 @@ migration itself does not change any other protocol field.
76
515
 
77
516
  ## Lifecycle and concurrency
78
517
 
518
+ ### Updates before native host binding
519
+
520
+ Status: implemented in local source, unreleased. The delayed-host regression fails
521
+ on the previous wrapper and passes with this change; 438 package JS/Web tests and
522
+ the package type check pass. This local JavaScript revision is verified with real
523
+ iOS Fabric/UICollectionView rendering on an iPad simulator: delayed-ref,
524
+ parent-layout-before-ref without an artificial delay, and host-ready control
525
+ scenarios all retain the three complete rows after a later single-row update.
526
+ The actual Home list also recovered all six rows after the task-specific Metro
527
+ reload. Earlier natural re-entry evidence included development Metro bundle
528
+ re-requests, so it does not establish a menu-only trigger or a Sui-specific natural
529
+ reproduction. Android device acceptance remains unverified.
530
+
531
+ Valid snapshots and row patches accepted before the native host is available MUST
532
+ retain the latest owned logical state. When that host binds, its rows MUST reflect
533
+ all accepted updates that are eligible for presentation, including updates to rows
534
+ that do not change again afterward. Later single-row updates MUST NOT leave other
535
+ rows at their initial placeholders. Existing disclosure measurement gates and
536
+ snapshot replacement semantics still apply. Once the host is ready, ordinary row
537
+ patches MUST remain incremental rather than requiring a complete snapshot for each
538
+ patch. This contract does not add a public prop, method, or Nitro ABI field.
539
+
540
+ Conformance covers multiple pre-bind patch batches, newer complete prop and
541
+ imperative snapshots, rejected updates, equivalent prop clones after slot layout,
542
+ selection state, repeated callbacks, distinct replacement hosts, and incremental
543
+ single-row updates after binding.
544
+
79
545
  Full binding must work without a preceding recycle callback, including
80
546
  style set/change/clear and content A → B. A binding epoch invalidates stale
81
547
  image callbacks and action anchors. Recycling/disposal releases pending work
@@ -85,6 +551,46 @@ image that already loaded. Common container styling clears what it wrote on the
85
551
  next bind, including properties it set on template children. UI mutation remains on the platform
86
552
  UI thread; [DESIGN.md](DESIGN.md) describes update and event ownership.
87
553
 
554
+ ### Android vertical-drag React touch cancellation
555
+
556
+ Status: implemented; four real Android MotionEvent/JSTouchDispatcher regressions
557
+ passed on a dedicated API 34 emulator on 2026-10-30. The focused regression is
558
+ in `native-tests/android/NativeListTouchDeliveryTest.kt`; build and run
559
+ instructions are in that directory's README. Physical-device press/scroll
560
+ acceptance remains separate.
561
+
562
+ This behavior applies to every vertical NativeList, including standalone lists
563
+ outside a CollapsiblePager and touches beginning on React container slots.
564
+ On the UI thread, movement exceeding Android touch slop with vertical
565
+ displacement at least equal to horizontal displacement confirms a vertical
566
+ drag. An initially horizontal movement may become vertical while the list still
567
+ receives the stream; once vertical, ownership stays vertical until release or
568
+ cancellation. Horizontal lists retain their existing touch behavior.
569
+
570
+ The list notifies its React root of native gesture ownership once per confirmed
571
+ drag, cancelling the active React touch before finger-up. Later MOVE events MUST
572
+ NOT repeat that notification. The listener does not consume the stream: native
573
+ RecyclerView scrolling continues. A stationary tap or movement below touch slop
574
+ MUST retain ordinary React touch-end delivery without native-gesture start/end
575
+ notifications. The existing `keyboardDismissMode: 'on-drag'` behavior shares the
576
+ confirmed-drag boundary.
577
+
578
+ ACTION_UP and ACTION_CANCEL finish a started native gesture exactly once and
579
+ release the parent's interception restriction, even after RecyclerView has
580
+ intercepted its child and stops invoking the item-touch interception listener.
581
+ They clear vertical ownership; the next ACTION_DOWN resets direction and
582
+ gesture tracking. Android's touch-target removal cancellation must finish the
583
+ old stream before a retained list is reattached or its slots are reused, so the
584
+ next tap is not suppressed by the previous drag. Disposal releases the listener
585
+ through the existing detached-resource cleanup. This change adds no prop or
586
+ callback and changes neither iOS nor Web touch handling.
587
+
588
+ Conformance uses real MotionEvent dispatch through NativeListView/RecyclerView
589
+ and React Native's JSTouchDispatcher: vertical drag produces one touch-cancel
590
+ and one native end, a tap produces touch-end, and cancellation/removal followed
591
+ by reuse leaves the next tap functional. This proves native touch delivery, not
592
+ execution of a JavaScript press handler or physical-device gesture feel.
593
+
88
594
  ### Android reorder cancellation
89
595
 
90
596
  Status: implemented; three real Android View/callback regressions verified on
@@ -155,6 +661,16 @@ An unrelated layout request MUST NOT indefinitely postpone command completion.
155
661
  Replacement, actual drag, detach and disposal invalidate old callbacks; a stale
156
662
  callback MUST NOT move the view or clear a newer command's barriers.
157
663
 
664
+ On iOS, the existing `scrollToOffset` implementation is also exposed to native
665
+ callers as `onekeyScrollToOffset:animated:`. BottomTabs discovers this selector
666
+ on the collection view's direct NativeList owner and requests offset zero for
667
+ standalone-list double-press scrolling. The call uses `requestScroll`, including
668
+ its explicit-scroll revision, structural-tail interruption, command notifications
669
+ and pending-layout ownership; external callers MUST NOT bypass it by writing
670
+ the internal collection view's offset. This adds no JavaScript/Nitro API.
671
+ BottomTabs and NativeList native sources must ship together. The native handoff
672
+ is source implemented; structural-transition runtime acceptance remains pending.
673
+
158
674
  A valid command can privately notify the owning Pager before execution, including
159
675
  a same-position no-op; this does not add a public NativeList API. A Pager-owned
160
676
  page-top or sticky-top command can privately cancel only its owned list's old
@@ -182,6 +698,136 @@ All twelve templates have their own renderer family: Message, Rail, MediaTile,
182
698
  Action, System, Activity, DataRow, MetricCard, Market, Identity, SectionHeader and
183
699
  WalletGroup. Same-key family changes must replace the incompatible host. OneKeyImage owns image caches; NativeList owns row/slot binding identity.
184
700
 
701
+ Keys are opaque strings and MUST contain at least one non-whitespace character.
702
+ Leading and trailing whitespace is valid and MUST be preserved in snapshots,
703
+ patches, selection and emitted events on
704
+ iOS, Android and Web. The SDK MUST NOT trim or otherwise normalize keys;
705
+ `token` and `token ` identify different rows. Duplicate checks use the exact
706
+ string. This rule applies to all key fields validated by the shared protocol;
707
+ section index titles retain their separate development-only
708
+ no-surrounding-whitespace assertion.
709
+ The 256-code-unit key limit is a development assertion, not a production limit.
710
+
711
+ Each iOS and Android host retains an index from accepted logical row keys to
712
+ row positions. An accepted complete snapshot reuses that index only when its
713
+ generation and ordered `(key, type)` sequence match the prior accepted
714
+ snapshot; otherwise it replaces the index. Reorder commits rebuild it and
715
+ disposal clears it. Patch batches reuse the index and never include retiring
716
+ presentation rows in it. Native hosts validate each received canonical batch before changing config or
717
+ presentation; invalid native batches leave both unchanged. The shared production
718
+ JS boundary first isolates rejected row/group units, so a native batch contains
719
+ only accepted canonical updates. iOS updates only changed accepted entries in its
720
+ presentation lookup after a valid patch, preserving any retiring rows.
721
+
722
+ ### Validation environments and rejected input
723
+
724
+ Status: implemented in source; acceptance and remaining runtime gaps are recorded below.
725
+
726
+ Development runs strict contract assertions after shared null/empty-image
727
+ normalization. Production sanitizes optional decorations without rejecting
728
+ valid business content: invalid colors/styles are omitted, invalid images use
729
+ existing placeholders, and positive title-image dimensions are clamped to a
730
+ square of 1...40 logical units. Image headers are string dictionaries, never
731
+ interpreted as geometry. Unsafe object graphs are rejected before normalization.
732
+
733
+ Shared image URI validation accepts the entire `onekey-avatar:` scheme,
734
+ case-insensitively, in snapshots and row patches on iOS, Android and Web. It does
735
+ not restrict the host, version, path, query string or fragment, and preserves the
736
+ URI without decoding. Existing image URI schemes retain their acceptance rules.
737
+ Unsupported image URIs fail development assertions and are sanitized out in
738
+ production. This is validation acceptance only; avatar decoding and loading
739
+ remain owned by the platform image loader or Web avatar worker.
740
+
741
+ Common mobile image URI schemes are accepted case-insensitively in snapshots
742
+ and row patches: `http:`, `https:`, `file:`, `content:`, `android.resource:`,
743
+ `asset:`, `res:`, `ph:`, `assets-library:` and image `data:` URIs. Relative paths
744
+ and bare resource names remain accepted. In particular, production MUST NOT
745
+ strip bundled Android Release resource URIs such as
746
+ `android.resource://<package>/drawable/<name>`. This only permits the URI through
747
+ shared validation; resource lookup, permissions and decoding remain the
748
+ platform loader's responsibility. No new loader is registered by this policy.
749
+ Android Release App rendering acceptance remains pending.
750
+
751
+ A complete snapshot remains atomic after decoration sanitization: invalid
752
+ schema, duplicate/missing identities, required business fields or wallet-group
753
+ parent/children relationships reject the snapshot. No row is silently removed.
754
+ Production normalizes contiguous group positions and filters selection to
755
+ selectable keys, respecting none/single modes.
756
+
757
+ Patches use omitted/undefined fields as no-ops. Null explicitly removes an
758
+ optional field on JS, Web, iOS and Android; required fields cannot be cleared.
759
+ Empty optional images and empty top-level segment arrays normalize to null in
760
+ patches and absence in snapshots. Empty images remove their outer titleImage
761
+ or media wrapper. This protocol requires native binaries with null-removal
762
+ support; callers must not enable it against older native SDK implementations.
763
+
764
+ Market price remains required and nonblank. Updating nonempty priceSegments
765
+ requires a price in the same canonical patch; callers own matching formatted
766
+ text (the validator does not reconstruct subscript prices). Updating price
767
+ without segments clears an existing overlay. For identity/market subtitles,
768
+ updating one representation clears the old other representation unless both
769
+ are supplied; clearing segments alone retains the base text. Activity has no
770
+ subtitle pair. Market quote changes with an existing/new webTable must include
771
+ matching table data or explicitly remove webTable.
772
+
773
+ Development rejects invalid patch batches atomically. Production isolates
774
+ failures to each target key and its coupled groupId: all updates to a key are
775
+ merged in order before validation, and a failure rejects that unit while other
776
+ valid units commit. Financial-value and interactive accessories with missing
777
+ required data fail their row; malformed purely decorative accessories are
778
+ removed. Diagnostics contain locations, never row values or image URLs.
779
+
780
+ All targets share the canonical accepted patches. The accepted JS rows and
781
+ serialized native changes derive from the same result. Native owned snapshots
782
+ and accepted Web engine snapshots validate only changed rows during patches;
783
+ unchanged rows are not rescanned. Direct helpers receiving an unowned baseline
784
+ validate that baseline once before incremental merging. Native owned snapshots
785
+ are immutable and indexed by key. Initial invalid snapshots render empty;
786
+ rejected later snapshots retain the last accepted snapshot. Rejected patch
787
+ units retain their previous complete rows. Direct validators still throw on
788
+ unrecoverable input. Image loading failures remain the loader's responsibility.
789
+
790
+ `planNativeListPatches(previous, next)` is an explicit, pure public helper for
791
+ callers that own two valid, immutable snapshots. It returns a readonly empty
792
+ batch for equal snapshots, value-only `identity` or `dataRow` row patches when
793
+ only eligible values change, and `undefined` when the caller must deliver a
794
+ complete snapshot. It never dispatches, accepts or validates an update, and
795
+ does not deep-copy, freeze or cache caller input. Returned patches may refer
796
+ to `next`'s immutable values; the caller retains baseline and commit ownership.
797
+ The component does not automatically invoke this planner for prop snapshots. Any
798
+ change outside `rows`, including generation, selection, layout, list style, empty state or
799
+ footer, requires a complete snapshot. Row keys, order and types must match.
800
+ `identity` may patch `subtitle`, `subtitleSegments` and `trailing`; `dataRow`
801
+ may patch non-asset columns and `trailing` while preserving the first asset
802
+ column. Changes to other row fields or to the presence of optional patch
803
+ fields require a complete snapshot. Comparison is by JSON value, ignores
804
+ object property order and properties whose value is `undefined`, and keeps
805
+ array order significant.
806
+
807
+ Rejection emits a diagnostic without including row keys, text or image URLs.
808
+ Explicit calls to the exported validation functions still throw on rejected
809
+ input, so development tooling can inspect the full contract failure. Rejection
810
+ does not imply that the requested update succeeded. No row identity is trimmed,
811
+ truncated or regenerated, and no row is silently dropped from a snapshot.
812
+
813
+ Acceptance for this revision: 429 JS/Web tests pass, including native React
814
+ wrapper containment, canonical null/undefined semantics, price/segment pairing,
815
+ production row/group isolation and unchanged-row access checks. Package type
816
+ checks, lint (zero errors; existing warnings) and test-integrity checks pass.
817
+ iOS production/XCTest targets and Android production/instrumentation targets
818
+ compile; 29 Android JVM tests pass. Four focused iOS 26.5 XCTest cases verify
819
+ title-icon packing, title-image reuse and null removal. Android 15/API 35
820
+ instrumentation verifies wallet-sidebar image bounds, long-title ellipsis,
821
+ and full-width title restoration after removal. Shared JS/Web regressions also
822
+ verify that malformed production title-image replacements clear the previous
823
+ image and help anchor. Full App acceptance remains pending.
824
+
825
+ Wallet groups use the actual embedded parent/children model, not memberKeys
826
+ references. groupId/groupPosition remain snapshot-owned fields; production
827
+ patch failures also reject other patched rows in the same existing groupId.
828
+ Unknown extension fields (including unsupported sparkline/changeHighlight
829
+ models) are ignored in production rather than introducing a new renderer API.
830
+
185
831
  ## Platform contract
186
832
 
187
833
  All platforms expose the same bounded style properties and public semantics.
@@ -190,6 +836,49 @@ Existing geometry/typography differences are recorded in
190
836
  them. iOS uses UICollectionView, Android RecyclerView, and Web a windowed DOM
191
837
  engine. See [DESIGN.md](DESIGN.md) for their current ownership boundaries.
192
838
 
839
+ ### iOS account-selector trailing width (OK-65638)
840
+
841
+ Status: implemented. Manual consuming-app verification on an iOS Simulator
842
+ reported normal balance rendering after a local native rebuild. Automated
843
+ XCTest execution and broader device acceptance are tracked separately.
844
+
845
+ For an `identity` row with `presentation: 'accountSelector'`, an empty trailing
846
+ collection or a spinner-only accessory MUST leave the remaining horizontal
847
+ space available to the title and subtitle column. A short title MUST NOT cause
848
+ the balance subtitle to collapse while unused row width remains. The existing
849
+ gap before the trailing column and the shortened address's compression priority
850
+ remain unchanged; content may still truncate when the row is actually too narrow.
851
+ Visible controls keep their intrinsic width without introducing required-width
852
+ conflicts. Rebinding between empty, spinner and single-icon states MUST release
853
+ the previous row's width constraint.
854
+
855
+ `NativeListAccountSelectorLayoutTests` covers balance/address geometry and
856
+ control widths on production UIKit cells, including rebinds. Android and Web
857
+ keep their existing layout and public interfaces.
858
+
859
+ ### Android section-index attachment
860
+
861
+ The index rail and its letter preview MUST remain outside the view hierarchy
862
+ until the accepted configuration contains usable index entries. Disabling the
863
+ index or removing its last usable entry MUST detach both views, cancel the
864
+ preview interaction, and prevent a pending attachment callback from restoring
865
+ them. Restoring usable entries MUST reattach the same view instances without
866
+ duplicate parents. This attachment lifecycle is Android-specific; iOS and Web
867
+ keep their existing behavior.
868
+
869
+ The section-index letter preview is decorative. It MUST NOT participate in
870
+ React Native touch targeting while visible, fading, or invisible. Controls in
871
+ React container slots beneath its bounds MUST remain pressable; the index rail
872
+ continues to own index selection and scrubbing.
873
+
874
+ When `sectionIndex.centeredInWindow` is enabled, the Android index rail moves
875
+ between the list container and the window host as list visibility and attachment
876
+ change. Before adding that same rail to its new parent, the previous parent MUST
877
+ finish any pending view transition for it. Hiding the list returns the rail to
878
+ the list container; detaching still uses the existing posted return so that a
879
+ window traversal is not interrupted. Re-showing or reattaching MUST retain one
880
+ rail instance with one current parent.
881
+
193
882
  ### Font resource ownership and runtime configuration
194
883
 
195
884
  Status: implemented; JavaScript regression tests, Android compilation/JVM tests
@@ -235,16 +924,121 @@ not establish visual acceptance. Acceptance includes two independent runtimes,
235
924
  two list instances, changed/reset mappings, invalid configuration without partial
236
925
  state, all templates and container text, and retained selection/scroll behavior.
237
926
 
927
+ ### Web row and trailing button cursor
928
+
929
+ Pressable rows and trailing buttons keep the default cursor on Web and signal
930
+ interactivity through their hover background, like the host app's rows and
931
+ buttons. Reorderable rows keep their grab cursor. Icon buttons, checkboxes and
932
+ action buttons keep the pointer because some of them have no hover background.
933
+
934
+ ### Trailing text accessory hit area (OK-65494)
935
+
936
+ Status: implemented on iOS and Android. iOS XCTest
937
+ (`NativeListAccessoryStackTests`) checks the control state and hit test, Android
938
+ a JVM policy test (`NativeListPressPolicyTest`); iOS Simulator acceptance on the
939
+ app's network selector is recorded in the changelog entry (2026-10-26). Android
940
+ device acceptance pending.
941
+
942
+ A trailing text accessory (`value`, `valuePair`, `progress`, and a `radio` or
943
+ `switch` without an action key) is display only. It MUST NOT own touches: a tap
944
+ on it is a row press, so the whole row, including its value column, is the hit
945
+ area on iOS, Android and Web. Only a text accessory that carries an action key
946
+ (`radio`, `switch`) handles its own tap and emits that action instead of the row
947
+ press. Icon, chevron, menu, drag and checkbox accessories keep their existing
948
+ ownership. iOS implements this by disabling user interaction on the shared
949
+ accessory button when it has no action and restoring it on reset; Android keeps
950
+ the trailing `TextView` non-clickable unless `showTrailing` binds an action
951
+ (`setOnClickListener(null)` alone leaves a view clickable). Web already renders
952
+ an action-less accessory as a `span`, so its click reaches the row.
953
+
954
+ ### Leading badge overhang (OK-65694)
955
+
956
+ Status: implemented on Android, the only platform that clipped. Android JVM
957
+ policy tests (`NativeListLeadingVisualClipPolicyTest`,
958
+ `NativeListActivityHostClipPolicyTest`); Android emulator
959
+ acceptance on the example account selector (API 36, 2026-10-27) is recorded in
960
+ the changelog entry. iOS and Web are unchanged.
961
+
962
+ A leading visual lays these badges past its own frame: a token `networkImage`
963
+ with its backdrop, a `cornerIcon`, and every `overlays` entry, whose default
964
+ `offset` of 2 already overhangs (the app's account selector hangs its
965
+ single-network badge 4 units past the 32-unit avatar). Such a badge MUST render
966
+ in full on every platform. iOS stops clipping the visual (`clipsToBounds`) once
967
+ one of those descriptors is bound, and Web keeps the visual `overflow: visible`.
968
+ Android clips a child to its own bounds whenever its parent clips children, so a
969
+ host row that keeps the default `clipChildren` cuts the overhang flat even
970
+ though the visual itself never clips. The Identity renderer therefore stops
971
+ clipping children and padding exactly when the bound leading visual reports an
972
+ overhanging badge (`requestsUnclippedHost`, decided by
973
+ `nativeListLeadingVisualOverhangsFrame`), as the Market and Message renderers
974
+ already do for their network badges; a visual without such a badge keeps the
975
+ row's default clipping.
976
+
977
+ Host clipping is per-bind state. A row view that serves several row shapes
978
+ (the Android Activity view serves the legacy row and the rich `amounts` row) is
979
+ reused across binds, so each bind MUST derive clipping from the item it binds
980
+ (`nativeListActivityHostClips`): a view that last showed an overhanging badge
981
+ clips again when it is rebound to a row without one. The rule follows the
982
+ visual, not the row shape: the rich row renders its leading visual on the
983
+ details view, so that view and every column between the visual and the host
984
+ stop clipping too, and the host derives its own clipping from the details
985
+ view's visual (`leadingOverhangs`, OK-66275). Before this rule the rich branch
986
+ forced the host's clipping back on and left the details view at Android's
987
+ defaults, so the app's history rows (which always carry `amounts`) still showed
988
+ the badge cut at the bottom-right after the legacy branch had been fixed.
989
+
990
+ The row's own shape still clips on every platform: iOS masks the cell to its
991
+ corner radius (`masksToBounds`), Web keeps the row `overflow: hidden`, and
992
+ Android keeps `clipToOutline` for a `style.container.cornerRadius` row (its
993
+ parent also clips each row to its bounds). A badge is therefore whole only while
994
+ it stays inside the row's rounded outline, which every app descriptor does: the
995
+ account badge hangs 4 units towards the row's centre and the wallet top-left
996
+ badge (`offsetY` 4) starts inside a 12-unit corner radius with the default
997
+ padding. The example `NativeListRowStylePage` row `identity-badge-rounded`
998
+ combines both badges with `container.cornerRadius` as the rendering check for
999
+ that combination.
1000
+
1001
+ ### Activity leading pair (OK-66071)
1002
+
1003
+ Status: implemented on iOS and Android; Web already drew the pair. Android JVM
1004
+ geometry test (`NativeListLeadingSlotFrameTest`); Android emulator acceptance on
1005
+ the example row-style page is recorded in the changelog entry.
1006
+
1007
+ An Activity row whose `leading` and `secondaryLeading` are both tokens with an
1008
+ image (the app's swap and multi-asset history rows) draws them as a pair inside
1009
+ the 40-unit visual box, as the legacy avatar and the Web renderer do: the
1010
+ primary token at the top-left at 0.6 of the box (24 units), the secondary at the
1011
+ same size at the bottom-right inside a 2-unit ring in the row background, above
1012
+ the primary. The ring is shown only while the secondary image is displayed:
1013
+ while that image loads, after a failed load and after recycling it stays hidden,
1014
+ so it never covers the primary's corner with a blank disc. The token `networkImage` badge, when present, keeps its single-token
1015
+ geometry at the box's bottom-right corner above the secondary; a pair shows one
1016
+ badge, never one per member. A secondary token without an image leaves the
1017
+ primary alone at full size, and a primary without an image lets the secondary
1018
+ take its place. Before this rule Android laid the secondary over the whole box
1019
+ (hiding the primary and the badge) and iOS drew it in the badge's corner slot
1020
+ over the badge. The per-source geometry is one pure function on Android
1021
+ (`nativeListLeadingSlotFrame`) and the same arithmetic in
1022
+ `NativeListLeadingVisual.layoutSubviews` on iOS; both restore the stacking
1023
+ order by role on every bind because slots are reused across roles.
1024
+
1025
+ The Android Activity renderer also applies the badge-overhang rule above on
1026
+ both of its branches (`requestsUnclippedHost` stops the legacy content row, the
1027
+ rich details view with its columns, and the row padding clipping), so the
1028
+ history rows' network badges render whole instead of cut flat.
1029
+
238
1030
  ## Failures, fallback and limits
239
1031
 
240
1032
  Snapshot validation rejects malformed/duplicate-key input without partial
241
- application. Template field/array bounds and image fallback behavior are defined
1033
+ application, through the contained failure behavior above. Development-only
1034
+ template field/array bounds and image fallback behavior are defined
242
1035
  in [ROW_TEMPLATES.md](ROW_TEMPLATES.md), [README.md](../README.md) and
243
1036
  [DESIGN.md](DESIGN.md). This change adds the style surface's limits, defined in
244
1037
  [STYLE_SPEC.md](STYLE_SPEC.md) §3.3/§4/§5: numeric bounds, `#RRGGBB`/`#RRGGBBAA`
245
1038
  colors (including `listStyle.separator.color`), `groupCornerRadius` `0…40`, and
246
- rejection of any undeclared or unknown nested style key by `validateSnapshot`
247
- and `validatePatches`, where extra keys used to be ignored. It adds no retry
1039
+ development-time rejection of undeclared or unknown nested style keys by
1040
+ `validateSnapshot` and `validatePatches`. Production renderers ignore unsupported
1041
+ style properties while minimum protocol guards remain active. It adds no retry
248
1042
  policy or automatic layout correction.
249
1043
 
250
1044
  ## Performance and resources
@@ -554,6 +1348,76 @@ disposal. Unit checks prove transition semantics, not rendered behavior.
554
1348
 
555
1349
  ## Native media preview probing
556
1350
 
1351
+ ### Persistent first-frame revision — Source implemented; scoped iOS validation
1352
+
1353
+ This revision supersedes the cell-only frame retention, unbounded visible-player
1354
+ count and copy-failure retained-player behavior described in the baseline below.
1355
+ Image owns the native-only preview cache and extraction coordinator defined in
1356
+ its SPEC §6.3; NativeList retains the paused/muted player and view lifecycle.
1357
+ No public descriptor, JavaScript API or Web renderer behavior changes.
1358
+
1359
+ On reaching the video candidate, a visible slot queries permitted decoded memory
1360
+ and then disk before requesting extraction. A hit displays the still frame and
1361
+ creates no AVPlayer/ExoPlayer. Normal image candidates retain their original
1362
+ precedence and image cache; a video-cache hit MUST NOT bypass an earlier image
1363
+ candidate. Cache identity excludes row key and includes URI, canonical headers,
1364
+ bounded pixel tier, schema and capture fit. Recycle drops cell state, not the
1365
+ shared cached frame. Fit, orientation, black/transparent platform letterbox and
1366
+ row-owned tap behavior match a newly captured frame.
1367
+
1368
+ The media descriptor exposes URI, explicit headers, dimensions, fit and cache
1369
+ policy, with no cookie/session management API. Preview identity does not track
1370
+ ambient cookie sessions or automatically invalidate on cookie changes; media
1371
+ that requires that behavior is outside the supported preview-cache contract.
1372
+ Existing AVPlayer/Media3 networking and cookie handling remain unchanged. The
1373
+ cache does not promise that underlying network requests are cookie-free.
1374
+ Detaching an iOS view with no window MUST preserve its last pixel tier and captured
1375
+ still; only a real attached-window scale/layout change can invalidate that tier.
1376
+
1377
+ Slots subscribe only while visible, attached and foreground eligible. They
1378
+ cancel on invisibility, detach, background, recycle or identity/size change and
1379
+ release any owned player immediately. A same-key visible peer may take over;
1380
+ old owner, binding, candidate and player generations cannot attach a frame or
1381
+ complete a newer request. At most two flights extract concurrently, bounded by
1382
+ Image's queue and 10-second grant deadline. The existing six short copy attempts
1383
+ may run, but exhaustion now releases the player and advances/fails the candidate
1384
+ instead of retaining a paused player indefinitely. Success is emitted after a
1385
+ valid still exists, not solely when the player reports its first rendered frame.
1386
+ No failed extraction is cached. Disk-write failure still permits a successful
1387
+ still to display. A cached or newly copied still releases player and viewport
1388
+ observers, and ordinary text-only rebinding retains the current presentation.
1389
+
1390
+ The cache dimensions use actual view pixel size, capped to a 1024-pixel long edge
1391
+ and 1,048,576 pixels with source aspect ratio preserved. Empty layout defers work.
1392
+ iOS retains the CVPixelBuffer for bounded background CI conversion rather than
1393
+ building a full-resolution UIImage on the UI thread. Android performs a bounded
1394
+ TextureView copy on the UI thread and background encoding; its cached presentation
1395
+ must restore the aspect-ratio container after reuse. Source headers and URL/query
1396
+ text are not written into cache filenames, metadata or logs.
1397
+
1398
+ The production iOS video slot passed 14 simulator checks with a real H.264 MP4,
1399
+ including cold capture/player release, cross-cell/recycled memory reuse, disk
1400
+ reuse after memory clear and a layout-tier resize. Its harness substitutes only
1401
+ the unused image-candidate host; image-to-video fallback and full-app integration
1402
+ were not exercised. Android runtime and physical-device performance remain
1403
+ pending. The complete acceptance matrix adds warm cross-cell/recycled hits with
1404
+ zero new players, disk hits after memory clear and process restart, same-source
1405
+ deduplication, owner cancellation/transfer, concurrency and timeout bounds,
1406
+ clear-generation races, corrupt entry repair and all existing probing/lifecycle
1407
+ cases. Native tests and simulator evidence cannot establish device FPS or memory
1408
+ improvement; those require workload-specific measurements on target devices.
1409
+
1410
+ The final Android slot, including deferred Media3 error release, compiled in the
1411
+ consumer's normal native build and final incremental APK. Matching SDK/consumer
1412
+ source hashes and APK provenance were checked, and the App visibly started on
1413
+ the isolated emulator. This is build/startup acceptance, not Android video-frame
1414
+ or complete Home NFT route acceptance. A temporary Home probe lacked account
1415
+ context; a later diagnostic Dialog had an unexplained black capture. Neither is
1416
+ recorded as a passing NFT visual case. Further scrolling, frame-cache and
1417
+ memory/performance measurements are outside this PR's recorded acceptance scope.
1418
+
1419
+ ### Baseline before the persistent first-frame revision
1420
+
557
1421
  Status: Source implemented; native runtime acceptance pending. `mediaTile.media`
558
1422
  is an opt-in native-only preview descriptor: `{ source: ImageSource, probeOrder:
559
1423
  ('image' | 'video')[] }`. The order contains one or two distinct candidates.
@@ -570,8 +1434,8 @@ There are no controls or video touch targets; the row owns press interaction.
570
1434
  Android preserves a black letterbox and iOS a transparent one, matching the
571
1435
  existing native Video views. No code calls play or requests audio focus.
572
1436
 
573
- A failed candidate advances once; exhaustion displays the existing error
574
- placeholder. New source/row identity resets probing; binding, candidate and
1437
+ A failed candidate advances once; exhaustion displays the failed media
1438
+ placeholder (see Media loading and failure placeholders). New source/row identity resets probing; binding, candidate and
575
1439
  player generations reject stale callbacks, including A→B→A. Text-only updates
576
1440
  preserve the current request. On Android, terminal image/player completion is
577
1441
  posted to the next UI queue turn before advancing probes or notifying the row;
@@ -617,6 +1481,49 @@ leaked audio/player resources. Static API checks do not prove these cases.
617
1481
 
618
1482
  ## Native container slots (source implementation, runtime verification pending)
619
1483
 
1484
+ ### Optional scrolling sidecar (source implemented; native runtime verification pending)
1485
+
1486
+ `listSidecar` and `sidecarLayout: { width, gap, maxContentWidth }` are an
1487
+ optional pair for a vertical linear list. Omission preserves the existing
1488
+ single-column layout. All three values are finite non-negative logical pixels;
1489
+ `width` and `maxContentWidth` must be positive and `width + gap` must be less
1490
+ than `maxContentWidth`. The list remains the sole scroll owner. At viewport
1491
+ width `V`, the content band is centered with width `min(V, maxContentWidth)`;
1492
+ the sidecar occupies the logical end `width`, separated from the logical start
1493
+ data/slot column by `gap`. In RTL the sidecar is physically left and the list
1494
+ is physically right. Header, rows, empty slot and footer use the start column. The sidecar
1495
+ starts at the content top, scrolls on the same native frame as rows, and may
1496
+ contain interactive React content. Its root is retained until Fabric unmount;
1497
+ it does not become a row, affect row keys, indices, selection or prefetch. The
1498
+ left RecyclerView/UICollectionView still lays out only viewport-near rows.
1499
+
1500
+ The scrolling extent is at least the greater of the left column including its
1501
+ footer and the sidecar's measured bottom. A taller sidecar extends the tail
1502
+ after the left footer; it must not push that footer below its normal position.
1503
+ `scrollToEnd`, refresh and structural transition offset clamping use this
1504
+ combined extent. A sidecar height or breakpoint change preserves an in-range
1505
+ offset; an out-of-range offset is clamped by the existing shrink correction.
1506
+ Rapid row transitions retain their existing one-shot id and anchor semantics.
1507
+ Native sidecar position follows the native scroll offset directly, without a
1508
+ per-frame JS bridge. A drag beginning over interactive sidecar content must
1509
+ still scroll the same list; taps retain the content's own actions.
1510
+ On iOS, React container slots are clipped below the enclosing Pager's fixed overlay and sticky region using its existing owner-scoped native viewport callback. Scrolling, rotation, owner removal, and recycling update or release those masks without JS frames. On iOS the sidecar host is a narrow UICollectionView subview in content
1511
+ coordinates. On Android the narrow overlay follows the RecyclerView's measured
1512
+ logical offset; after a vertical touch slop it cancels the React press and
1513
+ forwards the original touch stream to the list's SwipeRefreshLayout. The
1514
+ Android tail spacer derives from explicit/measured row and slot extents, not
1515
+ RecyclerView's variable-height scrollbar estimate.
1516
+
1517
+ Web uses the same measured two-column geometry inside its current owned or
1518
+ explicit external scroll host, with DOM virtualization limited to the left
1519
+ rows; the sidecar is a single React slot. Callers already placing a Web sidebar
1520
+ as a sibling may omit the new pair there. Horizontal/grid configurations with
1521
+ a sidecar are rejected. Acceptance requires iOS and Android wide Home scrolling,
1522
+ right-column drag and action, short/empty assets, collapse animation while
1523
+ scrolled, refresh, resize across the breakpoint without list remount, and
1524
+ thousands of rows remaining bounded to the native recycler viewport. Source,
1525
+ type and unit checks alone do not establish device acceptance.
1526
+
620
1527
  `listHeader`, `listEmpty` and `listFooter` accept React nodes on iOS and Android
621
1528
  vertical lists only. They are optional and default to absent. They are common
622
1529
  container capabilities, not row templates, and MUST NOT be used for per-item
@@ -643,19 +1550,143 @@ width React lays it out at. Android's narrow-screen row scale and section-index
643
1550
  apply to data rows only. Slot React trees own their internal layout and
644
1551
  business actions; NativeList owns their scroll placement and lifecycle.
645
1552
 
646
- The wrapper mounts exactly three non-collapsible slot roots and reports measured
647
- heights through `containerSlotHeightsJson` in header/empty/footer order. Native
648
- validates three finite, non-negative heights. Slot updates MUST NOT alter data-row
649
- keys or public row indices. No per-scroll-frame JS position updates are used.
1553
+ The wrapper mounts six non-collapsible slot roots and reports measured heights
1554
+ through `containerSlotHeightsJson` in header/empty/footer/sidecar/expanded/toggle
1555
+ order. The sidecar root has zero reserved height when absent. Native validates
1556
+ six finite, non-negative heights and still accepts legacy four-number arrays,
1557
+ except for the iOS pending-header state described below. Slot updates MUST NOT
1558
+ alter data-row keys or public row indices. No per-scroll-frame JS position updates are used.
650
1559
  iOS mounts each slot root inside a list-owned host view in UICollectionView and
651
1560
  reserves native layout space. The host owns the slot's vertical position and clips to
652
1561
  the reported height, so React frame updates cannot move a slot out of place and a slot
653
1562
  whose height has not been reported yet (or has just grown) never draws over rows.
1563
+
1564
+ iOS header first-frame measurement: when `listHeader` is present but
1565
+ its first layout has not arrived, the matching wrapper sends `null` for slot 0
1566
+ instead of an authoritative zero. The other five slot values remain finite,
1567
+ non-negative numbers; Android serialization stays unchanged. On iOS, an absent
1568
+ header always reports numeric zero. Each absent/present boundary replaces only
1569
+ the header slot root and starts a new measurement epoch; a layout callback from
1570
+ an earlier epoch MUST NOT make the current header ready. Replacing header content
1571
+ while it remains present does not start another epoch. A newly present header stays pending
1572
+ until its own layout reports a number, including zero.
1573
+ Before that measurement, the iOS host may reserve the current mounted header
1574
+ root's finite, non-negative `ceil(bounds.height)` when its bounds width is finite
1575
+ and positive. It applies that height to both clipping and row placement in the
1576
+ same native update, regardless of whether the root or pending heights arrive
1577
+ first. Without a valid current root, pending height is zero. Unmounting or
1578
+ recycling the root discards its provisional height; another root cannot inherit
1579
+ it. The first numeric measurement, including a genuine zero, is authoritative
1580
+ and retains ordinary dynamic growth and shrink behavior. Legacy four- and
1581
+ six-number arrays remain accepted. Only header slot 0 may be null, and the
1582
+ wrapper and native binary must match for this pending-header protocol.
1583
+ When the vertical iOS collection view first obtains positive bounds in
1584
+ `layoutSubviews`, it emits `OneKeyNativeScrollViewDidBecomeReady` before
1585
+ executing pending scroll requests or laying out container slots so an enclosing
1586
+ `CollapsiblePagerView` can synchronously attach and apply top insets, offset
1587
+ alignment, and sticky heights during the same layout pass.
1588
+
654
1589
  Android uses ConcatAdapter with three single-item slot adapters around the existing
655
1590
  data adapter; adapter binding indices stay local while layout-manager positions
656
1591
  are explicitly translated. Slots span all grid columns, do not select/reorder,
657
1592
  and do not emit row actions, visible-row indices, or image-prefetch work.
658
1593
 
1594
+ ### Disclosure slots and settlement (source implemented; limited runtime verification)
1595
+
1596
+ Native callers may opt in with `snapshot.disclosure: { expanded: boolean,
1597
+ expandedTrailingInset?: number }`, `listExpandedContent`, and
1598
+ `listStructureToggle`. `expanded` is the accepted target state independent of
1599
+ row count, the expanded slot's measured height, and the one-shot structural
1600
+ transition command. `expandedTrailingInset` defaults to zero and must be a
1601
+ finite, non-negative number of logical pixels. Without `disclosure`, the
1602
+ existing four-slot and structural-transition behavior is unchanged. On Web,
1603
+ `C` and `T` occupy the existing single React footer band after the list rows,
1604
+ followed by the expanded trailing inset and the caller's footer `F`. `C` is
1605
+ mounted on first expansion and may remain mounted for that scope after collapse.
1606
+ Without an accepted `disclosure`, supplied `C` and `T` are hidden and inert.
1607
+ At the collapsed endpoint `C` has zero layout height and is hidden from pointer,
1608
+ keyboard, and accessibility interaction; `T` remains mounted and interactive
1609
+ through rapid reversals. Web does not use the native settlement callback to
1610
+ release `C`. The Web engine continues to measure that one footer band and to
1611
+ own its existing structural-tail animation and external scroll-host correction;
1612
+ its per-frame presentation need not match the native clip geometry. Desktop
1613
+ and extension retain their existing structural presentation.
1614
+
1615
+ The native slot order is 0 header, 1 empty, 2 existing footer `F`, 3 sidecar,
1616
+ 4 expanded content `C`, and 5 stable structure toggle `T`; the optional iOS
1617
+ top overlay follows at index 6. The native wrapper reports six measured slot
1618
+ heights in that order. This slot-index ABI requires the package's JavaScript
1619
+ wrapper and native binary to be integrated from the same version; the new
1620
+ native host does not reinterpret an old four-slot wrapper's index 4 as an
1621
+ overlay. The disclosure layout in the left list column is data
1622
+ rows `R`, then `C`, then `T`, then a native trailing inset `I`, then the one
1623
+ existing `F`. `F` is never duplicated as retiring presentation. `T` retains
1624
+ one React instance and a stable measured height while its text changes, and
1625
+ remains interactive during a transition so a tap can reverse it. `C` is
1626
+ measured after mounting for expansion. On collapse the caller retains that
1627
+ same React instance until the newest collapsed settlement callback, after
1628
+ which it may unmount it. Its measured root keeps its natural height; native
1629
+ clipping, not a React height animation, controls the visible portion. `I` is
1630
+ `expandedTrailingInset` at the expanded endpoint and zero at the collapsed
1631
+ endpoint. The native display-link/animator updates the visible `R` suffix,
1632
+ `C`, `T` position, `I`, `F` position, scroll offset, and sidecar-aware extent
1633
+ on one UI-thread timeline. No per-frame JavaScript command is required.
1634
+ The wrapper may mount `C` and `T` before delivering a new structural snapshot;
1635
+ the previous accepted snapshot continues to own the list during this short
1636
+ preparation. For that new command only, the wrapper waits for the current
1637
+ instances of both slot roots to report their first layout, including a genuine
1638
+ zero-height layout, then delivers the complete snapshot once. A numeric zero
1639
+ height without a layout event is not proof that a newly mounted `C` is ready.
1640
+ A newer pending id replaces an older one; no stale prepared command may be
1641
+ delivered later. Initial snapshots and same-id content updates do not wait.
1642
+ Native applies the measured slot heights and the complete pending snapshot in
1643
+ one ordered main-thread update, with heights first, regardless of which Nitro
1644
+ property setter ran first in that React commit. It must not reveal `C` or emit
1645
+ a settlement callback between those two values.
1646
+
1647
+ All retiring or newly revealed row suffix is inert and excluded from
1648
+ accessibility, selection, row actions, visible-range, and end-reached events.
1649
+ The whole `C` slot is inert and accessibility-hidden while preparing,
1650
+ animating, or settled collapsed; it becomes interactive and accessible only
1651
+ after the expanded endpoint settles. The visible part of `T` remains
1652
+ hit-testable throughout so a tap can reverse the transition. Native
1653
+ must not infer the target from product-specific row counts or toggle text.
1654
+ An initially expanded snapshot and a same-transition-id content or price
1655
+ update use `disclosure.expanded` without starting or re-acknowledging a
1656
+ structural transition. An initial collapsed snapshot may omit or mount an
1657
+ empty `C` root; later collapse keeps its mounted instance through settlement.
1658
+
1659
+ For each newly consumed `structuralTransition.id` with `disclosure`, native
1660
+ emits `onStructuralTransitionSettled` once for the latest non-superseded id
1661
+ when a listener is registered. Without a listener, native still settles the
1662
+ command and releases its pending transition state, but does not serialize or
1663
+ cross the callback boundary. Adding or replacing a listener does not replay a
1664
+ settled id; removing it stops delivery for subsequent settlements. The caller
1665
+ may keep `C` mounted after settlement; native still controls its visibility,
1666
+ interaction, and accessibility. The callback carries JSON
1667
+ `{ transitionId: string, status: 'completed' | 'interrupted',
1668
+ settledExpanded: boolean }`. `settledExpanded` describes the accepted target
1669
+ after native geometry and scroll ownership have reached that state, never a
1670
+ guess from measured `C` height. Natural animation completion, reduced motion,
1671
+ zero duration, and a new id with unchanged or empty row keys that settles
1672
+ directly report `completed`. Drag, explicit scrolling, resize, or unsupported
1673
+ geometry atomically commit the accepted target and report `interrupted` after
1674
+ temporary presentation and scroll ownership have been released. A newer id
1675
+ replaces the previous command from current presentation geometry: the older
1676
+ id must not complete late or force its former target before the newer one.
1677
+ The caller guards the callback by its latest id and current list/account/network
1678
+ owner; a matching numeric id from a prior owner must not unmount current `C`.
1679
+ An accepted row patch while a direct disclosure commit is pending MUST preserve
1680
+ that command's settlement ownership. If the patch supersedes the pending list
1681
+ submission, its committed callback settles the current non-superseded id after
1682
+ layout and any pending collapsed-toggle positioning, exactly once. It MUST NOT
1683
+ leave callers waiting for a discarded list callback.
1684
+ An already settled id
1685
+ does not re-emit on a same-id patch. Disposal drops the callback with its
1686
+ owner. An unsupported or immediately settled new id must still acknowledge
1687
+ when a listener is registered; otherwise a caller could retain `C`
1688
+ indefinitely after collapse.
1689
+
659
1690
  On Android, mounting/unmounting a slot or changing its actual rounded native
660
1691
  height MUST request one coalesced RecyclerView measurement/layout repair. The
661
1692
  repair runs after the current layout completes and only with a positive viewport
@@ -666,7 +1697,8 @@ request another repair. This leaves Fabric-owned slot content and row indices
666
1697
  unchanged; source checks alone do not establish first-layout visibility.
667
1698
 
668
1699
  Fabric mount/unmount ownership remains explicit even when RecyclerView detaches a
669
- slot holder. The native manager retains at most three roots until Fabric unmount;
1700
+ slot holder. The new native wrapper retains six scrolling roots until Fabric unmount
1701
+ (plus the independent optional fixed top overlay);
670
1702
  recycling detaches slot content without disposing its React tree. Unmount removes
671
1703
  that exact view. Native list disposal MUST NOT dispatch pending row/slot events.
672
1704
  The generated Nitro 0.37 leaf managers require deterministic child-forwarding
@@ -715,21 +1747,101 @@ applied inset and remains valid while that inset is retained across detach.
715
1747
 
716
1748
  ## Native rich activity presentation
717
1749
 
1750
+ Status: Source implemented for `ActivityRow.hideLeading`. Web DOM tests cover
1751
+ both Activity paths, Android production renderer instrumentation covers
1752
+ same-view rebinds, and the iOS NativeListModule arm64 Simulator target builds.
1753
+ iOS runtime acceptance remains pending. Optional `hideLeading: true` suppresses
1754
+ the activity row's main leading visual, its accessibility content, and the entire visual width and
1755
+ following gap. The title, description, status, amounts, fee, and footer actions
1756
+ retain their normal semantics; footer actions align with the title region rather
1757
+ than a reserved visual slot. `leading` remains required in the row model and is
1758
+ still validated. Omitted or `false` preserves the existing layout and image
1759
+ behavior. The field must be a boolean in snapshots and patches; an omitted patch
1760
+ field preserves the current value. A full snapshot or patch changing
1761
+ `hideLeading` rebinds the visual and layout in both legacy and rich Activity
1762
+ presentations, including key reuse. Hidden visuals do not start image requests;
1763
+ rebinding to `false` may load the current image. Recycling and late image
1764
+ callbacks must not restore a hidden visual or leave hidden layout/accessibility
1765
+ state on a later visible row. This contract applies on iOS, Android, and Web.
1766
+ The Android instrumentation uses icon visuals to verify layout, action alignment
1767
+ and amount preservation. Late image completion is guarded by the existing
1768
+ image-slot recycle epoch; a hide-during-image-load device case remains unverified.
1769
+
718
1770
  Status: Source implemented; native runtime acceptance pending. Optional `amounts`
719
- supersedes legacy `primaryAmount`/`secondaryAmount` only on native. It accepts at
1771
+ supersedes legacy `primaryAmount`/`secondaryAmount` in rich Activity rows. It accepts at
720
1772
  most 32 keyed lines, each with formatted text, optional leading visual, tone,
721
1773
  secondary text and subscript text segments. Segments are caller-formatted and
722
1774
  never interpreted as numbers by NativeList. Omission preserves the legacy tree.
723
1775
 
724
1776
  `presentation: stacked` places the amount lines after the identity column and
725
- right-aligns them; `table` uses equal identity/amount columns, left-aligns amount
726
- lines and adds an optional trailing fee column. Fee supports label, primary and
727
- secondary text with their own segments; `hidden` preserves its column width
1777
+ right-aligns them. In `table`, the identity column includes its leading visual
1778
+ and gap; identity, amounts and an optional fee use stable widths in the ratio
1779
+ `1:1:0.6` after inter-column gaps. Without fee, identity and amounts split the
1780
+ remaining width equally. Amount content stays start-aligned within its column;
1781
+ native fee content stays end-aligned; Web retains its existing start alignment.
1782
+ Fee text length and leading visibility cannot move the amount column. These
1783
+ native widths match the existing Web table layout. Fee supports label, primary
1784
+ and secondary text with their own segments; `hidden` preserves its column width
728
1785
  while hiding its contents. Up to four uniquely keyed title badges use declared
729
1786
  tones. `descriptionActionKey` makes only the description emit that action with
730
1787
  source `description`; footer actions retain their existing source/keys and
731
1788
  disabled behavior. All actions use the current host binding epoch.
732
1789
 
1790
+ Description action text. The action is hit on text only, never on the unused
1791
+ width of the description line, which belongs to the row press. Which text is
1792
+ stated by the caller in `descriptionActionStart`, a UTF-16 offset into
1793
+ `description` as supplied (JavaScript string index): the text from the offset on
1794
+ opens the action, the text before it is plain and belongs to the row press.
1795
+ NativeList never derives the offset from the displayed string, its separators or
1796
+ its wording; a caller that composes `prefix + label` records `prefix.length`.
1797
+
1798
+ - Absent means `0`: the whole description text is the action.
1799
+ `description.length` leaves no action text; the row then has no description
1800
+ action, and no button semantics, on any platform.
1801
+ - The field is ignored without `descriptionActionKey`.
1802
+ - Development validation rejects a value that is not a non-negative safe
1803
+ integer, and on a complete row (a snapshot row, or a row after a patch is
1804
+ merged) a value past `description.length`. Production drops a malformed value,
1805
+ which restores the default, and renderers clamp a value past the text to its
1806
+ end.
1807
+ - A patch that changes `description` without `descriptionActionStart` clears the
1808
+ stored offset, because it pointed into the previous string. Callers that keep
1809
+ a prefix restate the offset in the same patch.
1810
+ - iOS and Android map the offset onto the displayed text: a one-line description
1811
+ folds each line break into one space, so offsets after a CRLF move by one.
1812
+ - The hit area follows the laid-out text. iOS and Android build it from the
1813
+ layout engine's own rects for the action's character range (TextKit enclosing
1814
+ rects, the Android layout's selection), one per line and per visual run. A
1815
+ line that ends before the offset takes no touches, the line that holds it
1816
+ takes them from the offset on, later lines take them on their text. In
1817
+ mixed-direction text the action can be several runs on one line with plain
1818
+ text between them, and each run is its own region.
1819
+ - Touch slop reaches into blank space only. iOS and Android widen each run of
1820
+ action text by 8 units, and the widening stops at plain description text on
1821
+ the same line: text before the offset never opens the action, however narrow
1822
+ it is. iOS also extends the first and the last line of the whole layout by 6
1823
+ points away from the text, never a line in between, so the slop cannot reach
1824
+ into a line that holds only plain text. Android extends the first and last
1825
+ line of the layout to the view's top and bottom edge.
1826
+ - An ellipsis belongs to the action while action text is visible before it.
1827
+ Once truncation hides the action text altogether the ellipsis also stands for
1828
+ plain text, and the row has no hit area for the action.
1829
+ - Truncation. The description stays on its declared lines as `prefix + action`.
1830
+ On Web the prefix keeps its natural width and the action text truncates
1831
+ first, which matches the tail truncation of the native label. While action
1832
+ text follows, the Web prefix is capped at the row width less `3em` and
1833
+ truncates itself, so a prefix wider than the row cannot squeeze the action to
1834
+ nothing and leave it without a pointer target. iOS and Android draw one label
1835
+ and truncate its tail; they do not reserve room, so there a long prefix can
1836
+ push the action text out of view. The Web prefix and action are two elements
1837
+ side by side and each resolves its own text direction, so an offset inside a
1838
+ directional run draws that run in two parts; the action element is still
1839
+ exactly the action text.
1840
+ - Internally the native text view holds one optional start: none keeps the
1841
+ view's own hit testing (rows without the action), `0` limits touches to all of
1842
+ the text, a positive value to the text from there on. Binding, rebinding
1843
+ without the action and recycling set or clear that one value.
1844
+
733
1845
  Rich rows measure the declared line/visual metrics; there is no six-line native
734
1846
  truncation. iOS automatic height mirrors the rendered stacks: `lineGap` between the
735
1847
  visible title/description/status lines, the description measured at the identity
@@ -745,6 +1857,15 @@ baseline, matching NumberSizeableText), badge tone/clear, hidden fee, disabled
745
1857
  actions, description anchors, dark/RTL/font scaling and explicit/automatic height.
746
1858
 
747
1859
 
1860
+ Table regression acceptance additionally measures amount-column start, width and
1861
+ center across short/long/hidden fee, leading visibility, 1/2/6/32 amount lines and
1862
+ table/stacked reuse. Android DataRow primary and secondary groups honor their
1863
+ resolved text-role alignment (role style first, then column alignment), including
1864
+ start/center/end and styled/unstyled reuse. The secondary-prefix gap is present
1865
+ only when that prefix is visible; legacy linear rendering is unchanged. The UIKit
1866
+ regression explicitly forces each renderer view's direction; React Native/Fabric
1867
+ host direction propagation and real App RTL remain unverified.
1868
+
748
1869
  ### Android ancestor scroll distance
749
1870
 
750
1871
  Threshold hysteresis combines the primary RecyclerView's actual consumed scroll
@@ -922,6 +2043,51 @@ row/presentation recycling, strict validation, native dictionary safe-ignore,
922
2043
  header/body geometry, 100 quote ticks preserving nodes with zero geometry reads,
923
2044
  then a real complex Market table before expanding to all five families.
924
2045
 
2046
+ ### Native Market metric columns
2047
+
2048
+ Status: implemented in local source, unreleased; native runtime verification
2049
+ pending. A `market` row may supply two or three ordered, uniquely
2050
+ keyed text columns through `metrics`, typed as a `Pick<DataColumn, ...>` of
2051
+ the supported text fields. Each column uses
2052
+ the text subset of `DataColumn`: key, primary text and segments, optional
2053
+ secondary text and segments, weight, alignment, and primary/secondary tone.
2054
+ Icon and secondary-leading fields are rejected in development and stripped by
2055
+ the existing production decoration sanitizer.
2056
+ Keys are nonempty and callers format all text. The row keeps its required
2057
+ `price` and `change` fields as compact fallbacks. When `metrics` is present,
2058
+ iOS and Android display the existing leading action, visual, title, subtitle,
2059
+ and Market badges, then the metric columns in place of the compact price and
2060
+ change block. The metrics are authoritative for this native presentation; the
2061
+ SDK does not infer their values from the fallback fields or product data.
2062
+ The default native accessibility label includes the title and subtitle followed
2063
+ by the displayed metric text, primary then secondary, in column order. It
2064
+ updates with each quote. An explicit row accessibility label takes precedence.
2065
+ The metrics use their own text tones and alignment, with both lines aligned
2066
+ the same way; omitted alignment defaults to `end`. Existing change block
2067
+ width, height, and corner radius do not
2068
+ apply to metric columns. The title content receives a relative weight of two;
2069
+ metric columns receive their declared `weight` (1...3, default one) after the
2070
+ row's existing action, visual, padding, and gaps take their space. The SDK
2071
+ does not choose a mode from screen width. Without `metrics`, all platforms
2072
+ retain their existing compact Market presentation. Web ignores `metrics` and
2073
+ continues using `webTable` when supplied.
2074
+
2075
+ Metric values travel in the existing row snapshot JSON and do not change the
2076
+ Nitro ABI, row key, action keys, badge anchors, or scroll ownership. Full
2077
+ snapshots may add, replace, or omit `metrics`; omission restores compact mode.
2078
+ An explicit patch with a valid two- or three-column array replaces metrics,
2079
+ while an omitted patch field leaves them unchanged. A full snapshot is used
2080
+ to remove metrics from a wide row; this contract adds no null patch meaning.
2081
+ Binding and recycling clear inactive metric and compact views in both
2082
+ directions, including changes between two and three columns, so reused rows
2083
+ cannot show stale text or targets. Metric fields contain no new action target;
2084
+ Market badge, leading action, press, press-in, and long-press behavior remains
2085
+ owned by the existing Market row. Conformance requires validation and patch
2086
+ tests, native bind/reuse and action-anchor checks, then consuming App device
2087
+ checks at narrow and wide list widths. Source and unit tests alone do not
2088
+ establish native layout acceptance.
2089
+
2090
+
925
2091
 
926
2092
  ### Web grid fractional column geometry
927
2093
 
@@ -960,8 +2126,9 @@ imageState explicitly selects that state.
960
2126
 
961
2127
  Web gallery media preserves the consuming NFT card presentation: healthy image
962
2128
  and exhausted fallback surfaces have a10px radius, while a healthy video surface
963
- has square corners. The image/video frame uses the list page background; only
964
- the exhausted fallback surface uses the strong background. Rebinding the same
2129
+ has square corners. The image/video frame uses the list page background; the
2130
+ loading and exhausted fallback surfaces use the strong background and the
2131
+ shared media placeholders. Rebinding the same
965
2132
  video key retains square corners, and failed-video fallback to an image restores
966
2133
  the image radius. This is Web renderer behavior; native media presentation and
967
2134
  probe-order contracts are unchanged.
@@ -1127,6 +2294,23 @@ logo groups retain their4px gap and overlap geometry. No other text-part gaps
1127
2294
  change. Regression acceptance includes Dark/Light recycled visuals, preserved
1128
2295
  network overlays, independent copy actions and Stock hover group spacing.
1129
2296
 
2297
+ For token visuals in Web/Electron Market tables, changing only `overlays` MUST
2298
+ retain the main image frame, its loaded/error visibility and pending image
2299
+ callbacks. Removed overlay images release their pending work. Changes to the
2300
+ main image descriptor or other leading-visual fields keep the existing full
2301
+ rebind behavior. This is a Web renderer lifecycle rule; it changes neither the
2302
+ snapshot schema nor the iOS/Android implementations. Acceptance covers adding,
2303
+ replacing and removing overlays before and after image load/failure, including
2304
+ consumer row-key changes, and replacing the main image source. Overlay-only
2305
+ updates MUST retain the existing circular bitmap clipping of padded square
2306
+ badges and their caller-provided geometry.
2307
+ Status: implemented on the 6.7.0-alpha.402 publication source. Package DOM
2308
+ regressions, the built-module Chromium lifecycle fixture and consuming Electron
2309
+ refresh/navigation badge rendering are verified. Consuming Electron acceptance
2310
+ also covers a manually locked refresh, user password unlock, first Market entry
2311
+ and a complete quote polling cycle. No native implementation or public API
2312
+ changes are included.
2313
+
1130
2314
  Gallery collection subtitles retain an 8px trailing text inset whether or not
1131
2315
  a network thumbnail is present. The subtitle uses border-box sizing and its row
1132
2316
  has no extra gap, preserving the same 8px separation with a thumbnail and the
@@ -1194,6 +2378,61 @@ Presentation wrapper changes move the existing nodes and preserve asynchronous
1194
2378
  loading/error visibility; they do not recreate or reload an unchanged source.
1195
2379
  Changing the source set retains the existing rebuild/disposal behavior.
1196
2380
 
2381
+ ## Opt-in structural snapshot transition (Home assets)
2382
+
2383
+ `NativeListSnapshot.structuralTransition?: { id: string; durationMs?: number; anchorKey?: string }` is an update command carried by a validated complete snapshot. It applies only after the initial mount, when `id` differs from the last consumed transition id and the row-key sequence changes while both the previous and next layouts are vertical, single-column `linear` or `table`. Grid, sectioned, and horizontal source or target layouts apply the snapshot without this animation. The default duration is 220 ms; explicit values must be finite and in the 0–2000 ms range. Reusing an id on price, balance, selection, or theme snapshots is inert. `applyPatches` never starts a structural transition. A newer id supersedes an in-flight transition from its current visual geometry; host disposal cancels it. Reduced-motion settings disable animation while preserving final rows and scroll position.
2384
+
2385
+ The host captures the first visible row whose key survives the update and keeps its viewport offset where feasible. If none survives, an off-screen `anchorKey` supplies a fallback target. The host never teleports the fallback into view before animation. A collapse that makes the prior absolute offset unreachable must ease the final clamp over the same transition instead of jumping. The React footer slot's old/new height difference is compensated inside that same transition so its button and following content remain continuous while the slot changes. The header/footer slots remain in the one list scroll owner. Web external-scroll-host mode must suppress conflicting browser scroll anchoring during the transition. A failed or unsupported animation still applies the final snapshot and anchor atomically. Row geometry, footer position, and scroll offset share one platform timeline; Pager observes native offset changes as list-owned scroll commands. iOS and Android hosts drive interpolation on the native UI thread without JavaScript bridge frames; Web uses one animation frame timeline for height and offset.
2386
+
2387
+ Native prefix-tail refinement status: Android source and its production-class native regressions are implemented. The prior iOS presentation-layer implementation exercised Home row, footer, sidecar, and scroll geometry, but manual testing found long display-link gaps. The iOS single-tree replacement below is source implemented with limited iOS simulator consuming-app verification; actual presented FPS remains unverified. Only a vertical, single-column `linear` or `table` update whose old and new keys share a nonempty unchanged ordered prefix with unchanged retained-row geometry may use this path. The accepted snapshot becomes current immediately. On iOS the one collection view presents full-natural-height row cells: expansion installs the final row snapshot once before the first animation frame, while collapse retains the old suffix only as presentation until completion. Its flow layout clips the suffix at one animated boundary and reports the animated left extent, combined with the right sidecar maximum, as the scrollable content height. A partially visible boundary cell is masked without changing its measured height. Every suffix row is inert and hidden from accessibility throughout the transition, including newly accepted expansion rows and retiring collapse rows; none dispatch actions, receive selection, or enter visible-range and end-reached events until final commit. No second row-host tree is created, and expansion completion does not reinstall the same row snapshot. If UIKit cannot safely maintain the clipped row window, the host commits the final layout atomically rather than exposing blank or interactive retired content. Android continues to use its bounded inert native presentation layer, with at most 128 row hosts covering the viewport and one viewport of overscan on either side.
2388
+
2389
+ The same native display-link/animator tick changes suffix extent, footer position, clipping, and owner offset. A footer height change during the transition remains on that clock: both native hosts may temporarily use a signed tail extent to offset the footer's new naturally measured height, while the native root keeps its normal measurement; the current extent and owner offset become the start of the remaining segment, which still ends at the original deadline. On iOS a negative extent clips only the footer's overlapped top and excludes that region from hit testing, while the visible footer button remains interactive; cancellation or completion restores the unadjusted extent and full hit region. Expansion preserves the starting offset. Collapse chooses the nearest final offset that fully exposes the collapsed footer below sticky chrome when it fits; a footer taller than the viewport starts below sticky chrome. The final scroll extent is the maximum of the left content and the right sidecar. A newer transition id starts from the current presentation extent and offset and invalidates the old completion when the retained prefix boundary is unchanged. If that boundary changes, the host commits the latest snapshot atomically instead of carrying the old spacer into a different row position. User drag, an explicit scroll command, owner change, resize, reduced motion, or disposal releases temporary presentation state without a stale completion taking scroll ownership. Price patches update the accepted snapshot and any still presented matching rows without restarting the clock. Unsupported shapes retain the existing structural behavior. This refinement introduces no public field or command.
2390
+
2391
+ Web/Desktop/extension prefix-preserving tail refinement status: source implemented; Web and Desktop consuming-app preview routes exercised with the local candidate Web overlay. Browser extension was outside that preview scope, and no FPS or paint-duration claim has been verified. The complete accepted snapshot becomes current immediately, while removed suffix rows may remain only in an inert, accessibility-hidden presentation window until the existing 220 ms transition completes. That window follows the same scroll owner and mounts only viewport-near old rows as the owner moves; each row keeps its natural height while the tail is clipped by the interpolated list extent. Inserted suffix rows use their final layout immediately and are revealed by the growing extent. The shared animation frame updates list height, React footer compensation, and programmatic scroll together. Its final scroll range uses the actual parent page extent, including a taller sidecar. For an off-screen fallback, Web uses the footer's complete visible interval where it fits, including the sticky inset, and otherwise aligns the footer start below the sticky region; the retained row is preferred only when the footer is absent. Price patches update the accepted snapshot and visible retained rows without restarting the transition. A newer structure command, unsupported shape, user scroll takeover, reduced motion, resize, or disposal releases presentation nodes and animation ownership without a stale completion writing an older offset. Other structural changes retain the existing behavior. This refinement adds no public field or native behavior; focused Web DOM tests passed, while browser extension and broader runtime performance remain unverified.
2392
+
2393
+ ### Web token table geometry
2394
+
2395
+ Status: implemented with focused SDK regression coverage and consuming-App
2396
+ measurements from a local runtime overlay; formal SDK release integration is
2397
+ separate.
2398
+
2399
+ A Web `DataRow` with exactly the ordered column keys `asset`, `balance`, `price`,
2400
+ and `swapSpacer`, without an ordinal index, favorite control, or checkbox,
2401
+ preserves the legacy four equal columns. Rows with any of those controls retain
2402
+ their existing weighted layout so the controls keep their linear positions.
2403
+ The leading visual and its declared gap share the first column with the asset
2404
+ text; an absent visual reserves no icon inset. Balance and price occupy the
2405
+ second and third columns; the trailing accessories align to the end of the
2406
+ fourth. This closed migration shape uses equal columns instead of the
2407
+ previous weight approximation and removes the row's inherited 12px gap so
2408
+ each track occupies exactly one quarter of the padded content width. Other
2409
+ column shapes retain their existing weighted layout. Rebinding a retained row
2410
+ between these shapes clears the old grid placement, gap override, and asset
2411
+ inset, including when the leading visual is reused.
2412
+ Text, icon size, row height, actions, and iOS/Android layouts retain their
2413
+ existing contracts.
2414
+
2415
+ The Web `listStructureToggle` slot cancels the enclosing footer band's
2416
+ horizontal content inset while disclosure is present, since toggle content owns
2417
+ its page padding. The footer and expanded-content slots keep their existing
2418
+ insets. Changing the accepted content padding updates the compensation;
2419
+ removing disclosure still hides and disables the retained toggle subtree.
2420
+
2421
+ Conformance covers token-to-generic and generic-to-token row reuse, rows with an
2422
+ index/favorite/checkbox, leading visual and disabled action preservation,
2423
+ accepted padding changes, and absent disclosure. The consuming App comparison
2424
+ covers six visible rows and the toggle
2425
+ at 1024, 1280, and 1600 CSS-pixel viewports; it does not establish native runtime
2426
+ acceptance or a performance improvement.
2427
+
2428
+ `DataRow.trailing?: readonly TrailingAccessory[]` reuses the existing accessory action contract, including `rowKey`, `actionKey`, disabled state, and accessibility/test labels. At most two accessories are accepted. Desktop Home can render its independent price/balance columns with `DataRow.columns` and a Swap button in `trailing`. Existing rows without `trailing` retain their current layout. On iOS, trailing controls reserve their intrinsic width and the weighted columns fill the remaining row width. Changing between linear and table layout rebinds retained cells even when their row payload is unchanged.
2429
+
2430
+ `DataColumn.textSegments` and `secondaryTextSegments` reuse `ValueTextSegment` (`text`, optional `style: 'subscript'`) for formatted prices, balances, and values in each independent table column. Plain `text` and `secondaryText` remain the spoken/fallback strings. Missing segments preserve existing rendering.
2431
+
2432
+ `DataColumn.titleIcon` and `secondaryTitleIcon` reuse `IdentityRow.titleIcon` after the primary column text. They preserve native-asset and receipt-token symbols in the desktop asset column. Web `hoverActionKey` uses the same anchored help action as Identity rows; absent icons leave the existing column layout unchanged.
2433
+
2434
+ `IdentityRow.titleSuffixes?: readonly { text: string; tone: 'secondary' | 'disabled'; maxWidth?: number }[]` supports up to three plain 12/16 labels on the title line. Each suffix truncates independently at its optional maximum width. This preserves Recent recipient EVM, network, and relative-time metadata without using background badges; rows without suffixes keep their present title layout.
2435
+
1197
2436
  ### Web slot-list scroll ownership
1198
2437
 
1199
2438
  When container slots create an owned Web scroll host without `webScrollHost`,
@@ -1202,3 +2441,66 @@ A containing Web pager therefore applies insets, collapse/top commands and route
1202
2441
  restoration to the owned host, with slot content as its padding target. The
1203
2442
  ordinary no-slot viewport and explicit external-host paths keep their existing
1204
2443
  ownership; no Pager dependency or new API is required.
2444
+
2445
+ ### Shared icon recoloring revision — Implemented; scoped runtime acceptance
2446
+
2447
+ Android named glyph slots consume image's typed immutable shape-cache results:
2448
+ compatible fixed/single/same-alpha multiple colors update per-view tint without a
2449
+ request; new alpha or mixed-color raster requests preserve the last successful
2450
+ same-source/geometry bitmap until completion. Name/geometry changes, invalid,
2451
+ hidden/detach/recycle clear immediately and revisions reject old callbacks.
2452
+ Circle remains local; checkbox rectangles and icon coverage are unchanged.
2453
+ Android non-square named glyphs use the aspect-fit geometry defined above.
2454
+ iOS retains its existing black template/original request and synchronous retint.
2455
+ Web React and DOM use the image package's demand-loaded external per-icon symbol
2456
+ URLs, with existing coverage/aliases/action labels and CSS color inheritance.
2457
+
2458
+ ## Host-owned named resources — Implemented; SDK fixture runtime verified
2459
+
2460
+ Image provides decoding and the static Web `#onekey-icon-assets` provider boundary;
2461
+ the application owns complete named SVG resources. NativeList keeps its existing
2462
+ 43-name platform coverage and three generated metadata tables, including its
2463
+ legacy `BadgeVerifiedSolid` to canonical `BadgeRecognizedSolid` mapping. No list
2464
+ props, naming coverage or rendering strategy changes. Android non-square glyph
2465
+ geometry follows the aspect-fit contract above.
2466
+
2467
+ The SDK metadata generator validates against the shared 63-sample example/test
2468
+ catalog without an App checkout, including raw source digests and viewBox sizes.
2469
+ It emits metadata only. Production consumers must supply the complete host icon
2470
+ bundle/assets and Web provider; SDK-only fixture tests prove their closed sample
2471
+ coverage, while the App's independent generator verifies all 1,909 resources.
2472
+
2473
+ ## Public host-ref types
2474
+
2475
+ `webSectionIndexContainerRef` continues to derive its host instance from
2476
+ `React.ElementRef<typeof View>` with the existing nullable `RefObject` shape.
2477
+ The main integration preserves this existing declaration boundary without a
2478
+ private type import, extra compatibility layer or consumer declaration patch.
2479
+ Fresh normal package prepare/typecheck passed with RN 0.88/React 19.3; an isolated
2480
+ copy of the current sources passed a normal RN 0.86.2 declaration build.
2481
+ Actual View-ref positive/negative fixtures passed on both versions, with RN 0.88
2482
+ bidirectional compatibility against public `ViewInstance`. This is type-only:
2483
+ emitted JavaScript, native schemas, props and list behavior are unchanged by
2484
+ this ref declaration. Independent main-branch Web renderer changes and consumer
2485
+ runtime acceptance remain separately scoped.
2486
+
2487
+
2488
+ ## Registry consumer integration (2026-11-05)
2489
+
2490
+ Preview alpha.449 from source `76834daf9` was normally installed together with
2491
+ Pager; all 330 installed NativeList files match its verified registry tarball.
2492
+ The published runtime includes main's Web identity-row layout and iOS empty
2493
+ accessory constraint changes; the earlier types-only overlay is historical.
2494
+ New iOS source/object/built/installed binary hashes bind this Swift renderer.
2495
+ The existing App account-selector rows were opened and closed without importing
2496
+ accounts or editing the independent consumer WIP. This is row integration
2497
+ coverage; ellipsis accessory rows do not prove the empty-accessory branch.
2498
+ SDK iOS CI independently passed the empty-trailing, rebind and spinner layout
2499
+ cases. Actual Web Recipient auto-height rows and the installed public fixture's
2500
+ scale/width/long-word/same-DOM reuse checks were separately exercised. External
2501
+ notification/image/postinstall warnings and other prior limits remain recorded.
2502
+
2503
+ Internal Pod edges use unversioned CocoaPods dependencies, matching the npm
2504
+ internal `*` policy while retaining external constraints. Real specification
2505
+ readback is `>= 0`; normal SDK example and consumer Pod installs passed. This
2506
+ does not retroactively make alpha.445's invalid `*` Pod requirement usable.