@onekeyfe/react-native-native-list 6.7.0-16 → 6.7.0-17

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 (115) hide show
  1. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
  2. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +240 -11
  3. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +7 -4
  4. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +6 -3
  5. package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
  6. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
  7. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +87 -7
  8. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +177 -1
  9. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +43 -14
  10. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
  11. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +33 -2
  12. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +22 -0
  13. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
  14. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +2 -0
  15. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
  16. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
  17. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
  18. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1877 -41
  19. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +1 -0
  20. package/docs/ROW_TEMPLATES.md +60 -9
  21. package/docs/SPEC.md +401 -5
  22. package/docs/STYLE_SPEC.md +6 -0
  23. package/ios/HybridNativeList.swift +17 -2
  24. package/ios/NativeListAccessoryStack.swift +227 -39
  25. package/ios/NativeListActivityDetailsView.swift +18 -8
  26. package/ios/NativeListActivityRenderer.swift +8 -2
  27. package/ios/NativeListButtonGroupRenderer.swift +89 -0
  28. package/ios/NativeListDataRowRenderer.swift +155 -27
  29. package/ios/NativeListDesignAssets.swift +3 -0
  30. package/ios/NativeListIdentityRenderer.swift +166 -30
  31. package/ios/NativeListLeadingVisual.swift +49 -14
  32. package/ios/NativeListMessageRenderer.swift +34 -1
  33. package/ios/NativeListModels.swift +42 -2
  34. package/ios/NativeListRendererRegistry.swift +1 -0
  35. package/ios/NativeListResolvedText.swift +2 -1
  36. package/ios/NativeListRowHost.swift +14 -0
  37. package/ios/NativeListSectionHeaderRenderer.swift +88 -0
  38. package/ios/RNCNativeListView.swift +984 -53
  39. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +15 -0
  40. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +4 -0
  41. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +15 -0
  42. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +3 -0
  43. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +15 -0
  44. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +3 -0
  45. package/ios/tests/NativeListActivityPresentationTests.swift +56 -0
  46. package/ios/tests/NativeListLifecycleTests.swift +2494 -3
  47. package/lib/module/NativeList.js +171 -28
  48. package/lib/module/NativeList.web.js +54 -4
  49. package/lib/module/models.js +1 -0
  50. package/lib/module/selection.js +1 -1
  51. package/lib/module/validation.js +331 -8
  52. package/lib/module/web/NativeListWebEngine.js +503 -18
  53. package/lib/module/web/templates/ActivityRowRenderer.js +8 -7
  54. package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
  55. package/lib/module/web/templates/DataRowRenderer.js +40 -5
  56. package/lib/module/web/templates/IdentityRowRenderer.js +90 -4
  57. package/lib/module/web/templates/MessageRowRenderer.js +18 -2
  58. package/lib/module/web/templates/RowContainerStyle.js +1 -0
  59. package/lib/module/web/templates/RowRendererRegistry.js +3 -0
  60. package/lib/module/web/templates/SectionHeaderRowRenderer.js +36 -2
  61. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  62. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  63. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  64. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  65. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  66. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  67. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  68. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  69. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  70. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  71. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  72. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  73. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  74. package/lib/typescript/src/NativeList.d.ts +1 -1
  75. package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
  76. package/lib/typescript/src/NativeList.types.d.ts +18 -0
  77. package/lib/typescript/src/index.d.ts +1 -1
  78. package/lib/typescript/src/models.d.ts +105 -9
  79. package/lib/typescript/src/validation.d.ts +10 -0
  80. package/lib/typescript/src/web/NativeListWebEngine.d.ts +31 -0
  81. package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
  82. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
  83. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +9 -3
  84. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  85. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  86. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  87. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  88. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  89. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  90. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  91. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  92. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  93. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  94. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  95. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  96. package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  97. package/package.json +3 -3
  98. package/react-native-native-list.podspec +1 -0
  99. package/src/NativeList.nitro.ts +2 -0
  100. package/src/NativeList.tsx +307 -44
  101. package/src/NativeList.types.ts +22 -0
  102. package/src/NativeList.web.tsx +75 -8
  103. package/src/index.ts +1 -0
  104. package/src/models.ts +117 -3
  105. package/src/selection.ts +1 -0
  106. package/src/validation.ts +742 -6
  107. package/src/web/NativeListWebEngine.ts +798 -19
  108. package/src/web/templates/ActivityRowRenderer.ts +14 -6
  109. package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
  110. package/src/web/templates/DataRowRenderer.ts +93 -20
  111. package/src/web/templates/IdentityRowRenderer.ts +150 -5
  112. package/src/web/templates/MessageRowRenderer.ts +23 -7
  113. package/src/web/templates/RowContainerStyle.ts +2 -0
  114. package/src/web/templates/RowRendererRegistry.ts +11 -1
  115. package/src/web/templates/SectionHeaderRowRenderer.ts +47 -4
@@ -26,6 +26,7 @@ class NativeListPressPolicyTest {
26
26
  Case(type = "system", variant = "end", expected = false),
27
27
  Case(type = "system", variant = "spacer", expected = false),
28
28
  Case(type = "walletGroup", expected = false),
29
+ Case(type = "buttonGroup", expected = false),
29
30
  )
30
31
 
31
32
  assertEquals(
@@ -1,6 +1,6 @@
1
1
  # NativeList row template catalog
2
2
 
3
- This catalog defines the **12 types in `RowModel`** on the consolidated spec
3
+ This catalog defines the **13 types in `RowModel`** on the consolidated spec
4
4
  branch. Each template owns a fixed internal structure. Its `style` customizes
5
5
  named fields inside that structure; it does not define a new layout or enable a
6
6
  list feature. See [STYLE_SPEC.md](STYLE_SPEC.md) for tokens, numeric bounds,
@@ -34,6 +34,7 @@ template the owner of sections or the indexed bar.
34
34
  | [metricCard](#metriccard) | KPI or portfolio summary | Label/value card or named composite metrics arrangement |
35
35
  | [sectionHeader](#sectionheader) | Structural section heading | Header text + optional summary value/controls |
36
36
  | [action](#action) | A row-level command | Label + optional icon/value/controls |
37
+ | [buttonGroup](#buttongroup) | DeFi position actions | One or more equal-width info-outline buttons |
37
38
  | [system](#system) | Loading, retry, warning, empty/end or spacer | Variant-specific bounded status content |
38
39
 
39
40
  The style roles below form the shared configurable contract on Web, iOS and
@@ -53,7 +54,19 @@ separately from source implementation in STYLE_SPEC §9.
53
54
 
54
55
  - **Use:** an identifiable asset, account, wallet, network or setting.
55
56
  - **Required data:** `leading`, `title`; optional `subtitle`, `tertiary`, `badges`,
56
- `trailing`, `leadingAction`, match ranges and structured subtitle segments.
57
+ `trailing`, `leadingAction`, `titleIcon`, Web-only `secondaryTitleIcon`, match ranges and structured subtitle segments.
58
+ - **Static title icon:** optional 20-point icon immediately after the title with
59
+ a 4-point gap. It has no click action; an optional Web `hoverActionKey`
60
+ emits an icon-anchored tooltip request on hover or touch. A trailing `button` is the fixed small
61
+ secondary text action and uses the normal accessory event slot.
62
+ - **Second Web help icon:** `secondaryTitleIcon` uses the same descriptor after
63
+ `titleIcon`; each glyph has its own hover/touch anchor. Native ignores it.
64
+ - **Decorative refresh:** a trailing `RefreshCcwOutline` without `actionKey`
65
+ occupies a 16-point frame and leaves row press with the row.
66
+ - **Web neutral badge:** generic Identity rows with an explicit `tone: 'neutral'`
67
+ use a 20-pixel pill with 12/16 medium text, 8-pixel horizontal and 2-pixel
68
+ vertical padding, and the strong/subdued theme colors. Omitted tone and
69
+ selector presentations keep their existing badge defaults.
57
70
  - **Variants:** default horizontal row; `accountSelector` and `networkSelector`
58
71
  preserve selector control geometry; `walletSidebar` uses a compact, centered
59
72
  wallet presentation. A variant is explicit model data, never inferred from font size.
@@ -63,11 +76,25 @@ separately from source implementation in STYLE_SPEC §9.
63
76
  and 12 for other templates (Web 0).
64
77
  - **Platform default:** without `subtitleLines` or `style.subtitle.lines`, the
65
78
  subtitle shows one line on iOS and Web but two on Android (STYLE_SPEC §6.2).
79
+ - **Recipient opt-in:** `subtitleLines: 0` allows the whole subtitle to wrap;
80
+ `contentHeight: 'auto'` sizes the identity row to that content. Both are
81
+ explicit so existing selector rows retain their geometry. Optional
82
+ `longPressActionKey` emits a row action and suppresses the tap for that gesture.
66
83
  - **Text style roles:** `title`, `subtitle`, `tertiary`, `badge`, `value`,
67
84
  `valueSecondary`. The last two refer to value accessories in `trailing`; `badge`
68
85
  refers to badge text. `value`/`valueSecondary` select the first/second value
69
86
  accessory, ignoring intervening controls. A `valuePair` is one accessory, so
70
- its style applies to both text runs. They are semantic roles, not extra top-level data fields.
87
+ its style applies to both text runs. Optional `primaryTextSegments` and
88
+ `secondaryTextSegments` use the existing subscript run shape per line; missing
89
+ or empty arrays retain the required fallback string. They are semantic roles,
90
+ not extra top-level data fields.
91
+ - **Primary value weight:** optional `valuePair.primaryFontWeight: 'medium'`
92
+ styles only the first line. The second line remains regular; omission keeps
93
+ each platform's existing value-pair typography.
94
+ - **Primary value help:** optional `primaryHelp` on a `valuePair` targets only
95
+ its first line. `presentation` explicitly selects Web Tooltip or cross-platform
96
+ Popover behavior; native Tooltip has no press target. Optional dashed underline
97
+ is visual only. Missing help retains the original passive value pair.
71
98
  - **Layout boundary:** reserve visual and accessory slots; text compresses within
72
99
  its own column. Styling cannot move a checkbox/menu into the title column,
73
100
  reorder accessories or convert a horizontal row into the sidebar presentation.
@@ -132,7 +159,7 @@ separately from source implementation in STYLE_SPEC §9.
132
159
  ![Activity: leading visual and description, trailing amounts, optional actions within the row](images/row-activity.svg)
133
160
 
134
161
  - **Use:** a transaction/activity record with amounts and optional commands.
135
- - **Required data:** `leading`, `title`; optional `secondaryLeading`,
162
+ - **Required data:** `leading`, `title`; optional `hideLeading`, `secondaryLeading`,
136
163
  `description`, `status`, `primaryAmount`, `secondaryAmount`, `footerActions`.
137
164
  At most three footer actions are accepted, each with a unique key.
138
165
  - **Text style roles:** `title`, `description`, `status`, `primaryAmount`,
@@ -140,6 +167,10 @@ separately from source implementation in STYLE_SPEC §9.
140
167
  - **Layout boundary:** amounts remain in the amount column, description stays
141
168
  in its text region, actions stay in the row's action area. Adding actions is a
142
169
  model/height choice, not a typography trick.
170
+ - **Leading visibility:** `hideLeading: true` removes the main visual, its
171
+ accessibility content and its width plus gap. The title and footer actions
172
+ start at the row content inset. The required `leading` model remains valid;
173
+ omitted or `false` retains the existing visual and spacing.
143
174
  - **Common-capability boundary:** `footerActions` are inside this activity row.
144
175
  The list footer is independently configured through the container.
145
176
 
@@ -149,8 +180,8 @@ separately from source implementation in STYLE_SPEC §9.
149
180
  most four keyed badges. `descriptionActionKey` emits a description action.
150
181
  `presentation: 'table'` allocates equal identity/amount columns and an
151
182
  optional fee column; `stacked` keeps right-aligned amounts beside identity.
152
- `fee.hidden` reserves its column while hiding its content. These native
153
- additions do not change the Web renderer.
183
+ `fee.hidden` reserves its column while hiding its content. The Web rich
184
+ Activity renderer uses these fields and the same `hideLeading` visibility.
154
185
 
155
186
  ```text
156
187
  stacked (phone) table (wide)
@@ -169,11 +200,14 @@ stacked (phone) table (wide)
169
200
 
170
201
  - **Use:** a notification or message preview.
171
202
  - **Required data:** `title`, `body`, `time`; optional `leading`, `thumbnail`,
172
- `unread`. `bodyLines` is the legacy fallback for one, two or three body lines.
203
+ `unread`. `bodyLines` is the legacy fallback for one, two or three body lines;
204
+ zero opts into unlimited body wrapping and natural height.
173
205
  - **Text style roles:** `title`, `body`, `time`. `style.body.lines` accepts one, two or three and takes precedence over `bodyLines`.
174
206
  - **Layout boundary:** time and thumbnail keep their allocated regions; body
175
- text wraps/truncates within the message area. Styling cannot displace the
176
- timestamp, grow over the next row, or turn the preview into unbounded content.
207
+ text wraps/truncates within the message area. Unlimited wrapping is explicit
208
+ and remains bounded by the row's 4096-character text limit. The optional
209
+ `inlineWarning` presentation draws requested top/bottom container borders
210
+ across the row width without side borders or rounded corners.
177
211
  - **Current divergence:** leading-image size and body typography differ across
178
212
  platforms. Larger line boxes need explicit height and visual verification.
179
213
 
@@ -309,6 +343,11 @@ chrome and emits no row action. Omission preserves existing rendering.
309
343
  icons/actions, checkbox, `sticky`, `indexTitle`. Variants: default, `summary`,
310
344
  `gallery`, `history`; `presentation: 'networkSelector'` is also available.
311
345
  - **Text style roles:** `title`, `subtitle`, `value`.
346
+ - **DeFi position fields:** optional `leadingBadge` precedes the title.
347
+ `style.valuePlacement: 'afterTitle'` keeps a short value beside the title;
348
+ `style.titleDecoration` explicitly selects plain or dashed title text.
349
+ `valueHelp` uses the same explicit presentation and underline contract as
350
+ `valuePair.primaryHelp`. Omission keeps the original heading behavior.
312
351
  - **Layout boundary:** preserve heading/value/control regions. `summary` does
313
352
  not accept a checkbox and is not sticky. Pinning and index-entry generation are
314
353
  container behavior, not a text-style property.
@@ -333,6 +372,18 @@ chrome and emits no row action. Omission preserves existing rendering.
333
372
  `rows`, `fixedFooter` or `emptyState`. The container decides placement and
334
373
  visibility; the action template only renders its content.
335
374
 
375
+ ## buttonGroup
376
+
377
+ - **Use:** the full-width DeFi position actions within the list's data stream.
378
+ - **Required data:** a nonempty `buttons` array. Every entry has a unique
379
+ `key`, `label` and `actionKey`; optional `disabled`, `loading`, `testID` and
380
+ `accessibilityLabel` retain one control per entry.
381
+ - **Fixed structure:** equal-width medium info-outline buttons with 10-point
382
+ gaps, 12-point vertical button padding and 12-point radius. Loading retains
383
+ width and disables only its button. Row disable blocks all actions.
384
+ - **Action boundary:** each button emits its own action and anchor slot; the row
385
+ has no independent press action. The SDK never resolves DeFi permissions.
386
+
336
387
  ## system
337
388
 
338
389
  ![System variants: loading indicator, retry message and action, warning, no-match/end text and explicit spacer](images/row-system.svg)
package/docs/SPEC.md CHANGED
@@ -26,6 +26,232 @@ prevention; there is no automatic fitting or shrinking pass.
26
26
 
27
27
  ## Public API and defaults
28
28
 
29
+ ### Recipient identity and inline warning rows
30
+
31
+ Status: implemented in local source for the Select Address and Swap selectors;
32
+ native device and Web runtime verification remain pending. These fields travel in snapshot/patch JSON
33
+ and do not change the Nitro ABI.
34
+
35
+ An `identity` row may opt into `subtitleLines: 0`, meaning the complete subtitle
36
+ wraps at its measured text-column width without a line cap. Existing omitted,
37
+ one-line and two-line behavior stays unchanged. An identity row with
38
+ `contentHeight: 'auto'` measures its actual title, subtitle, leading visual,
39
+ badges and trailing accessories and grows to fit; this is opt-in and does not
40
+ alter selector or wallet-sidebar presets. An explicit `style.container.height`
41
+ or `row.height` still wins over content measurement, in that order. Content
42
+ height changes with row width, text, style or configured font and may not retain
43
+ a stale prior width's measurement. The existing 4096 UTF-16-code-unit bound per
44
+ text field still applies; zero is not an unlimited data-size allowance.
45
+
46
+ An `identity` row may set `longPressActionKey` to a nonempty action key. A valid
47
+ touch long press on an enabled row emits one `onRowAction` with its current row key,
48
+ action key, `row` anchor source and window press point. An accessibility long-click
49
+ without a physical touch retains the row anchor without a press point. It suppresses the
50
+ ordinary press for that gesture. Motion cancellation, row rebind/recycle,
51
+ disabled state and disposal cancel pending recognition. Trailing accessory
52
+ actions remain independent. Omission preserves existing tap behavior.
53
+
54
+ A `message` row may opt into `bodyLines: 0`; its complete body wraps within its
55
+ existing text area and determines natural height unless an explicit row or
56
+ container height overrides it. Existing omitted and one-to-three-line behavior
57
+ stays unchanged. `style.body.lines`, when supplied, retains its existing
58
+ one-to-three-line precedence. `presentation: 'inlineWarning'` changes only the
59
+ message container border: requested `style.container.borderWidth` and
60
+ `borderColor` draw top and bottom edges at full row width, with no side edges or
61
+ corner radius. Omitted border width draws no border; omitted presentation keeps
62
+ the existing all-edge container style. The caller supplies warning text, icon,
63
+ font, padding, colors and list-width layout; the SDK does not infer risk status.
64
+ All optional fields must clear on rebind/recycle and patch replacement. The
65
+ existing 4096-code-unit body limit applies.
66
+
67
+ An image-backed `LeadingVisual` may set `fallbackTextColor` to a hex
68
+ `#RRGGBB` or `#RRGGBBAA` color. It colors only the visible initials/fallback
69
+ text, including a failed image's fallback state; omission retains the existing
70
+ platform default. It does not alter the visual background, bitmap, icon, or
71
+ overlay colors. Validation rejects malformed colors. Rebind and recycle must
72
+ clear the previous text color so dark/light theme updates cannot leak between
73
+ rows. Consumers own the semantic theme choice (for example inverse text over
74
+ inverse background).
75
+
76
+ iOS measures opt-in identity and unlimited message content before collection
77
+ placement. Android binds text with unlimited native lines and allows its row
78
+ view to measure that content. Web uses wrapping DOM text and measured row
79
+ height. All platforms retain existing explicit-height precedence and existing
80
+ default rows. Focused source tests must cover validation, patching, old-to-new
81
+ reuse, action isolation and height changing with width/text; real iOS, Android
82
+ and Web acceptance must cover narrow addresses, dynamic type/fonts, long press
83
+ versus tap, keyboard interaction, and the horizontal warning border. Source or
84
+ build success alone is not runtime evidence.
85
+
86
+ ### DeFi position row controls
87
+
88
+ Status: implemented in local source, unreleased. Focused validation and Web
89
+ DOM tests pass; native source compilation passes, while target-app compilation
90
+ and device acceptance remain separate gates.
91
+ `buttonGroup` is a vertical data row with `RowBase` identity and a nonempty
92
+ `buttons` array. Each button has a unique nonempty `key`, localized nonempty
93
+ `label`, nonempty `actionKey`, and optional `disabled`, `loading`, `testID` and
94
+ `accessibilityLabel`. It renders the existing DeFi medium block info-outline
95
+ controls: equal-width buttons, 10-point gap, 12-point vertical padding and
96
+ 12-point radius. Every declared action remains visible; the renderer must not
97
+ truncate the array. Loading retains the button's width, disables that button,
98
+ and displays an activity indicator. A disabled row disables every button.
99
+ Activation emits one existing row action with the button's `actionKey` and
100
+ its own source/slot, without activating the row. A full rebind or recycle
101
+ removes prior buttons, loading indicators, labels, test IDs and handlers.
102
+ The SDK does not infer which DeFi actions are allowed or perform transactions.
103
+
104
+ `sectionHeader` may include `leadingBadge` (the existing badge shape),
105
+ with an optional `NativeListTheme.successBackground` used only for its
106
+ `success` tone. Omitting that theme color keeps the old badge default.
107
+ `style.valuePlacement: 'afterTitle'`, and
108
+ `style.titleDecoration: 'none' | 'dashed'`. Missing fields retain the current
109
+ heading layout and decoration. `valueHelp` and a `valuePair` trailing
110
+ accessory's `primaryHelp` share
111
+ `{ actionKey, presentation: 'tooltip' | 'popover', underline?: 'dashed' }`.
112
+ Presentation and underline are independent: the former selects trigger
113
+ semantics, the latter only draws a dashed underline. `tooltip` on Web opens on
114
+ mouse/pen entry and eligible focus, closes on departure/blur, and mouse/pen
115
+ press closes it until departure; touch toggles. It has no native touch target
116
+ or event. `popover` on all platforms toggles only on click/press and does not
117
+ open from hover. These help targets do not activate their row. Presentation
118
+ change, departure, scroll, rebind, replacement by another anchor and disposal
119
+ invalidate the old anchor.
120
+ On Web, the value-pair primary help target is keyboard focusable; focus opens
121
+ tooltip help and Enter/Space activates popover help without pressing the row.
122
+ The consuming app owns Tooltip/Popover content. Missing help fields keep
123
+ the original noninteractive text. All additions use snapshot JSON and do not
124
+ change the Nitro ABI.
125
+
126
+ `valuePair.primaryFontWeight?: 'medium'` applies only to the primary text
127
+ line. The secondary line keeps its existing regular weight. Omitting the field
128
+ preserves each platform's existing value-pair typography; full rebind and
129
+ recycle remove any previous primary-only override. The field travels in the
130
+ existing snapshot JSON and does not change the Nitro ABI.
131
+
132
+ Validation rejects empty or duplicate button keys, empty labels/action keys,
133
+ invalid booleans and help descriptors, and unknown style fields. The list's
134
+ existing row, text and snapshot bounds apply; no
135
+ silent action truncation is permitted. Conformance includes Web DOM events,
136
+ iOS/Android renderer bind/reuse, TypeScript validation, native builds, and
137
+ later real UI checks for help anchors, loading, disabled actions and geometry.
138
+
139
+ ### Segmented value-pair accessory
140
+
141
+ Status: implemented in local source, unreleased. Focused validation and Web DOM
142
+ tests pass; production iOS target compilation passes. Native instrumentation,
143
+ full App builds and device acceptance remain separate gates. A `valuePair`
144
+ trailing accessory retains its required `primary` and `secondary` fallback
145
+ strings. It may also supply optional readonly `primaryTextSegments` and
146
+ `secondaryTextSegments` arrays of existing `ValueTextSegment` objects. Missing
147
+ or empty arrays display the corresponding fallback; nonempty arrays display
148
+ their text runs. Callers provide matching fallback text, but validation does
149
+ not enforce that match.
150
+
151
+ Each array has at most 64 segments, each with string `text` of at most 4096
152
+ characters and optional `style: 'subscript'`. Total text per array is at most
153
+ 4096 characters. Full snapshots and explicit patch replacements reject null,
154
+ malformed arrays, unknown segment keys and other styles. An omitted patch field
155
+ leaves the existing accessory unchanged; replacement without segments clears
156
+ old runs. Subscript retains the existing 60-percent smaller-font convention
157
+ after semantic text styling. Both lines retain their default size, tone, line
158
+ height, right alignment and accessibility text. These fields add no action or
159
+ hit target and travel in existing snapshot JSON without a Nitro ABI change.
160
+
161
+ ### Identity row risk-management controls
162
+
163
+ Status: implemented in source for local consumers, unreleased. Focused validation,
164
+ Web DOM tests, native builds and device acceptance are tracked separately below.
165
+ The optional `identity.titleIcon` is a static, non-actionable icon after the
166
+ title: a 20-point glyph with a 4-point gap, optional tint and accessibility
167
+ label. Its optional Web-only `hoverActionKey` emits an anchored help action
168
+ from the icon alone on mouse/pen hover or touch press; the consumer owns the
169
+ tooltip. Mouse/pen press closes the anchor until pointer leave. Touch press
170
+ toggles the icon anchor. The icon adds no tab stop or separate click action;
171
+ row activation remains unchanged. Departure, scroll, full rebind and destroy
172
+ invalidate the anchor. Omission removes the icon in a full snapshot; omission
173
+ in a patch leaves the existing value unchanged. An explicit replacement icon
174
+ without `hoverActionKey` clears the old hover action. Removing the icon
175
+ requires a full snapshot.
176
+
177
+ On Web, `identity.secondaryTitleIcon` accepts the same descriptor and appears
178
+ after `titleIcon`. Both icons retain independent hover/touch anchors at their
179
+ own glyph rectangles; entering the other invalidates the previous anchor.
180
+ Native renderers ignore this optional Web-only field. Full rebinding to one
181
+ or no icons clears the removed glyph and anchor; explicit icon replacement
182
+ without `hoverActionKey` clears that icon's old hover action. Neither icon
183
+ creates a tab stop or separate click action.
184
+ On Web, clicking either help icon (including its SVG) does not activate the row;
185
+ clicking elsewhere on the row keeps the normal row action.
186
+
187
+ `identity.style.leadingContentMaxWidthRatio`, when given,
188
+ must be finite and within `(0, 1]`; it caps the combined leading visual, gap
189
+ and title content relative to the row's available inner width. Omission keeps
190
+ the existing unrestricted layout. Long titles truncate inside the cap, and
191
+ unused width remains available to trailing controls. The ratio is layout-only,
192
+ never a reuse identity or row-height input.
193
+
194
+ `trailing` accepts an optional `button` accessory with required nonempty
195
+ `label` and `actionKey`, optional `disabled`, `testID`,
196
+ `accessibilityLabel`, and optional hex colors `textColor`,
197
+ `backgroundColor`, `pressedBackgroundColor`, `hoverBackgroundColor`, and
198
+ `focusRingColor`. This single variant has the existing small secondary button
199
+ geometry: medium 14/20 text, 10-point horizontal and 4-point vertical
200
+ padding, a one-point transparent border and a pill radius. Omitted colors use
201
+ the theme's corresponding text and strong-background colors. The button does
202
+ not carry arbitrary React content, a size or variant parameter, or loading
203
+ state. Row or accessory disabled state prevents its action and dims the control
204
+ to 0.4 opacity.
205
+
206
+ Activation emits one existing row-action event with the current row key,
207
+ `trailingAccessory` source and zero-based descriptor slot, without also activating the row.
208
+ The host's existing binding epoch guards recycled controls. Full rebinding
209
+ clears omitted title icons and old button text, visual states, test IDs,
210
+ accessibility values and callbacks, including button-to-icon-to-absent reuse.
211
+ Patches replace fields they explicitly change and leave omitted fields intact.
212
+ iOS and Android use native controls; Web uses a semantic `button` with native
213
+ keyboard activation and disabled semantics. The new fields travel inside the
214
+ existing snapshot JSON and do not alter the Nitro bridge ABI. Consumers own
215
+ localized labels, state updates and any tooltip outside the data row.
216
+
217
+ Acceptance requires snapshot and patch validation, Web action/isolation and
218
+ reuse checks, native renderer tests on production classes, native builds and
219
+ device checks for title placement, cap/truncation, colors, press and recycle.
220
+ No source-only check counts as native runtime evidence.
221
+
222
+ `theme.rowHoverBackground` is an optional Web-only hex color for an enabled
223
+ row's hover background. Omission keeps the existing pressed-background hover
224
+ color. Pressed/active rows continue to use `rowPressedBackground`; native
225
+ renderers ignore the new field. The existing `loadingStrategy: 'skeleton'`
226
+ on a Web leading image displays an animated skeleton while loading, then
227
+ clears it on success, failure, rebind or recycle; other strategies keep their
228
+ existing appearance.
229
+
230
+ Identity leading visuals consume the existing `borderColor` as a one-point/dp
231
+ solid bitmap border when supplied without `borderStyle: 'dashed'`; omission or
232
+ a dashed style clears the solid border on every bind.
233
+ The image is inset by that border width. An overlay may optionally set
234
+ `fontWeight` to one of the existing text weight names
235
+ (`regular | medium | semibold | bold`). This changes only overlay text;
236
+ omission retains the current platform default. Setting and clearing the field
237
+ must survive patching and recycled-view rebinding on all three platforms.
238
+ The existing `leading.fallbackIcon` may optionally set a positive `size` for
239
+ its glyph and a hex `backgroundColor` for the visual's no-image and image-load-
240
+ failure states. A successfully loaded bitmap continues to use
241
+ `leading.backgroundColor`. Omitted fallback fields preserve current rendering.
242
+ Image success, failure and full rebinding must restore the matching background
243
+ and glyph size without carrying values from the previous visual.
244
+ An image overlay may optionally declare `fallbackIcon` with a required glyph
245
+ name and optional tint. It shows only after that overlay image fails, while
246
+ loading retains the overlay's empty background and success shows the bitmap.
247
+ The existing icon accessory accepts only one optional `buttonStyle` value,
248
+ `tertiary`, for the source icon button's 38-point press frame, 24-point glyph,
249
+ six-point padding, one-point border, seven-point visual overhang and pressed
250
+ background. Omission preserves every existing icon accessory layout and action.
251
+ The non-action `RefreshCcwOutline` accessory keeps the source's 16-point glyph
252
+ and frame, with no independent press target. Rebinding it to an actionable
253
+ icon restores the existing icon size and event behavior.
254
+
29
255
  ### iOS 26 fixed top scroll-edge overlay
30
256
 
31
257
  Standalone `NativeList` accepts optional
@@ -208,6 +434,16 @@ arguments; this protects the runtime's argument limit.
208
434
  The component and Web engine contain input validation failures in both modes:
209
435
  initial invalid input renders an empty list; rejected later snapshots or patch
210
436
  batches preserve the last accepted state and are not dispatched to native.
437
+ On iOS and Android, the React wrapper captures caller data before validation
438
+ and owns an immutable accepted snapshot. Later caller mutation cannot rewrite
439
+ that accepted state. Imperative selection keys are captured on entry. Eligible
440
+ value-only `identity` and `dataRow` patches validate their complete changed
441
+ rows; other patches and snapshots without this private ownership use the
442
+ existing complete-snapshot validation path. This does not change exported
443
+ validators or Web behavior.
444
+ An `undefined` value in an eligible field stays on the changed-row path only
445
+ when that field was already `undefined`; clearing a present value uses the
446
+ complete-snapshot path.
211
447
  Rejection emits a diagnostic without including row keys, text or image URLs.
212
448
  Explicit calls to the exported validation functions still throw on rejected
213
449
  input, so development tooling can inspect the full contract failure. Rejection
@@ -721,6 +957,49 @@ leaked audio/player resources. Static API checks do not prove these cases.
721
957
 
722
958
  ## Native container slots (source implementation, runtime verification pending)
723
959
 
960
+ ### Optional scrolling sidecar (source implemented; native runtime verification pending)
961
+
962
+ `listSidecar` and `sidecarLayout: { width, gap, maxContentWidth }` are an
963
+ optional pair for a vertical linear list. Omission preserves the existing
964
+ single-column layout. All three values are finite non-negative logical pixels;
965
+ `width` and `maxContentWidth` must be positive and `width + gap` must be less
966
+ than `maxContentWidth`. The list remains the sole scroll owner. At viewport
967
+ width `V`, the content band is centered with width `min(V, maxContentWidth)`;
968
+ the sidecar occupies the logical end `width`, separated from the logical start
969
+ data/slot column by `gap`. In RTL the sidecar is physically left and the list
970
+ is physically right. Header, rows, empty slot and footer use the start column. The sidecar
971
+ starts at the content top, scrolls on the same native frame as rows, and may
972
+ contain interactive React content. Its root is retained until Fabric unmount;
973
+ it does not become a row, affect row keys, indices, selection or prefetch. The
974
+ left RecyclerView/UICollectionView still lays out only viewport-near rows.
975
+
976
+ The scrolling extent is at least the greater of the left column including its
977
+ footer and the sidecar's measured bottom. A taller sidecar extends the tail
978
+ after the left footer; it must not push that footer below its normal position.
979
+ `scrollToEnd`, refresh and structural transition offset clamping use this
980
+ combined extent. A sidecar height or breakpoint change preserves an in-range
981
+ offset; an out-of-range offset is clamped by the existing shrink correction.
982
+ Rapid row transitions retain their existing one-shot id and anchor semantics.
983
+ Native sidecar position follows the native scroll offset directly, without a
984
+ per-frame JS bridge. A drag beginning over interactive sidecar content must
985
+ still scroll the same list; taps retain the content's own actions.
986
+ 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
987
+ coordinates. On Android the narrow overlay follows the RecyclerView's measured
988
+ logical offset; after a vertical touch slop it cancels the React press and
989
+ forwards the original touch stream to the list's SwipeRefreshLayout. The
990
+ Android tail spacer derives from explicit/measured row and slot extents, not
991
+ RecyclerView's variable-height scrollbar estimate.
992
+
993
+ Web uses the same measured two-column geometry inside its current owned or
994
+ explicit external scroll host, with DOM virtualization limited to the left
995
+ rows; the sidecar is a single React slot. Callers already placing a Web sidebar
996
+ as a sibling may omit the new pair there. Horizontal/grid configurations with
997
+ a sidecar are rejected. Acceptance requires iOS and Android wide Home scrolling,
998
+ right-column drag and action, short/empty assets, collapse animation while
999
+ scrolled, refresh, resize across the breakpoint without list remount, and
1000
+ thousands of rows remaining bounded to the native recycler viewport. Source,
1001
+ type and unit checks alone do not establish device acceptance.
1002
+
724
1003
  `listHeader`, `listEmpty` and `listFooter` accept React nodes on iOS and Android
725
1004
  vertical lists only. They are optional and default to absent. They are common
726
1005
  container capabilities, not row templates, and MUST NOT be used for per-item
@@ -747,9 +1026,10 @@ width React lays it out at. Android's narrow-screen row scale and section-index
747
1026
  apply to data rows only. Slot React trees own their internal layout and
748
1027
  business actions; NativeList owns their scroll placement and lifecycle.
749
1028
 
750
- The wrapper mounts exactly three non-collapsible slot roots and reports measured
751
- heights through `containerSlotHeightsJson` in header/empty/footer order. Native
752
- validates three finite, non-negative heights. Slot updates MUST NOT alter data-row
1029
+ The wrapper mounts four non-collapsible slot roots and reports measured
1030
+ heights through `containerSlotHeightsJson` in header/empty/footer/sidecar order.
1031
+ The sidecar root has zero reserved height when absent. Native validates four
1032
+ finite, non-negative heights. Slot updates MUST NOT alter data-row
753
1033
  keys or public row indices. No per-scroll-frame JS position updates are used.
754
1034
  iOS mounts each slot root inside a list-owned host view in UICollectionView and
755
1035
  reserves native layout space. The host owns the slot's vertical position and clips to
@@ -760,6 +1040,81 @@ data adapter; adapter binding indices stay local while layout-manager positions
760
1040
  are explicitly translated. Slots span all grid columns, do not select/reorder,
761
1041
  and do not emit row actions, visible-row indices, or image-prefetch work.
762
1042
 
1043
+ ### Native disclosure slots and settlement (source implemented; limited runtime verification)
1044
+
1045
+ Native callers may opt in with `snapshot.disclosure: { expanded: boolean,
1046
+ expandedTrailingInset?: number }`, `listExpandedContent`, and
1047
+ `listStructureToggle`. `expanded` is the accepted target state independent of
1048
+ row count, the expanded slot's measured height, and the one-shot structural
1049
+ transition command. `expandedTrailingInset` defaults to zero and must be a
1050
+ finite, non-negative number of logical pixels. Without `disclosure`, the
1051
+ existing four-slot and structural-transition behavior is unchanged. Web,
1052
+ Desktop, and extension retain their existing structural presentation; these
1053
+ native slots do not change the Web scroll-owner contract.
1054
+
1055
+ The native slot order is 0 header, 1 empty, 2 existing footer `F`, 3 sidecar,
1056
+ 4 expanded content `C`, and 5 stable structure toggle `T`; the optional iOS
1057
+ top overlay follows at index 6. The native wrapper reports six measured slot
1058
+ heights in that order. This slot-index ABI requires the package's JavaScript
1059
+ wrapper and native binary to be integrated from the same version; the new
1060
+ native host does not reinterpret an old four-slot wrapper's index 4 as an
1061
+ overlay. The disclosure layout in the left list column is data
1062
+ rows `R`, then `C`, then `T`, then a native trailing inset `I`, then the one
1063
+ existing `F`. `F` is never duplicated as retiring presentation. `T` retains
1064
+ one React instance and a stable measured height while its text changes, and
1065
+ remains interactive during a transition so a tap can reverse it. `C` is
1066
+ measured after mounting for expansion. On collapse the caller retains that
1067
+ same React instance until the newest collapsed settlement callback, after
1068
+ which it may unmount it. Its measured root keeps its natural height; native
1069
+ clipping, not a React height animation, controls the visible portion. `I` is
1070
+ `expandedTrailingInset` at the expanded endpoint and zero at the collapsed
1071
+ endpoint. The native display-link/animator updates the visible `R` suffix,
1072
+ `C`, `T` position, `I`, `F` position, scroll offset, and sidecar-aware extent
1073
+ on one UI-thread timeline. No per-frame JavaScript command is required.
1074
+ The wrapper may mount `C` and `T` before delivering a new structural snapshot;
1075
+ the previous accepted snapshot continues to own the list during this short
1076
+ preparation. For that new command only, the wrapper waits for the current
1077
+ instances of both slot roots to report their first layout, including a genuine
1078
+ zero-height layout, then delivers the complete snapshot once. A numeric zero
1079
+ height without a layout event is not proof that a newly mounted `C` is ready.
1080
+ A newer pending id replaces an older one; no stale prepared command may be
1081
+ delivered later. Initial snapshots and same-id content updates do not wait.
1082
+ Native applies the measured slot heights and the complete pending snapshot in
1083
+ one ordered main-thread update, with heights first, regardless of which Nitro
1084
+ property setter ran first in that React commit. It must not reveal `C` or emit
1085
+ a settlement callback between those two values.
1086
+
1087
+ All retiring or newly revealed row suffix is inert and excluded from
1088
+ accessibility, selection, row actions, visible-range, and end-reached events.
1089
+ The whole `C` slot is inert and accessibility-hidden while preparing,
1090
+ animating, or settled collapsed; it becomes interactive and accessible only
1091
+ after the expanded endpoint settles. The visible part of `T` remains
1092
+ hit-testable throughout so a tap can reverse the transition. Native
1093
+ must not infer the target from product-specific row counts or toggle text.
1094
+ An initially expanded snapshot and a same-transition-id content or price
1095
+ update use `disclosure.expanded` without starting or re-acknowledging a
1096
+ structural transition. An initial collapsed snapshot may omit or mount an
1097
+ empty `C` root; later collapse keeps its mounted instance through settlement.
1098
+
1099
+ For each newly consumed `structuralTransition.id` with `disclosure`, native
1100
+ emits `onStructuralTransitionSettled` once for the latest non-superseded id,
1101
+ with JSON `{ transitionId: string, status: 'completed' | 'interrupted',
1102
+ settledExpanded: boolean }`. `settledExpanded` describes the accepted target
1103
+ after native geometry and scroll ownership have reached that state, never a
1104
+ guess from measured `C` height. Natural animation completion, reduced motion,
1105
+ zero duration, and a new id with unchanged or empty row keys that settles
1106
+ directly report `completed`. Drag, explicit scrolling, resize, or unsupported
1107
+ geometry atomically commit the accepted target and report `interrupted` after
1108
+ temporary presentation and scroll ownership have been released. A newer id
1109
+ replaces the previous command from current presentation geometry: the older
1110
+ id must not complete late or force its former target before the newer one.
1111
+ The caller guards the callback by its latest id and current list/account/network
1112
+ owner; a matching numeric id from a prior owner must not unmount current `C`.
1113
+ An already settled id
1114
+ does not re-emit on a same-id patch. Disposal drops the callback with its
1115
+ owner. An unsupported or immediately settled new id must still acknowledge;
1116
+ otherwise a caller could retain `C` indefinitely after collapse.
1117
+
763
1118
  On Android, mounting/unmounting a slot or changing its actual rounded native
764
1119
  height MUST request one coalesced RecyclerView measurement/layout repair. The
765
1120
  repair runs after the current layout completes and only with a positive viewport
@@ -770,7 +1125,8 @@ request another repair. This leaves Fabric-owned slot content and row indices
770
1125
  unchanged; source checks alone do not establish first-layout visibility.
771
1126
 
772
1127
  Fabric mount/unmount ownership remains explicit even when RecyclerView detaches a
773
- slot holder. The native manager retains at most three roots until Fabric unmount;
1128
+ slot holder. The new native wrapper retains six scrolling roots until Fabric unmount
1129
+ (plus the independent optional fixed top overlay);
774
1130
  recycling detaches slot content without disposing its React tree. Unmount removes
775
1131
  that exact view. Native list disposal MUST NOT dispatch pending row/slot events.
776
1132
  The generated Nitro 0.37 leaf managers require deterministic child-forwarding
@@ -819,8 +1175,28 @@ applied inset and remains valid while that inset is retained across detach.
819
1175
 
820
1176
  ## Native rich activity presentation
821
1177
 
1178
+ Status: Source implemented for `ActivityRow.hideLeading`. Web DOM tests cover
1179
+ both Activity paths, Android production renderer instrumentation covers
1180
+ same-view rebinds, and the iOS NativeListModule arm64 Simulator target builds.
1181
+ iOS runtime acceptance remains pending. Optional `hideLeading: true` suppresses
1182
+ the activity row's main leading visual, its accessibility content, and the entire visual width and
1183
+ following gap. The title, description, status, amounts, fee, and footer actions
1184
+ retain their normal semantics; footer actions align with the title region rather
1185
+ than a reserved visual slot. `leading` remains required in the row model and is
1186
+ still validated. Omitted or `false` preserves the existing layout and image
1187
+ behavior. The field must be a boolean in snapshots and patches; an omitted patch
1188
+ field preserves the current value. A full snapshot or patch changing
1189
+ `hideLeading` rebinds the visual and layout in both legacy and rich Activity
1190
+ presentations, including key reuse. Hidden visuals do not start image requests;
1191
+ rebinding to `false` may load the current image. Recycling and late image
1192
+ callbacks must not restore a hidden visual or leave hidden layout/accessibility
1193
+ state on a later visible row. This contract applies on iOS, Android, and Web.
1194
+ The Android instrumentation uses icon visuals to verify layout, action alignment
1195
+ and amount preservation. Late image completion is guarded by the existing
1196
+ image-slot recycle epoch; a hide-during-image-load device case remains unverified.
1197
+
822
1198
  Status: Source implemented; native runtime acceptance pending. Optional `amounts`
823
- supersedes legacy `primaryAmount`/`secondaryAmount` only on native. It accepts at
1199
+ supersedes legacy `primaryAmount`/`secondaryAmount` in rich Activity rows. It accepts at
824
1200
  most 32 keyed lines, each with formatted text, optional leading visual, tone,
825
1201
  secondary text and subscript text segments. Segments are caller-formatted and
826
1202
  never interpreted as numbers by NativeList. Omission preserves the legacy tree.
@@ -1298,6 +1674,26 @@ Presentation wrapper changes move the existing nodes and preserve asynchronous
1298
1674
  loading/error visibility; they do not recreate or reload an unchanged source.
1299
1675
  Changing the source set retains the existing rebuild/disposal behavior.
1300
1676
 
1677
+ ## Opt-in structural snapshot transition (Home assets)
1678
+
1679
+ `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.
1680
+
1681
+ 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.
1682
+
1683
+ 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.
1684
+
1685
+ 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.
1686
+
1687
+ 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.
1688
+
1689
+ `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.
1690
+
1691
+ `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.
1692
+
1693
+ `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.
1694
+
1695
+ `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.
1696
+
1301
1697
  ### Web slot-list scroll ownership
1302
1698
 
1303
1699
  When container slots create an owned Web scroll host without `webScrollHost`,
@@ -153,6 +153,7 @@ resolved colors; `style.color` does not resolve application color-token names.
153
153
  | `bgApp` | `background` | List ground |
154
154
  | `bg` | `rowBackground` | Row ground |
155
155
  | `bgActive` | `rowSelectedBackground`, `rowPressedBackground` | Selected / pressed row |
156
+ | `bgHover` | `rowHoverBackground` (optional Web) | Hovered row; omission uses pressed color |
156
157
  | `bgSubdued` | `subduedBackground` | Card and group ground |
157
158
  | `bgStrong` | `strongBackground` | Chip / badge ground |
158
159
  | `bgInverse` | `inverseBackground` | Inverted ground |
@@ -269,6 +270,11 @@ Each cell describes the same public contract on **Web + iOS + Android**.
269
270
  | `action` | title, value | padding, leadingGap, trailingGap, image |
270
271
  | `system` | title, message, actionText | padding, lineGap |
271
272
 
273
+ `identity.style.leadingContentMaxWidthRatio` optionally caps the leading
274
+ visual, gap and title content to a finite fraction in `(0, 1]` of the row's
275
+ inner width. Omission retains the existing width behavior. This lets a
276
+ same-row trailing text button keep its own space while long titles truncate.
277
+
272
278
  Market additionally exposes `titleBadgeLayout: inline`, `contentTrailingGap`,
273
279
  `subtitleTrailingPadding`, `changeWidth`, `changeHeight`, `changeCornerRadius`, preserving
274
280
  its existing template-specific style surface on every platform.