@onekeyfe/react-native-native-list 6.7.0-2 → 6.7.0-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +245 -9
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +7 -4
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +29 -3
- package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +87 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +193 -10
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +147 -33
- package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +145 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +51 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +2 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1920 -109
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +29 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
- package/docs/ROW_TEMPLATES.md +60 -9
- package/docs/SPEC.md +1004 -17
- package/docs/STYLE_SPEC.md +6 -0
- package/ios/HybridNativeList.swift +21 -2
- package/ios/NativeListAccessoryStack.swift +235 -39
- package/ios/NativeListActivityDetailsView.swift +18 -8
- package/ios/NativeListActivityRenderer.swift +8 -2
- package/ios/NativeListButtonGroupRenderer.swift +89 -0
- package/ios/NativeListDataRowRenderer.swift +155 -27
- package/ios/NativeListDesignAssets.swift +9 -0
- package/ios/NativeListIdentityRenderer.swift +191 -30
- package/ios/NativeListLeadingVisual.swift +119 -22
- package/ios/NativeListMessageRenderer.swift +34 -1
- package/ios/NativeListModels.swift +42 -2
- package/ios/NativeListRendererRegistry.swift +1 -0
- package/ios/NativeListResolvedText.swift +2 -1
- package/ios/NativeListRowHost.swift +14 -0
- package/ios/NativeListSectionHeaderRenderer.swift +88 -0
- package/ios/RNCNativeListView.swift +1031 -55
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +15 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +4 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +15 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +3 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +15 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +3 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/icon.svg +1 -0
- package/ios/tests/NativeListAccessoryStackTests.swift +89 -0
- package/ios/tests/NativeListActivityPresentationTests.swift +56 -0
- package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
- package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
- package/ios/tests/NativeListLifecycleTests.swift +2720 -3
- package/lib/module/NativeList.js +200 -32
- package/lib/module/NativeList.web.js +262 -32
- package/lib/module/index.js +1 -1
- package/lib/module/models.js +1 -0
- package/lib/module/selection.js +1 -1
- package/lib/module/validation.js +776 -52
- package/lib/module/web/NativeListWebEngine.js +919 -79
- package/lib/module/web/templates/ActivityRowRenderer.js +487 -7
- package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
- package/lib/module/web/templates/DataRowRenderer.js +40 -5
- package/lib/module/web/templates/IdentityRowRenderer.js +90 -4
- package/lib/module/web/templates/MarketRowRenderer.js +8 -3
- package/lib/module/web/templates/MarketTableRowRenderer.js +577 -0
- package/lib/module/web/templates/MediaTileRowRenderer.js +260 -5
- package/lib/module/web/templates/MessageRowRenderer.js +18 -2
- package/lib/module/web/templates/RowContainerStyle.js +1 -0
- package/lib/module/web/templates/RowRendererRegistry.js +8 -3
- package/lib/module/web/templates/SectionHeaderRowRenderer.js +70 -3
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
- package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
- package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
- package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
- package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
- package/lib/typescript/src/NativeList.d.ts +3 -3
- package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
- package/lib/typescript/src/NativeList.types.d.ts +29 -1
- package/lib/typescript/src/NativeList.web.d.ts +2 -2
- package/lib/typescript/src/index.d.ts +2 -2
- package/lib/typescript/src/models.d.ts +176 -10
- package/lib/typescript/src/validation.d.ts +15 -0
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +58 -1
- package/lib/typescript/src/web/templates/ActivityRowRenderer.d.ts +3 -3
- package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
- package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
- package/lib/typescript/src/web/templates/MarketTableRowRenderer.d.ts +17 -0
- package/lib/typescript/src/web/templates/MediaTileRowRenderer.d.ts +3 -3
- package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +10 -4
- package/lib/typescript/src/web/templates/RowRendererRegistry.d.ts +3 -1
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
- package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
- package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
- package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
- package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
- package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
- package/package.json +3 -3
- package/react-native-native-list.podspec +1 -0
- package/src/NativeList.nitro.ts +2 -0
- package/src/NativeList.tsx +391 -82
- package/src/NativeList.types.ts +34 -1
- package/src/NativeList.web.tsx +420 -65
- package/src/index.ts +2 -0
- package/src/models.ts +210 -3
- package/src/selection.ts +1 -0
- package/src/validation.ts +1635 -76
- package/src/web/NativeListWebEngine.ts +1476 -112
- package/src/web/templates/ActivityRowRenderer.ts +732 -8
- package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
- package/src/web/templates/DataRowRenderer.ts +93 -20
- package/src/web/templates/IdentityRowRenderer.ts +150 -5
- package/src/web/templates/MarketRowRenderer.ts +19 -3
- package/src/web/templates/MarketTableRowRenderer.ts +755 -0
- package/src/web/templates/MediaTileRowRenderer.ts +313 -5
- package/src/web/templates/MessageRowRenderer.ts +23 -7
- package/src/web/templates/RowContainerStyle.ts +2 -0
- package/src/web/templates/RowRendererRegistry.ts +21 -6
- package/src/web/templates/SectionHeaderRowRenderer.ts +89 -5
package/docs/SPEC.md
CHANGED
|
@@ -7,7 +7,7 @@ architecture and runtime evidence.
|
|
|
7
7
|
## Purpose and non-goals
|
|
8
8
|
|
|
9
9
|
NativeList renders bounded data with fixed row templates on iOS, Android and
|
|
10
|
-
Web. Data rows do not render arbitrary React children.
|
|
10
|
+
Web. Data rows do not render arbitrary React children. Named container slots
|
|
11
11
|
may render React chrome outside the data-row stream. Integrators own overflow
|
|
12
12
|
prevention; there is no automatic fitting or shrinking pass.
|
|
13
13
|
|
|
@@ -26,6 +26,254 @@ 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
|
+
Identity trailing accessories stack vertically, except for the pairs every
|
|
55
|
+
platform lays out side by side: `value` + `checkbox`, `valuePair` + `menu`,
|
|
56
|
+
`valuePair` + an `icon` named `DotVerSolid` whose `actionKey` is `menu`,
|
|
57
|
+
`valuePair` + `chevron`, a `RefreshCcwOutline` icon without an action key +
|
|
58
|
+
`chevron`, and `PencilOutline` + `DragOutline` icons. iOS decides this in
|
|
59
|
+
`configureTrailingStack`; Android in `nativeListIdentityTrailingIsHorizontal`
|
|
60
|
+
(JVM test `NativeListIdentityTrailingAxisTest`). The `valuePair` + menu-icon
|
|
61
|
+
pair is the Swap token selector's balance column and row menu; stacking it
|
|
62
|
+
clipped both inside the fixed 60dp row on Android.
|
|
63
|
+
|
|
64
|
+
Icon names are a closed set drawn from the app's 24-unit Icon sources on every
|
|
65
|
+
platform (`iconPaths` on Android, `NativeListIcons.xcassets` on iOS,
|
|
66
|
+
`selectorIcons` on Web); an unmapped name renders an empty slot rather than a
|
|
67
|
+
placeholder. The set includes every name the app's NativeList builders pass,
|
|
68
|
+
including `DotVerSolid`, `Document2Outline`, `WalletOutline`, `PlusLargeOutline`
|
|
69
|
+
and `TicketOutline` (added 2026-10-30 after the OK-66072 audit found them missing
|
|
70
|
+
on native).
|
|
71
|
+
|
|
72
|
+
A `message` row may opt into `bodyLines: 0`; its complete body wraps within its
|
|
73
|
+
existing text area and determines natural height unless an explicit row or
|
|
74
|
+
container height overrides it. Existing omitted and one-to-three-line behavior
|
|
75
|
+
stays unchanged. `style.body.lines`, when supplied, retains its existing
|
|
76
|
+
one-to-three-line precedence. `presentation: 'inlineWarning'` changes only the
|
|
77
|
+
message container border: requested `style.container.borderWidth` and
|
|
78
|
+
`borderColor` draw top and bottom edges at full row width, with no side edges or
|
|
79
|
+
corner radius. Omitted border width draws no border; omitted presentation keeps
|
|
80
|
+
the existing all-edge container style. The caller supplies warning text, icon,
|
|
81
|
+
font, padding, colors and list-width layout; the SDK does not infer risk status.
|
|
82
|
+
All optional fields must clear on rebind/recycle and patch replacement. The
|
|
83
|
+
existing 4096-code-unit body limit applies.
|
|
84
|
+
|
|
85
|
+
An image-backed `LeadingVisual` may set `fallbackTextColor` to a hex
|
|
86
|
+
`#RRGGBB` or `#RRGGBBAA` color. It colors only the visible initials/fallback
|
|
87
|
+
text, including a failed image's fallback state; omission retains the existing
|
|
88
|
+
platform default. It does not alter the visual background, bitmap, icon, or
|
|
89
|
+
overlay colors. Validation rejects malformed colors. Rebind and recycle must
|
|
90
|
+
clear the previous text color so dark/light theme updates cannot leak between
|
|
91
|
+
rows. Consumers own the semantic theme choice (for example inverse text over
|
|
92
|
+
inverse background).
|
|
93
|
+
|
|
94
|
+
iOS measures opt-in identity and unlimited message content before collection
|
|
95
|
+
placement. Android binds text with unlimited native lines and allows its row
|
|
96
|
+
view to measure that content. Web uses wrapping DOM text and measured row
|
|
97
|
+
height. All platforms retain existing explicit-height precedence and existing
|
|
98
|
+
default rows. Focused source tests must cover validation, patching, old-to-new
|
|
99
|
+
reuse, action isolation and height changing with width/text; real iOS, Android
|
|
100
|
+
and Web acceptance must cover narrow addresses, dynamic type/fonts, long press
|
|
101
|
+
versus tap, keyboard interaction, and the horizontal warning border. Source or
|
|
102
|
+
build success alone is not runtime evidence.
|
|
103
|
+
|
|
104
|
+
### DeFi position row controls
|
|
105
|
+
|
|
106
|
+
Status: implemented in local source, unreleased. Focused validation and Web
|
|
107
|
+
DOM tests pass; native source compilation passes, while target-app compilation
|
|
108
|
+
and device acceptance remain separate gates.
|
|
109
|
+
`buttonGroup` is a vertical data row with `RowBase` identity and a nonempty
|
|
110
|
+
`buttons` array. Each button has a unique nonempty `key`, localized nonempty
|
|
111
|
+
`label`, nonempty `actionKey`, and optional `disabled`, `loading`, `testID` and
|
|
112
|
+
`accessibilityLabel`. It renders the existing DeFi medium block info-outline
|
|
113
|
+
controls: equal-width buttons, 10-point gap, 12-point vertical padding and
|
|
114
|
+
12-point radius. Every declared action remains visible; the renderer must not
|
|
115
|
+
truncate the array. Loading retains the button's width, disables that button,
|
|
116
|
+
and displays an activity indicator. A disabled row disables every button.
|
|
117
|
+
Activation emits one existing row action with the button's `actionKey` and
|
|
118
|
+
its own source/slot, without activating the row. A full rebind or recycle
|
|
119
|
+
removes prior buttons, loading indicators, labels, test IDs and handlers.
|
|
120
|
+
The SDK does not infer which DeFi actions are allowed or perform transactions.
|
|
121
|
+
|
|
122
|
+
`sectionHeader` may include `leadingBadge` (the existing badge shape),
|
|
123
|
+
with an optional `NativeListTheme.successBackground` used only for its
|
|
124
|
+
`success` tone. Omitting that theme color keeps the old badge default.
|
|
125
|
+
`style.valuePlacement: 'afterTitle'`, and
|
|
126
|
+
`style.titleDecoration: 'none' | 'dashed'`. Missing fields retain the current
|
|
127
|
+
heading layout and decoration. `valueHelp` and a `valuePair` trailing
|
|
128
|
+
accessory's `primaryHelp` share
|
|
129
|
+
`{ actionKey, presentation: 'tooltip' | 'popover', underline?: 'dashed' }`.
|
|
130
|
+
Presentation and underline are independent: the former selects trigger
|
|
131
|
+
semantics, the latter only draws a dashed underline. `tooltip` on Web opens on
|
|
132
|
+
mouse/pen entry and eligible focus, closes on departure/blur, and mouse/pen
|
|
133
|
+
press closes it until departure; touch toggles. It has no native touch target
|
|
134
|
+
or event. `popover` on all platforms toggles only on click/press and does not
|
|
135
|
+
open from hover. These help targets do not activate their row. Presentation
|
|
136
|
+
change, departure, scroll, rebind, replacement by another anchor and disposal
|
|
137
|
+
invalidate the old anchor.
|
|
138
|
+
On Web, the value-pair primary help target is keyboard focusable; focus opens
|
|
139
|
+
tooltip help and Enter/Space activates popover help without pressing the row.
|
|
140
|
+
The consuming app owns Tooltip/Popover content. Missing help fields keep
|
|
141
|
+
the original noninteractive text. All additions use snapshot JSON and do not
|
|
142
|
+
change the Nitro ABI.
|
|
143
|
+
|
|
144
|
+
`valuePair.primaryFontWeight?: 'medium'` applies only to the primary text
|
|
145
|
+
line. The secondary line keeps its existing regular weight. Omitting the field
|
|
146
|
+
preserves each platform's existing value-pair typography; full rebind and
|
|
147
|
+
recycle remove any previous primary-only override. The field travels in the
|
|
148
|
+
existing snapshot JSON and does not change the Nitro ABI.
|
|
149
|
+
|
|
150
|
+
Validation rejects empty or duplicate button keys, empty labels/action keys,
|
|
151
|
+
invalid booleans and help descriptors, and unknown style fields. The list's
|
|
152
|
+
existing row, text and snapshot bounds apply; no
|
|
153
|
+
silent action truncation is permitted. Conformance includes Web DOM events,
|
|
154
|
+
iOS/Android renderer bind/reuse, TypeScript validation, native builds, and
|
|
155
|
+
later real UI checks for help anchors, loading, disabled actions and geometry.
|
|
156
|
+
|
|
157
|
+
### Segmented value-pair accessory
|
|
158
|
+
|
|
159
|
+
Status: implemented in local source, unreleased. Focused validation and Web DOM
|
|
160
|
+
tests pass; production iOS target compilation passes. Native instrumentation,
|
|
161
|
+
full App builds and device acceptance remain separate gates. A `valuePair`
|
|
162
|
+
trailing accessory retains its required `primary` and `secondary` fallback
|
|
163
|
+
strings. It may also supply optional readonly `primaryTextSegments` and
|
|
164
|
+
`secondaryTextSegments` arrays of existing `ValueTextSegment` objects. Missing
|
|
165
|
+
or empty arrays display the corresponding fallback; nonempty arrays display
|
|
166
|
+
their text runs. Callers provide matching fallback text, but validation does
|
|
167
|
+
not enforce that match.
|
|
168
|
+
|
|
169
|
+
Each array has at most 64 segments, each with string `text` of at most 4096
|
|
170
|
+
characters and optional `style: 'subscript'`. Total text per array is at most
|
|
171
|
+
4096 characters. Full snapshots and explicit patch replacements reject null,
|
|
172
|
+
malformed arrays, unknown segment keys and other styles. An omitted patch field
|
|
173
|
+
leaves the existing accessory unchanged; replacement without segments clears
|
|
174
|
+
old runs. Subscript retains the existing 60-percent smaller-font convention
|
|
175
|
+
after semantic text styling. Both lines retain their default size, tone, line
|
|
176
|
+
height, right alignment and accessibility text. These fields add no action or
|
|
177
|
+
hit target and travel in existing snapshot JSON without a Nitro ABI change.
|
|
178
|
+
|
|
179
|
+
### Identity row risk-management controls
|
|
180
|
+
|
|
181
|
+
Status: implemented in source for local consumers, unreleased. Focused validation,
|
|
182
|
+
Web DOM tests, native builds and device acceptance are tracked separately below.
|
|
183
|
+
The optional `identity.titleIcon` is a static, non-actionable icon after the
|
|
184
|
+
title: a 20-point glyph with a 4-point gap, optional tint and accessibility
|
|
185
|
+
label. "After the title" means directly after the title text: the title row
|
|
186
|
+
packs at its start on every platform (Android `PackedTitleLineLayout`, Web flex
|
|
187
|
+
`0 1 auto`, iOS a slack-absorbing filler at the end of the title row), so the
|
|
188
|
+
glyph and any badge follow the text and never drift toward the trailing column
|
|
189
|
+
(OK-66041). Its optional Web-only `hoverActionKey` emits an anchored help action
|
|
190
|
+
from the icon alone on mouse/pen hover or touch press; the consumer owns the
|
|
191
|
+
tooltip. Mouse/pen press closes the anchor until pointer leave. Touch press
|
|
192
|
+
toggles the icon anchor. The icon adds no tab stop or separate click action;
|
|
193
|
+
row activation remains unchanged. Departure, scroll, full rebind and destroy
|
|
194
|
+
invalidate the anchor. Omission removes the icon in a full snapshot; omission
|
|
195
|
+
in a patch leaves the existing value unchanged. An explicit replacement icon
|
|
196
|
+
without `hoverActionKey` clears the old hover action. Removing the icon
|
|
197
|
+
requires a full snapshot.
|
|
198
|
+
|
|
199
|
+
On Web, `identity.secondaryTitleIcon` accepts the same descriptor and appears
|
|
200
|
+
after `titleIcon`. Both icons retain independent hover/touch anchors at their
|
|
201
|
+
own glyph rectangles; entering the other invalidates the previous anchor.
|
|
202
|
+
Native renderers ignore this optional Web-only field. Full rebinding to one
|
|
203
|
+
or no icons clears the removed glyph and anchor; explicit icon replacement
|
|
204
|
+
without `hoverActionKey` clears that icon's old hover action. Neither icon
|
|
205
|
+
creates a tab stop or separate click action.
|
|
206
|
+
On Web, clicking either help icon (including its SVG) does not activate the row;
|
|
207
|
+
clicking elsewhere on the row keeps the normal row action.
|
|
208
|
+
|
|
209
|
+
`identity.style.leadingContentMaxWidthRatio`, when given,
|
|
210
|
+
must be finite and within `(0, 1]`; it caps the combined leading visual, gap
|
|
211
|
+
and title content relative to the row's available inner width. Omission keeps
|
|
212
|
+
the existing unrestricted layout. Long titles truncate inside the cap, and
|
|
213
|
+
unused width remains available to trailing controls. The ratio is layout-only,
|
|
214
|
+
never a reuse identity or row-height input.
|
|
215
|
+
|
|
216
|
+
`trailing` accepts an optional `button` accessory with required nonempty
|
|
217
|
+
`label` and `actionKey`, optional `disabled`, `testID`,
|
|
218
|
+
`accessibilityLabel`, and optional hex colors `textColor`,
|
|
219
|
+
`backgroundColor`, `pressedBackgroundColor`, `hoverBackgroundColor`, and
|
|
220
|
+
`focusRingColor`. This single variant has the existing small secondary button
|
|
221
|
+
geometry: medium 14/20 text, 10-point horizontal and 4-point vertical
|
|
222
|
+
padding, a one-point transparent border and a pill radius. Omitted colors use
|
|
223
|
+
the theme's corresponding text and strong-background colors. The button does
|
|
224
|
+
not carry arbitrary React content, a size or variant parameter, or loading
|
|
225
|
+
state. Row or accessory disabled state prevents its action and dims the control
|
|
226
|
+
to 0.4 opacity.
|
|
227
|
+
|
|
228
|
+
Activation emits one existing row-action event with the current row key,
|
|
229
|
+
`trailingAccessory` source and zero-based descriptor slot, without also activating the row.
|
|
230
|
+
The host's existing binding epoch guards recycled controls. Full rebinding
|
|
231
|
+
clears omitted title icons and old button text, visual states, test IDs,
|
|
232
|
+
accessibility values and callbacks, including button-to-icon-to-absent reuse.
|
|
233
|
+
Patches replace fields they explicitly change and leave omitted fields intact.
|
|
234
|
+
iOS and Android use native controls; Web uses a semantic `button` with native
|
|
235
|
+
keyboard activation and disabled semantics. The new fields travel inside the
|
|
236
|
+
existing snapshot JSON and do not alter the Nitro bridge ABI. Consumers own
|
|
237
|
+
localized labels, state updates and any tooltip outside the data row.
|
|
238
|
+
|
|
239
|
+
Acceptance requires snapshot and patch validation, Web action/isolation and
|
|
240
|
+
reuse checks, native renderer tests on production classes, native builds and
|
|
241
|
+
device checks for title placement, cap/truncation, colors, press and recycle.
|
|
242
|
+
No source-only check counts as native runtime evidence.
|
|
243
|
+
|
|
244
|
+
`theme.rowHoverBackground` is an optional Web-only hex color for an enabled
|
|
245
|
+
row's hover background. Omission keeps the existing pressed-background hover
|
|
246
|
+
color. Pressed/active rows continue to use `rowPressedBackground`; native
|
|
247
|
+
renderers ignore the new field. The existing `loadingStrategy: 'skeleton'`
|
|
248
|
+
on a Web leading image displays an animated skeleton while loading, then
|
|
249
|
+
clears it on success, failure, rebind or recycle; other strategies keep their
|
|
250
|
+
existing appearance.
|
|
251
|
+
|
|
252
|
+
Identity leading visuals consume the existing `borderColor` as a one-point/dp
|
|
253
|
+
solid bitmap border when supplied without `borderStyle: 'dashed'`; omission or
|
|
254
|
+
a dashed style clears the solid border on every bind.
|
|
255
|
+
The image is inset by that border width. An overlay may optionally set
|
|
256
|
+
`fontWeight` to one of the existing text weight names
|
|
257
|
+
(`regular | medium | semibold | bold`). This changes only overlay text;
|
|
258
|
+
omission retains the current platform default. Setting and clearing the field
|
|
259
|
+
must survive patching and recycled-view rebinding on all three platforms.
|
|
260
|
+
The existing `leading.fallbackIcon` may optionally set a positive `size` for
|
|
261
|
+
its glyph and a hex `backgroundColor` for the visual's no-image and image-load-
|
|
262
|
+
failure states. A successfully loaded bitmap continues to use
|
|
263
|
+
`leading.backgroundColor`. Omitted fallback fields preserve current rendering.
|
|
264
|
+
Image success, failure and full rebinding must restore the matching background
|
|
265
|
+
and glyph size without carrying values from the previous visual.
|
|
266
|
+
An image overlay may optionally declare `fallbackIcon` with a required glyph
|
|
267
|
+
name and optional tint. It shows only after that overlay image fails, while
|
|
268
|
+
loading retains the overlay's empty background and success shows the bitmap.
|
|
269
|
+
The existing icon accessory accepts only one optional `buttonStyle` value,
|
|
270
|
+
`tertiary`, for the source icon button's 38-point press frame, 24-point glyph,
|
|
271
|
+
six-point padding, one-point border, seven-point visual overhang and pressed
|
|
272
|
+
background. Omission preserves every existing icon accessory layout and action.
|
|
273
|
+
The non-action `RefreshCcwOutline` accessory keeps the source's 16-point glyph
|
|
274
|
+
and frame, with no independent press target. Rebinding it to an actionable
|
|
275
|
+
icon restores the existing icon size and event behavior.
|
|
276
|
+
|
|
29
277
|
### iOS 26 fixed top scroll-edge overlay
|
|
30
278
|
|
|
31
279
|
Standalone `NativeList` accepts optional
|
|
@@ -119,8 +367,9 @@ and does not create a separate accessibility target. Clearing the field, full
|
|
|
119
367
|
rebind, recycling and disposal stop and hide the indicator; detached native views do
|
|
120
368
|
not keep a visible animation. The History template's minimum content height
|
|
121
369
|
increases from 16 to 20 points while loading. Explicit caller row/container
|
|
122
|
-
heights still take precedence and must fit their padding. Web
|
|
123
|
-
|
|
370
|
+
heights still take precedence and must fit their padding. Web History also
|
|
371
|
+
consumes titleLoading, using its existing section-slot geometry and the Web
|
|
372
|
+
History presentation described below.
|
|
124
373
|
|
|
125
374
|
Acceptance requires loading → idle → loading reuse, title color updates and
|
|
126
375
|
detachment on each native platform. A title's localized confirming text remains
|
|
@@ -181,6 +430,83 @@ All twelve templates have their own renderer family: Message, Rail, MediaTile,
|
|
|
181
430
|
Action, System, Activity, DataRow, MetricCard, Market, Identity, SectionHeader and
|
|
182
431
|
WalletGroup. Same-key family changes must replace the incompatible host. OneKeyImage owns image caches; NativeList owns row/slot binding identity.
|
|
183
432
|
|
|
433
|
+
Keys are opaque strings and MUST contain at least one non-whitespace character.
|
|
434
|
+
Leading and trailing whitespace is valid and MUST be preserved in snapshots,
|
|
435
|
+
patches, selection and emitted events on
|
|
436
|
+
iOS, Android and Web. The SDK MUST NOT trim or otherwise normalize keys;
|
|
437
|
+
`token` and `token ` identify different rows. Duplicate checks use the exact
|
|
438
|
+
string. This rule applies to all key fields validated by the shared protocol;
|
|
439
|
+
section index titles retain their separate development-only
|
|
440
|
+
no-surrounding-whitespace assertion.
|
|
441
|
+
The 256-code-unit key limit is a development assertion, not a production limit.
|
|
442
|
+
|
|
443
|
+
Each iOS and Android host retains an index from accepted logical row keys to
|
|
444
|
+
row positions. An accepted complete snapshot reuses that index only when its
|
|
445
|
+
generation and ordered `(key, type)` sequence match the prior accepted
|
|
446
|
+
snapshot; otherwise it replaces the index. Reorder commits rebuild it and
|
|
447
|
+
disposal clears it. Patch batches reuse the index and never include retiring
|
|
448
|
+
presentation rows in it. They validate the whole batch against the current
|
|
449
|
+
accepted row models before changing config or presentation; invalid batches
|
|
450
|
+
leave both unchanged. iOS updates only changed accepted entries in its
|
|
451
|
+
presentation lookup after a valid patch, preserving any retiring rows.
|
|
452
|
+
|
|
453
|
+
### Validation environments and rejected input
|
|
454
|
+
|
|
455
|
+
Development builds (`__DEV__ === true`) run the complete snapshot and patch
|
|
456
|
+
contract assertions. Production builds run only serialization, required data
|
|
457
|
+
shape, supported renderer, finite geometry, identity and patch consistency
|
|
458
|
+
guards. Display budgets and style allowlists are development assertions.
|
|
459
|
+
Typography token resolution runs in both environments. Production treats empty
|
|
460
|
+
optional image URIs as missing images, preserving the existing visual fallback.
|
|
461
|
+
An empty optional image field omitted from a patch is a no-op, matching its
|
|
462
|
+
serialized native payload. Sparkline sample arrays retain their existing
|
|
463
|
+
256-sample resource bound because the Web renderer passes samples as function
|
|
464
|
+
arguments; this protects the runtime's argument limit.
|
|
465
|
+
|
|
466
|
+
The component and Web engine contain input validation failures in both modes:
|
|
467
|
+
initial invalid input renders an empty list; rejected later snapshots or patch
|
|
468
|
+
batches preserve the last accepted state and are not dispatched to native.
|
|
469
|
+
On iOS and Android, the React wrapper captures caller data before validation
|
|
470
|
+
and owns an immutable accepted snapshot. Later caller mutation cannot rewrite
|
|
471
|
+
that accepted state. Imperative selection keys are captured on entry. Eligible
|
|
472
|
+
value-only `identity` and `dataRow` patches validate their complete changed
|
|
473
|
+
rows; other patches and snapshots without this private ownership use the
|
|
474
|
+
existing complete-snapshot validation path. This does not change exported
|
|
475
|
+
validators or Web behavior.
|
|
476
|
+
An `undefined` value in an eligible field stays on the changed-row path only
|
|
477
|
+
when that field was already `undefined`; clearing a present value uses the
|
|
478
|
+
complete-snapshot path.
|
|
479
|
+
|
|
480
|
+
`planNativeListPatches(previous, next)` is an explicit, pure public helper for
|
|
481
|
+
callers that own two valid, immutable snapshots. It returns a readonly empty
|
|
482
|
+
batch for equal snapshots, value-only `identity` or `dataRow` row patches when
|
|
483
|
+
only eligible values change, and `undefined` when the caller must deliver a
|
|
484
|
+
complete snapshot. It never dispatches, accepts or validates an update, and
|
|
485
|
+
does not deep-copy, freeze or cache caller input. Returned patches may refer
|
|
486
|
+
to `next`'s immutable values; the caller retains baseline and commit ownership.
|
|
487
|
+
The component does not automatically invoke this planner for prop snapshots. Any
|
|
488
|
+
change outside `rows`, including generation, selection, layout, list style, empty state or
|
|
489
|
+
footer, requires a complete snapshot. Row keys, order and types must match.
|
|
490
|
+
`identity` may patch `subtitle`, `subtitleSegments` and `trailing`; `dataRow`
|
|
491
|
+
may patch non-asset columns and `trailing` while preserving the first asset
|
|
492
|
+
column. Changes to other row fields or to the presence of optional patch
|
|
493
|
+
fields require a complete snapshot. Comparison is by JSON value, ignores
|
|
494
|
+
object property order and properties whose value is `undefined`, and keeps
|
|
495
|
+
array order significant.
|
|
496
|
+
|
|
497
|
+
Rejection emits a diagnostic without including row keys, text or image URLs.
|
|
498
|
+
Explicit calls to the exported validation functions still throw on rejected
|
|
499
|
+
input, so development tooling can inspect the full contract failure. Rejection
|
|
500
|
+
does not imply that the requested update succeeded. No row identity is trimmed,
|
|
501
|
+
truncated or regenerated, and no invalid row is silently dropped from a batch.
|
|
502
|
+
|
|
503
|
+
Status: implemented. Development/production JS regressions pass, including
|
|
504
|
+
native wrappers for iOS/Android and the Web DOM engine. Real Swift XCTest on an
|
|
505
|
+
iOS 27 simulator and Android instrumentation on API 35 verify production
|
|
506
|
+
serialization, normalized typography, opaque identities and duplicate-key
|
|
507
|
+
protection against the shipping native parsers. Full app/device rendering and
|
|
508
|
+
gesture acceptance remain separate from these input-boundary checks.
|
|
509
|
+
|
|
184
510
|
## Platform contract
|
|
185
511
|
|
|
186
512
|
All platforms expose the same bounded style properties and public semantics.
|
|
@@ -189,6 +515,16 @@ Existing geometry/typography differences are recorded in
|
|
|
189
515
|
them. iOS uses UICollectionView, Android RecyclerView, and Web a windowed DOM
|
|
190
516
|
engine. See [DESIGN.md](DESIGN.md) for their current ownership boundaries.
|
|
191
517
|
|
|
518
|
+
### Android section-index attachment
|
|
519
|
+
|
|
520
|
+
When `sectionIndex.centeredInWindow` is enabled, the Android index rail moves
|
|
521
|
+
between the list container and the window host as list visibility and attachment
|
|
522
|
+
change. Before adding that same rail to its new parent, the previous parent MUST
|
|
523
|
+
finish any pending view transition for it. Hiding the list returns the rail to
|
|
524
|
+
the list container; detaching still uses the existing posted return so that a
|
|
525
|
+
window traversal is not interrupted. Re-showing or reattaching MUST retain one
|
|
526
|
+
rail instance with one current parent.
|
|
527
|
+
|
|
192
528
|
### Font resource ownership and runtime configuration
|
|
193
529
|
|
|
194
530
|
Status: implemented; JavaScript regression tests, Android compilation/JVM tests
|
|
@@ -234,16 +570,106 @@ not establish visual acceptance. Acceptance includes two independent runtimes,
|
|
|
234
570
|
two list instances, changed/reset mappings, invalid configuration without partial
|
|
235
571
|
state, all templates and container text, and retained selection/scroll behavior.
|
|
236
572
|
|
|
573
|
+
### Trailing text accessory hit area (OK-65494)
|
|
574
|
+
|
|
575
|
+
Status: implemented on iOS and Android. iOS XCTest
|
|
576
|
+
(`NativeListAccessoryStackTests`) checks the control state and hit test, Android
|
|
577
|
+
a JVM policy test (`NativeListPressPolicyTest`); iOS Simulator acceptance on the
|
|
578
|
+
app's network selector is recorded in the changelog entry (2026-10-26). Android
|
|
579
|
+
device acceptance pending.
|
|
580
|
+
|
|
581
|
+
A trailing text accessory (`value`, `valuePair`, `progress`, and a `radio` or
|
|
582
|
+
`switch` without an action key) is display only. It MUST NOT own touches: a tap
|
|
583
|
+
on it is a row press, so the whole row, including its value column, is the hit
|
|
584
|
+
area on iOS, Android and Web. Only a text accessory that carries an action key
|
|
585
|
+
(`radio`, `switch`) handles its own tap and emits that action instead of the row
|
|
586
|
+
press. Icon, chevron, menu, drag and checkbox accessories keep their existing
|
|
587
|
+
ownership. iOS implements this by disabling user interaction on the shared
|
|
588
|
+
accessory button when it has no action and restoring it on reset; Android keeps
|
|
589
|
+
the trailing `TextView` non-clickable unless `showTrailing` binds an action
|
|
590
|
+
(`setOnClickListener(null)` alone leaves a view clickable). Web already renders
|
|
591
|
+
an action-less accessory as a `span`, so its click reaches the row.
|
|
592
|
+
|
|
593
|
+
### Leading badge overhang (OK-65694)
|
|
594
|
+
|
|
595
|
+
Status: implemented on Android, the only platform that clipped. Android JVM
|
|
596
|
+
policy tests (`NativeListLeadingVisualClipPolicyTest`,
|
|
597
|
+
`NativeListActivityHostClipPolicyTest`); Android emulator
|
|
598
|
+
acceptance on the example account selector (API 36, 2026-10-27) is recorded in
|
|
599
|
+
the changelog entry. iOS and Web are unchanged.
|
|
600
|
+
|
|
601
|
+
A leading visual lays these badges past its own frame: a token `networkImage`
|
|
602
|
+
with its backdrop, a `cornerIcon`, and every `overlays` entry, whose default
|
|
603
|
+
`offset` of 2 already overhangs (the app's account selector hangs its
|
|
604
|
+
single-network badge 4 units past the 32-unit avatar). Such a badge MUST render
|
|
605
|
+
in full on every platform. iOS stops clipping the visual (`clipsToBounds`) once
|
|
606
|
+
one of those descriptors is bound, and Web keeps the visual `overflow: visible`.
|
|
607
|
+
Android clips a child to its own bounds whenever its parent clips children, so a
|
|
608
|
+
host row that keeps the default `clipChildren` cuts the overhang flat even
|
|
609
|
+
though the visual itself never clips. The Identity renderer therefore stops
|
|
610
|
+
clipping children and padding exactly when the bound leading visual reports an
|
|
611
|
+
overhanging badge (`requestsUnclippedHost`, decided by
|
|
612
|
+
`nativeListLeadingVisualOverhangsFrame`), as the Market and Message renderers
|
|
613
|
+
already do for their network badges; a visual without such a badge keeps the
|
|
614
|
+
row's default clipping.
|
|
615
|
+
|
|
616
|
+
Host clipping is per-bind state. A row view that serves several row shapes
|
|
617
|
+
(the Android Activity view serves the legacy row and the rich `amounts` row) is
|
|
618
|
+
reused across binds, so each bind MUST derive clipping from the item it binds
|
|
619
|
+
(`nativeListActivityHostClips`): a view that last showed an overhanging badge
|
|
620
|
+
clips again when it is rebound to a row without one.
|
|
621
|
+
|
|
622
|
+
The row's own shape still clips on every platform: iOS masks the cell to its
|
|
623
|
+
corner radius (`masksToBounds`), Web keeps the row `overflow: hidden`, and
|
|
624
|
+
Android keeps `clipToOutline` for a `style.container.cornerRadius` row (its
|
|
625
|
+
parent also clips each row to its bounds). A badge is therefore whole only while
|
|
626
|
+
it stays inside the row's rounded outline, which every app descriptor does: the
|
|
627
|
+
account badge hangs 4 units towards the row's centre and the wallet top-left
|
|
628
|
+
badge (`offsetY` 4) starts inside a 12-unit corner radius with the default
|
|
629
|
+
padding. The example `NativeListRowStylePage` row `identity-badge-rounded`
|
|
630
|
+
combines both badges with `container.cornerRadius` as the rendering check for
|
|
631
|
+
that combination.
|
|
632
|
+
|
|
633
|
+
### Activity leading pair (OK-66071)
|
|
634
|
+
|
|
635
|
+
Status: implemented on iOS and Android; Web already drew the pair. Android JVM
|
|
636
|
+
geometry test (`NativeListLeadingSlotFrameTest`); Android emulator acceptance on
|
|
637
|
+
the example row-style page is recorded in the changelog entry.
|
|
638
|
+
|
|
639
|
+
An Activity row whose `leading` and `secondaryLeading` are both tokens with an
|
|
640
|
+
image (the app's swap and multi-asset history rows) draws them as a pair inside
|
|
641
|
+
the 40-unit visual box, as the legacy avatar and the Web renderer do: the
|
|
642
|
+
primary token at the top-left at 0.6 of the box (24 units), the secondary at the
|
|
643
|
+
same size at the bottom-right inside a 2-unit ring in the row background, above
|
|
644
|
+
the primary. The ring is shown only while the secondary image is displayed:
|
|
645
|
+
while that image loads, after a failed load and after recycling it stays hidden,
|
|
646
|
+
so it never covers the primary's corner with a blank disc. The token `networkImage` badge, when present, keeps its single-token
|
|
647
|
+
geometry at the box's bottom-right corner above the secondary; a pair shows one
|
|
648
|
+
badge, never one per member. A secondary token without an image leaves the
|
|
649
|
+
primary alone at full size, and a primary without an image lets the secondary
|
|
650
|
+
take its place. Before this rule Android laid the secondary over the whole box
|
|
651
|
+
(hiding the primary and the badge) and iOS drew it in the badge's corner slot
|
|
652
|
+
over the badge. The per-source geometry is one pure function on Android
|
|
653
|
+
(`nativeListLeadingSlotFrame`) and the same arithmetic in
|
|
654
|
+
`NativeListLeadingVisual.layoutSubviews` on iOS; both restore the stacking
|
|
655
|
+
order by role on every bind because slots are reused across roles.
|
|
656
|
+
|
|
657
|
+
The Android Activity renderer also applies the badge-overhang rule above
|
|
658
|
+
(`requestsUnclippedHost` stops the content row and the row padding clipping),
|
|
659
|
+
so the history rows' network badges render whole instead of cut flat.
|
|
660
|
+
|
|
237
661
|
## Failures, fallback and limits
|
|
238
662
|
|
|
239
663
|
Snapshot validation rejects malformed/duplicate-key input without partial
|
|
240
|
-
application
|
|
664
|
+
application, through the contained failure behavior above. Development-only
|
|
665
|
+
template field/array bounds and image fallback behavior are defined
|
|
241
666
|
in [ROW_TEMPLATES.md](ROW_TEMPLATES.md), [README.md](../README.md) and
|
|
242
667
|
[DESIGN.md](DESIGN.md). This change adds the style surface's limits, defined in
|
|
243
668
|
[STYLE_SPEC.md](STYLE_SPEC.md) §3.3/§4/§5: numeric bounds, `#RRGGBB`/`#RRGGBBAA`
|
|
244
669
|
colors (including `listStyle.separator.color`), `groupCornerRadius` `0…40`, and
|
|
245
|
-
rejection of
|
|
246
|
-
and `validatePatches
|
|
670
|
+
development-time rejection of undeclared or unknown nested style keys by
|
|
671
|
+
`validateSnapshot` and `validatePatches`. Production renderers ignore unsupported
|
|
672
|
+
style properties while minimum protocol guards remain active. It adds no retry
|
|
247
673
|
policy or automatic layout correction.
|
|
248
674
|
|
|
249
675
|
## Performance and resources
|
|
@@ -558,8 +984,8 @@ is an opt-in native-only preview descriptor: `{ source: ImageSource, probeOrder:
|
|
|
558
984
|
('image' | 'video')[] }`. The order contains one or two distinct candidates.
|
|
559
985
|
The caller supplies the order; the renderer never guesses asset semantics.
|
|
560
986
|
When provided, media takes precedence over `image`, unless `imageState` is
|
|
561
|
-
explicitly empty/error. Web
|
|
562
|
-
|
|
987
|
+
explicitly empty/error. Web gallery media probing follows the separate Web migration contract below;
|
|
988
|
+
legacy Web image-only tiles retain their existing behavior.
|
|
563
989
|
|
|
564
990
|
Image uses the shared OneKeyImage lifecycle. Video uses a paused, muted AVPlayer
|
|
565
991
|
on iOS and Media3 ExoPlayer on Android, preserving the native Video source
|
|
@@ -616,11 +1042,54 @@ leaked audio/player resources. Static API checks do not prove these cases.
|
|
|
616
1042
|
|
|
617
1043
|
## Native container slots (source implementation, runtime verification pending)
|
|
618
1044
|
|
|
1045
|
+
### Optional scrolling sidecar (source implemented; native runtime verification pending)
|
|
1046
|
+
|
|
1047
|
+
`listSidecar` and `sidecarLayout: { width, gap, maxContentWidth }` are an
|
|
1048
|
+
optional pair for a vertical linear list. Omission preserves the existing
|
|
1049
|
+
single-column layout. All three values are finite non-negative logical pixels;
|
|
1050
|
+
`width` and `maxContentWidth` must be positive and `width + gap` must be less
|
|
1051
|
+
than `maxContentWidth`. The list remains the sole scroll owner. At viewport
|
|
1052
|
+
width `V`, the content band is centered with width `min(V, maxContentWidth)`;
|
|
1053
|
+
the sidecar occupies the logical end `width`, separated from the logical start
|
|
1054
|
+
data/slot column by `gap`. In RTL the sidecar is physically left and the list
|
|
1055
|
+
is physically right. Header, rows, empty slot and footer use the start column. The sidecar
|
|
1056
|
+
starts at the content top, scrolls on the same native frame as rows, and may
|
|
1057
|
+
contain interactive React content. Its root is retained until Fabric unmount;
|
|
1058
|
+
it does not become a row, affect row keys, indices, selection or prefetch. The
|
|
1059
|
+
left RecyclerView/UICollectionView still lays out only viewport-near rows.
|
|
1060
|
+
|
|
1061
|
+
The scrolling extent is at least the greater of the left column including its
|
|
1062
|
+
footer and the sidecar's measured bottom. A taller sidecar extends the tail
|
|
1063
|
+
after the left footer; it must not push that footer below its normal position.
|
|
1064
|
+
`scrollToEnd`, refresh and structural transition offset clamping use this
|
|
1065
|
+
combined extent. A sidecar height or breakpoint change preserves an in-range
|
|
1066
|
+
offset; an out-of-range offset is clamped by the existing shrink correction.
|
|
1067
|
+
Rapid row transitions retain their existing one-shot id and anchor semantics.
|
|
1068
|
+
Native sidecar position follows the native scroll offset directly, without a
|
|
1069
|
+
per-frame JS bridge. A drag beginning over interactive sidecar content must
|
|
1070
|
+
still scroll the same list; taps retain the content's own actions.
|
|
1071
|
+
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
|
|
1072
|
+
coordinates. On Android the narrow overlay follows the RecyclerView's measured
|
|
1073
|
+
logical offset; after a vertical touch slop it cancels the React press and
|
|
1074
|
+
forwards the original touch stream to the list's SwipeRefreshLayout. The
|
|
1075
|
+
Android tail spacer derives from explicit/measured row and slot extents, not
|
|
1076
|
+
RecyclerView's variable-height scrollbar estimate.
|
|
1077
|
+
|
|
1078
|
+
Web uses the same measured two-column geometry inside its current owned or
|
|
1079
|
+
explicit external scroll host, with DOM virtualization limited to the left
|
|
1080
|
+
rows; the sidecar is a single React slot. Callers already placing a Web sidebar
|
|
1081
|
+
as a sibling may omit the new pair there. Horizontal/grid configurations with
|
|
1082
|
+
a sidecar are rejected. Acceptance requires iOS and Android wide Home scrolling,
|
|
1083
|
+
right-column drag and action, short/empty assets, collapse animation while
|
|
1084
|
+
scrolled, refresh, resize across the breakpoint without list remount, and
|
|
1085
|
+
thousands of rows remaining bounded to the native recycler viewport. Source,
|
|
1086
|
+
type and unit checks alone do not establish device acceptance.
|
|
1087
|
+
|
|
619
1088
|
`listHeader`, `listEmpty` and `listFooter` accept React nodes on iOS and Android
|
|
620
1089
|
vertical lists only. They are optional and default to absent. They are common
|
|
621
1090
|
container capabilities, not row templates, and MUST NOT be used for per-item
|
|
622
|
-
rendering. Horizontal orientation with any supplied slot is rejected. Web
|
|
623
|
-
|
|
1091
|
+
rendering. Horizontal orientation with any supplied slot is rejected. Web container slots follow the separate Web parent-scrolling contract below;
|
|
1092
|
+
the native placement and lifecycle described in this section remain unchanged.
|
|
624
1093
|
|
|
625
1094
|
The order is header, data rows (or empty slot when there are no data rows), footer.
|
|
626
1095
|
On iOS, after the laid-out vertical content shrinks, an offset beyond the new
|
|
@@ -642,9 +1111,10 @@ width React lays it out at. Android's narrow-screen row scale and section-index
|
|
|
642
1111
|
apply to data rows only. Slot React trees own their internal layout and
|
|
643
1112
|
business actions; NativeList owns their scroll placement and lifecycle.
|
|
644
1113
|
|
|
645
|
-
The wrapper mounts
|
|
646
|
-
heights through `containerSlotHeightsJson` in header/empty/footer order.
|
|
647
|
-
|
|
1114
|
+
The wrapper mounts four non-collapsible slot roots and reports measured
|
|
1115
|
+
heights through `containerSlotHeightsJson` in header/empty/footer/sidecar order.
|
|
1116
|
+
The sidecar root has zero reserved height when absent. Native validates four
|
|
1117
|
+
finite, non-negative heights. Slot updates MUST NOT alter data-row
|
|
648
1118
|
keys or public row indices. No per-scroll-frame JS position updates are used.
|
|
649
1119
|
iOS mounts each slot root inside a list-owned host view in UICollectionView and
|
|
650
1120
|
reserves native layout space. The host owns the slot's vertical position and clips to
|
|
@@ -655,6 +1125,102 @@ data adapter; adapter binding indices stay local while layout-manager positions
|
|
|
655
1125
|
are explicitly translated. Slots span all grid columns, do not select/reorder,
|
|
656
1126
|
and do not emit row actions, visible-row indices, or image-prefetch work.
|
|
657
1127
|
|
|
1128
|
+
### Disclosure slots and settlement (source implemented; limited runtime verification)
|
|
1129
|
+
|
|
1130
|
+
Native callers may opt in with `snapshot.disclosure: { expanded: boolean,
|
|
1131
|
+
expandedTrailingInset?: number }`, `listExpandedContent`, and
|
|
1132
|
+
`listStructureToggle`. `expanded` is the accepted target state independent of
|
|
1133
|
+
row count, the expanded slot's measured height, and the one-shot structural
|
|
1134
|
+
transition command. `expandedTrailingInset` defaults to zero and must be a
|
|
1135
|
+
finite, non-negative number of logical pixels. Without `disclosure`, the
|
|
1136
|
+
existing four-slot and structural-transition behavior is unchanged. On Web,
|
|
1137
|
+
`C` and `T` occupy the existing single React footer band after the list rows,
|
|
1138
|
+
followed by the expanded trailing inset and the caller's footer `F`. `C` is
|
|
1139
|
+
mounted on first expansion and may remain mounted for that scope after collapse.
|
|
1140
|
+
Without an accepted `disclosure`, supplied `C` and `T` are hidden and inert.
|
|
1141
|
+
At the collapsed endpoint `C` has zero layout height and is hidden from pointer,
|
|
1142
|
+
keyboard, and accessibility interaction; `T` remains mounted and interactive
|
|
1143
|
+
through rapid reversals. Web does not use the native settlement callback to
|
|
1144
|
+
release `C`. The Web engine continues to measure that one footer band and to
|
|
1145
|
+
own its existing structural-tail animation and external scroll-host correction;
|
|
1146
|
+
its per-frame presentation need not match the native clip geometry. Desktop
|
|
1147
|
+
and extension retain their existing structural presentation.
|
|
1148
|
+
|
|
1149
|
+
The native slot order is 0 header, 1 empty, 2 existing footer `F`, 3 sidecar,
|
|
1150
|
+
4 expanded content `C`, and 5 stable structure toggle `T`; the optional iOS
|
|
1151
|
+
top overlay follows at index 6. The native wrapper reports six measured slot
|
|
1152
|
+
heights in that order. This slot-index ABI requires the package's JavaScript
|
|
1153
|
+
wrapper and native binary to be integrated from the same version; the new
|
|
1154
|
+
native host does not reinterpret an old four-slot wrapper's index 4 as an
|
|
1155
|
+
overlay. The disclosure layout in the left list column is data
|
|
1156
|
+
rows `R`, then `C`, then `T`, then a native trailing inset `I`, then the one
|
|
1157
|
+
existing `F`. `F` is never duplicated as retiring presentation. `T` retains
|
|
1158
|
+
one React instance and a stable measured height while its text changes, and
|
|
1159
|
+
remains interactive during a transition so a tap can reverse it. `C` is
|
|
1160
|
+
measured after mounting for expansion. On collapse the caller retains that
|
|
1161
|
+
same React instance until the newest collapsed settlement callback, after
|
|
1162
|
+
which it may unmount it. Its measured root keeps its natural height; native
|
|
1163
|
+
clipping, not a React height animation, controls the visible portion. `I` is
|
|
1164
|
+
`expandedTrailingInset` at the expanded endpoint and zero at the collapsed
|
|
1165
|
+
endpoint. The native display-link/animator updates the visible `R` suffix,
|
|
1166
|
+
`C`, `T` position, `I`, `F` position, scroll offset, and sidecar-aware extent
|
|
1167
|
+
on one UI-thread timeline. No per-frame JavaScript command is required.
|
|
1168
|
+
The wrapper may mount `C` and `T` before delivering a new structural snapshot;
|
|
1169
|
+
the previous accepted snapshot continues to own the list during this short
|
|
1170
|
+
preparation. For that new command only, the wrapper waits for the current
|
|
1171
|
+
instances of both slot roots to report their first layout, including a genuine
|
|
1172
|
+
zero-height layout, then delivers the complete snapshot once. A numeric zero
|
|
1173
|
+
height without a layout event is not proof that a newly mounted `C` is ready.
|
|
1174
|
+
A newer pending id replaces an older one; no stale prepared command may be
|
|
1175
|
+
delivered later. Initial snapshots and same-id content updates do not wait.
|
|
1176
|
+
Native applies the measured slot heights and the complete pending snapshot in
|
|
1177
|
+
one ordered main-thread update, with heights first, regardless of which Nitro
|
|
1178
|
+
property setter ran first in that React commit. It must not reveal `C` or emit
|
|
1179
|
+
a settlement callback between those two values.
|
|
1180
|
+
|
|
1181
|
+
All retiring or newly revealed row suffix is inert and excluded from
|
|
1182
|
+
accessibility, selection, row actions, visible-range, and end-reached events.
|
|
1183
|
+
The whole `C` slot is inert and accessibility-hidden while preparing,
|
|
1184
|
+
animating, or settled collapsed; it becomes interactive and accessible only
|
|
1185
|
+
after the expanded endpoint settles. The visible part of `T` remains
|
|
1186
|
+
hit-testable throughout so a tap can reverse the transition. Native
|
|
1187
|
+
must not infer the target from product-specific row counts or toggle text.
|
|
1188
|
+
An initially expanded snapshot and a same-transition-id content or price
|
|
1189
|
+
update use `disclosure.expanded` without starting or re-acknowledging a
|
|
1190
|
+
structural transition. An initial collapsed snapshot may omit or mount an
|
|
1191
|
+
empty `C` root; later collapse keeps its mounted instance through settlement.
|
|
1192
|
+
|
|
1193
|
+
For each newly consumed `structuralTransition.id` with `disclosure`, native
|
|
1194
|
+
emits `onStructuralTransitionSettled` once for the latest non-superseded id
|
|
1195
|
+
when a listener is registered. Without a listener, native still settles the
|
|
1196
|
+
command and releases its pending transition state, but does not serialize or
|
|
1197
|
+
cross the callback boundary. Adding or replacing a listener does not replay a
|
|
1198
|
+
settled id; removing it stops delivery for subsequent settlements. The caller
|
|
1199
|
+
may keep `C` mounted after settlement; native still controls its visibility,
|
|
1200
|
+
interaction, and accessibility. The callback carries JSON
|
|
1201
|
+
`{ transitionId: string, status: 'completed' | 'interrupted',
|
|
1202
|
+
settledExpanded: boolean }`. `settledExpanded` describes the accepted target
|
|
1203
|
+
after native geometry and scroll ownership have reached that state, never a
|
|
1204
|
+
guess from measured `C` height. Natural animation completion, reduced motion,
|
|
1205
|
+
zero duration, and a new id with unchanged or empty row keys that settles
|
|
1206
|
+
directly report `completed`. Drag, explicit scrolling, resize, or unsupported
|
|
1207
|
+
geometry atomically commit the accepted target and report `interrupted` after
|
|
1208
|
+
temporary presentation and scroll ownership have been released. A newer id
|
|
1209
|
+
replaces the previous command from current presentation geometry: the older
|
|
1210
|
+
id must not complete late or force its former target before the newer one.
|
|
1211
|
+
The caller guards the callback by its latest id and current list/account/network
|
|
1212
|
+
owner; a matching numeric id from a prior owner must not unmount current `C`.
|
|
1213
|
+
An accepted row patch while a direct disclosure commit is pending MUST preserve
|
|
1214
|
+
that command's settlement ownership. If the patch supersedes the pending list
|
|
1215
|
+
submission, its committed callback settles the current non-superseded id after
|
|
1216
|
+
layout and any pending collapsed-toggle positioning, exactly once. It MUST NOT
|
|
1217
|
+
leave callers waiting for a discarded list callback.
|
|
1218
|
+
An already settled id
|
|
1219
|
+
does not re-emit on a same-id patch. Disposal drops the callback with its
|
|
1220
|
+
owner. An unsupported or immediately settled new id must still acknowledge
|
|
1221
|
+
when a listener is registered; otherwise a caller could retain `C`
|
|
1222
|
+
indefinitely after collapse.
|
|
1223
|
+
|
|
658
1224
|
On Android, mounting/unmounting a slot or changing its actual rounded native
|
|
659
1225
|
height MUST request one coalesced RecyclerView measurement/layout repair. The
|
|
660
1226
|
repair runs after the current layout completes and only with a positive viewport
|
|
@@ -665,7 +1231,8 @@ request another repair. This leaves Fabric-owned slot content and row indices
|
|
|
665
1231
|
unchanged; source checks alone do not establish first-layout visibility.
|
|
666
1232
|
|
|
667
1233
|
Fabric mount/unmount ownership remains explicit even when RecyclerView detaches a
|
|
668
|
-
slot holder. The native
|
|
1234
|
+
slot holder. The new native wrapper retains six scrolling roots until Fabric unmount
|
|
1235
|
+
(plus the independent optional fixed top overlay);
|
|
669
1236
|
recycling detaches slot content without disposing its React tree. Unmount removes
|
|
670
1237
|
that exact view. Native list disposal MUST NOT dispatch pending row/slot events.
|
|
671
1238
|
The generated Nitro 0.37 leaf managers require deterministic child-forwarding
|
|
@@ -714,8 +1281,28 @@ applied inset and remains valid while that inset is retained across detach.
|
|
|
714
1281
|
|
|
715
1282
|
## Native rich activity presentation
|
|
716
1283
|
|
|
1284
|
+
Status: Source implemented for `ActivityRow.hideLeading`. Web DOM tests cover
|
|
1285
|
+
both Activity paths, Android production renderer instrumentation covers
|
|
1286
|
+
same-view rebinds, and the iOS NativeListModule arm64 Simulator target builds.
|
|
1287
|
+
iOS runtime acceptance remains pending. Optional `hideLeading: true` suppresses
|
|
1288
|
+
the activity row's main leading visual, its accessibility content, and the entire visual width and
|
|
1289
|
+
following gap. The title, description, status, amounts, fee, and footer actions
|
|
1290
|
+
retain their normal semantics; footer actions align with the title region rather
|
|
1291
|
+
than a reserved visual slot. `leading` remains required in the row model and is
|
|
1292
|
+
still validated. Omitted or `false` preserves the existing layout and image
|
|
1293
|
+
behavior. The field must be a boolean in snapshots and patches; an omitted patch
|
|
1294
|
+
field preserves the current value. A full snapshot or patch changing
|
|
1295
|
+
`hideLeading` rebinds the visual and layout in both legacy and rich Activity
|
|
1296
|
+
presentations, including key reuse. Hidden visuals do not start image requests;
|
|
1297
|
+
rebinding to `false` may load the current image. Recycling and late image
|
|
1298
|
+
callbacks must not restore a hidden visual or leave hidden layout/accessibility
|
|
1299
|
+
state on a later visible row. This contract applies on iOS, Android, and Web.
|
|
1300
|
+
The Android instrumentation uses icon visuals to verify layout, action alignment
|
|
1301
|
+
and amount preservation. Late image completion is guarded by the existing
|
|
1302
|
+
image-slot recycle epoch; a hide-during-image-load device case remains unverified.
|
|
1303
|
+
|
|
717
1304
|
Status: Source implemented; native runtime acceptance pending. Optional `amounts`
|
|
718
|
-
supersedes legacy `primaryAmount`/`secondaryAmount`
|
|
1305
|
+
supersedes legacy `primaryAmount`/`secondaryAmount` in rich Activity rows. It accepts at
|
|
719
1306
|
most 32 keyed lines, each with formatted text, optional leading visual, tone,
|
|
720
1307
|
secondary text and subscript text segments. Segments are caller-formatted and
|
|
721
1308
|
never interpreted as numbers by NativeList. Omission preserves the legacy tree.
|
|
@@ -735,8 +1322,8 @@ visible title/description/status lines, the description measured at the identity
|
|
|
735
1322
|
column's actual width (stacked or table, including the fee column), fee height and the
|
|
736
1323
|
footer-action button height. Android sizes the row to its content. The existing height override contract still applies. RTL follows
|
|
737
1324
|
semantic leading/trailing anchors. Clearing rich fields returns to the legacy
|
|
738
|
-
renderer, and removing amount lines recycles their visual slots. Web
|
|
739
|
-
|
|
1325
|
+
renderer, and removing amount lines recycles their visual slots. Web rich presentation follows the separate Web migration contract below;
|
|
1326
|
+
legacy Activity rows without rich fields retain their existing behavior.
|
|
740
1327
|
|
|
741
1328
|
Acceptance: 1/2/6/32 lines, changed keys/order, paired icons and network overlays,
|
|
742
1329
|
small-number segments in amounts/fiat/fee (ceil(0.6 × parent font size), unchanged
|
|
@@ -821,3 +1408,403 @@ The consumer Gradle project compiles the actual NativeListView and passes all
|
|
|
821
1408
|
seven Kotlin alignment tests; SwiftPM compiles the shipping helper and passes
|
|
822
1409
|
all seven geometry tests. These are local unit/build checks, not a new
|
|
823
1410
|
combined-package application or physical-device acceptance run.
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
## Web parent scrolling and React container slots
|
|
1414
|
+
|
|
1415
|
+
Status: implemented. Focused DOM/wrapper tests and controlled consuming
|
|
1416
|
+
Home/Market Web and Electron checks cover parent ownership, slots, host
|
|
1417
|
+
replacement, hidden tabs, and the migrated touch/reorder interactions. These
|
|
1418
|
+
checks do not establish native runtime or complete performance acceptance.
|
|
1419
|
+
|
|
1420
|
+
`webScrollHost` is Web-only: omitted preserves the existing owned viewport;
|
|
1421
|
+
`null` defers initialization until the parent host is ready; an element opts
|
|
1422
|
+
into that explicit parent as the sole vertical scroll owner. `webStickyInset`
|
|
1423
|
+
is a non-negative finite CSS-pixel inset, default zero. Native ignores both.
|
|
1424
|
+
External horizontal list orientation is rejected. The host is never inferred
|
|
1425
|
+
from class names. Its replacement disposes the old engine and exact observers,
|
|
1426
|
+
listeners, pending commands and anchors before the next host is attached.
|
|
1427
|
+
|
|
1428
|
+
On Web, listHeader/listEmpty/listFooter are React-owned siblings around the
|
|
1429
|
+
engine-owned row host. They remain normal scrolling content, never row models;
|
|
1430
|
+
empty replaces the body only when there are no rows. listEmpty takes precedence
|
|
1431
|
+
over snapshot.emptyState. Grid slots span the list's complete width and reserve
|
|
1432
|
+
their actual intrinsic height. The wrapper owns an internal scroll viewport when
|
|
1433
|
+
slots are used without an external parent; the slot-free internal path retains
|
|
1434
|
+
its existing structure. No ReactDOM dependency or arbitrary row children exist.
|
|
1435
|
+
|
|
1436
|
+
The engine reads list-local width, row-host origin, host viewport intersection,
|
|
1437
|
+
sticky inset and complete wrapper bounds together. Row-index/key scrolling is
|
|
1438
|
+
relative to the data body; scrollToOffset starts at the complete container,
|
|
1439
|
+
including its header, and scrollToEnd includes the final footer. End reached
|
|
1440
|
+
is based on visible data-row indices, before footer content, as existing lists.
|
|
1441
|
+
Hidden/zero-sized or fully offscreen lists emit no end-reached event. Resize,
|
|
1442
|
+
slot and ancestor layout changes remeasure origin. Increasing content before a
|
|
1443
|
+
visible row preserves that row's screen position while the parent is scrolled.
|
|
1444
|
+
No React state updates run on scroll frames. External refresh gestures remain
|
|
1445
|
+
owned by the parent control; only internal mode handles its own pull gesture.
|
|
1446
|
+
|
|
1447
|
+
The explicit external host captures scroll events from itself and descendant
|
|
1448
|
+
scroll containers that are ancestors of the list root. Horizontal pager movement
|
|
1449
|
+
therefore invalidates cached viewport intersection and restores visible rows on
|
|
1450
|
+
the next scheduled frame. Scrolls within unrelated slots or list descendants do
|
|
1451
|
+
not invalidate this list. Destroy removes the same capture listener; no second
|
|
1452
|
+
vertical owner or scroll-position correction is introduced.
|
|
1453
|
+
|
|
1454
|
+
Required acceptance: unchanged slot-free internal behavior; parent content on
|
|
1455
|
+
both sides and sticky inset; dynamic header/footer; empty to populated; grid
|
|
1456
|
+
last row; all imperative alignments; null/ready/replaced host; hidden/visible;
|
|
1457
|
+
unmount cleanup, mouse/touch scroll and drag autoscroll. Type/helper results do
|
|
1458
|
+
not establish rendered product, native or performance acceptance.
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
## Web Market table presentation
|
|
1462
|
+
|
|
1463
|
+
Status: implemented on the 6.7.0-1 source baseline. Package unit/type/build
|
|
1464
|
+
checks and controlled Web/shared consumer backfill checks passed; consuming
|
|
1465
|
+
Home/Market Web and Electron checks cover the migrated presentation. No native
|
|
1466
|
+
runtime or completed performance acceptance is claimed.
|
|
1467
|
+
|
|
1468
|
+
MarketRow.webTable is an optional Web-only serializable presentation. It does
|
|
1469
|
+
not change DataRow's 2..4-column contract or add a row type/native renderer.
|
|
1470
|
+
Native parsers retain row dictionaries/JSON and read known fields; they ignore
|
|
1471
|
+
webTable. Mobile callers continue emitting their existing Market snapshots
|
|
1472
|
+
without this field, preserving their serialized shape. Shared validation checks
|
|
1473
|
+
the complete declared extension on both platforms. No arbitrary React cells,
|
|
1474
|
+
HTML, scripts or product formatting runs inside NativeList.
|
|
1475
|
+
|
|
1476
|
+
The presentation declares 1..12 unique keyed columns and one matching keyed
|
|
1477
|
+
cell per column. Width/minWidth (0..4096 CSS px), flex (0..16), semantic alignment
|
|
1478
|
+
and leading/trailing padding (0..64) are explicit. Presentation cell kinds are
|
|
1479
|
+
favorite, asset, text and sparkline. Favorite has its own action/accessible
|
|
1480
|
+
label/pressed state; asset uses existing leading image primitives, title/badges
|
|
1481
|
+
and a secondary line optionally replaced on row hover/focus; text accepts at
|
|
1482
|
+
most eight caller-formatted primary/secondary text parts with existing small
|
|
1483
|
+
number segments and typography; sparkline accepts at most256 finite numeric
|
|
1484
|
+
samples, explicit size and colors. Unknown fields are rejected. Table rows use
|
|
1485
|
+
an explicit row/container height. Text is single-line with ellipsis; no automatic
|
|
1486
|
+
multiline geometry or business numeric interpretation exists.
|
|
1487
|
+
|
|
1488
|
+
The consumer derives mobile fields and table cells from the same domain row.
|
|
1489
|
+
A quote transaction changes its formatted scalar fields and table cells together.
|
|
1490
|
+
A legacy scalar-only price/change patch on a table row is rejected unless it
|
|
1491
|
+
also supplies its corresponding table presentation, preventing hidden/visible
|
|
1492
|
+
values from diverging. Stable-column/same-image patches update only changed
|
|
1493
|
+
cells, preserving body/avatar identity and avoiding geometry reads/layout.
|
|
1494
|
+
Changes to column structure, image/badge/action identity invalidate anchors and
|
|
1495
|
+
use normal rebind/layout. Header and body take widths from the same consumer
|
|
1496
|
+
column calculation; React retains sorting/header/filter portals.
|
|
1497
|
+
|
|
1498
|
+
The Web registry separately pools market and marketTable presentations while
|
|
1499
|
+
both retain type:market. Row keys, revisions, anchor epochs and event dispatch
|
|
1500
|
+
remain common. Cell actions use data-native-list-action; favorite/copy/badge
|
|
1501
|
+
buttons do not activate the row. Recycling clears actions, title/aria, hover
|
|
1502
|
+
and styles and disposes image leases. The SDK emits copy action data; application
|
|
1503
|
+
copyText/logging remains consumer-owned. Sparklines use bounded numeric drawing,
|
|
1504
|
+
not arbitrary SVG/HTML input.
|
|
1505
|
+
|
|
1506
|
+
Acceptance: every cell kind, dynamic formatting, hover/focus/keyboard actions,
|
|
1507
|
+
row/presentation recycling, strict validation, native dictionary safe-ignore,
|
|
1508
|
+
header/body geometry, 100 quote ticks preserving nodes with zero geometry reads,
|
|
1509
|
+
then a real complex Market table before expanding to all five families.
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
### Web grid fractional column geometry
|
|
1513
|
+
|
|
1514
|
+
Status: implemented; fractional geometry verified in focused DOM/browser and
|
|
1515
|
+
controlled consuming NFT backfill checks.
|
|
1516
|
+
Web grid columns divide
|
|
1517
|
+
available CSS width without flooring each cell. With non-integral division,
|
|
1518
|
+
all column edges and width-derived tile heights retain the fractional value;
|
|
1519
|
+
the final column reaches the content edge without accumulating discarded
|
|
1520
|
+
pixels. Item spacing, horizontal padding and structural full-span rows retain
|
|
1521
|
+
their existing meanings. Native rounding is unchanged. Known app Web consumers
|
|
1522
|
+
are the migrated NFT grid and developer gallery; external SDK consumers are not
|
|
1523
|
+
claimed audited. Required geometry coverage: 2/3/4/6/7 columns, divisible and
|
|
1524
|
+
fractional widths, spacing, padding, row height and structural/footer boundaries.
|
|
1525
|
+
|
|
1526
|
+
Table column width is the CSS base width. When flex is supplied, it grows with
|
|
1527
|
+
`flex-basis:auto`, matching the consumer's existing fixed-base React column;
|
|
1528
|
+
without flex, width remains fixed. Pausing a Web parent-host list retains only
|
|
1529
|
+
its last row-host height in normal flow while releasing row DOM/avatar leases.
|
|
1530
|
+
The wrapper preserves the engine's successfully patched snapshot for host
|
|
1531
|
+
reconstruction; inactive patches merge into one latest snapshot, with no
|
|
1532
|
+
retained batch queue. A rejected imperative snapshot never replaces that state.
|
|
1533
|
+
|
|
1534
|
+
Stock asset cells additionally declare lineGap (0...8, default4), up to three
|
|
1535
|
+
secondaryBadges limited to the existing Market badge key/text/style subset, and up to four hoverImages
|
|
1536
|
+
using ImageSource. Secondary badges precede the company name. Hover logos follow
|
|
1537
|
+
the variant-count text at16 CSS px with a1px page-background ring and4px overlap,
|
|
1538
|
+
matching the consumer's existing finite logo group. Geometry/badge/image changes
|
|
1539
|
+
use normal rebind and release replaced image leases; price-only updates retain
|
|
1540
|
+
these nodes. No native caller emits these Web-only fields.
|
|
1541
|
+
|
|
1542
|
+
Web gallery media follows the shared input precedence: media wins over image,
|
|
1543
|
+
unless an explicit empty/error imageState suppresses media probing. An empty/error
|
|
1544
|
+
gallery without either source retains the gallery fallback surface when
|
|
1545
|
+
imageState explicitly selects that state.
|
|
1546
|
+
|
|
1547
|
+
Web gallery media preserves the consuming NFT card presentation: healthy image
|
|
1548
|
+
and exhausted fallback surfaces have a10px radius, while a healthy video surface
|
|
1549
|
+
has square corners. The image/video frame uses the list page background; only
|
|
1550
|
+
the exhausted fallback surface uses the strong background. Rebinding the same
|
|
1551
|
+
video key retains square corners, and failed-video fallback to an image restores
|
|
1552
|
+
the image radius. This is Web renderer behavior; native media presentation and
|
|
1553
|
+
probe-order contracts are unchanged.
|
|
1554
|
+
|
|
1555
|
+
Gallery pointer activation follows the actual media-card body; extra grid row
|
|
1556
|
+
height reserved between cards does not enlarge its pointer hit area. Keyboard
|
|
1557
|
+
row activation remains supported through the normal row keyboard handler.
|
|
1558
|
+
|
|
1559
|
+
When React listEmpty owns an empty list, content bottom padding follows that
|
|
1560
|
+
empty slot instead of advancing its origin. Header/top padding retain their
|
|
1561
|
+
positions, and populated row/footer padding semantics remain unchanged.
|
|
1562
|
+
|
|
1563
|
+
Text cells may declare partGap (0...8 CSS px, default2) for their caller-formatted
|
|
1564
|
+
inline parts. Favorite cells may declare hoverActionKey; hover/focus emits this
|
|
1565
|
+
anchored help action, while click/Enter/Space emits actionKey. No browser title
|
|
1566
|
+
bubble is added. Pointer leave/focus departure invalidate help anchors. Existing
|
|
1567
|
+
Market badge styles apply to table title pills and their title gap is4px.
|
|
1568
|
+
|
|
1569
|
+
Web table title badges accept only declared key/text/iconName/icon/colors/action/
|
|
1570
|
+
accessibility/style fields. The unused native tone field is not accepted in this
|
|
1571
|
+
presentation. Inline icon sources use image primitives and release on recycling.
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
### Web Market watchlist actions and reorder
|
|
1575
|
+
|
|
1576
|
+
Only a market row with `webTable.draggable:true` and list capability
|
|
1577
|
+
`reorderable:true` joins existing Web reorder. Other Market rows and native
|
|
1578
|
+
reorder semantics are unchanged. `webTable.contextMenuActionKey` declares a
|
|
1579
|
+
bounded row context-menu action; right click is prevented only for such rows,
|
|
1580
|
+
and nested cell actions retain ownership. Context menu and Market long press
|
|
1581
|
+
may emit `RowActionEvent.windowPoint`, finite client/window CSS pixel coordinates.
|
|
1582
|
+
Keyboard-triggered context menus use the row anchor rectangle when pointer
|
|
1583
|
+
coordinates are unavailable. Anchors retain binding epoch validation and are
|
|
1584
|
+
invalidated on scroll/rebind/layout/destroy; consumers close their menu on that
|
|
1585
|
+
invalidation. Compact Market mouse/pen long press cancels after 3px of pointer
|
|
1586
|
+
movement; touch follows actual touchmove as specified below. Table rows retain
|
|
1587
|
+
the 10px pointer threshold.
|
|
1588
|
+
Gallery, wallet and other row reorder eligibility stays unchanged. A gesture
|
|
1589
|
+
that activates row reorder cancels pending Market long press and suppresses its
|
|
1590
|
+
subsequent row navigation.
|
|
1591
|
+
|
|
1592
|
+
Compact Web Market network corners honor the declared ImageSource dimensions
|
|
1593
|
+
(default 16px), with the existing corner padding outside the image. Native image
|
|
1594
|
+
rendering is unchanged. Consumer Web presentation permits its original SVG image
|
|
1595
|
+
sources without changing default native mapper output.
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
### Web ordered image fallback sources
|
|
1599
|
+
|
|
1600
|
+
ImageSource.fallbackUris is an optional Web-only ordered continuation after uri.
|
|
1601
|
+
It retains the complete caller-provided sequence (no truncation or deduplication).
|
|
1602
|
+
Empty or unusable continuation entries are skipped in order until a usable URI
|
|
1603
|
+
is found or the complete sequence is exhausted. Exhaustion reaches the declared
|
|
1604
|
+
visual fallback. Skipped entries consume no retry budget; each usable URI
|
|
1605
|
+
uses its declared retryTimes before proceeding; Market Web callers pass the
|
|
1606
|
+
existing ImageV2 default of one retry per source. This array path does not change
|
|
1607
|
+
legacy fallbackUri switching/retry order when fallbackUris is absent. Native
|
|
1608
|
+
callers do not emit this field. Validation requires an array of serializable
|
|
1609
|
+
strings. Rebind identity includes the complete array; quote-only changes retain
|
|
1610
|
+
the image node, while a changed chain rebinds and cancels previous retries.
|
|
1611
|
+
Recycling/destroy disposes listeners, retry timers and avatar subscriptions.
|
|
1612
|
+
Required coverage: one/two/three+ sources, first two fail/third succeeds, terminal
|
|
1613
|
+
failure, empty continuation, chain replacement/cancel and legacy fallbackUri.
|
|
1614
|
+
|
|
1615
|
+
Enhanced Web History section titles retain the consumer headingXs 0.8px letter
|
|
1616
|
+
spacing; hover uses rowPressedBackground and pointer-active enhanced History
|
|
1617
|
+
uses rowSelectedBackground. Other Activity presentations are unchanged.
|
|
1618
|
+
|
|
1619
|
+
Parent-scroll compact Market rows retain the consumer's pointer states: ordinary
|
|
1620
|
+
token/perp cards use active opacity0.8, stock cards active selected background.
|
|
1621
|
+
Consumers supply the page background as hover color. New table image fallbacks
|
|
1622
|
+
use a28px icon in the40px image frame; compact32px frames retain24px icons.
|
|
1623
|
+
These styles do not change legacy internally scrolling Market rows.
|
|
1624
|
+
|
|
1625
|
+
The optional theme.imageFallbackBackground is consumed by Web only when a
|
|
1626
|
+
declared visual fallback is displayed; unset leaves the existing transparent
|
|
1627
|
+
fallback over its original frame. It never changes healthy image backgrounds,
|
|
1628
|
+
Stock tags or hover logo slots. Native callers do not emit it. HoverImages may
|
|
1629
|
+
contain explicit null entries to preserve the original16px empty round logo
|
|
1630
|
+
slots, including their ring/overlap/order; non-null entries remain ImageSource
|
|
1631
|
+
and the existing four-slot limit stays unchanged.
|
|
1632
|
+
|
|
1633
|
+
Compact Market subtitlePrefix preserves intrinsic text width with flex-shrink
|
|
1634
|
+
and its existing maxWidth cap; it does not grow short names to that cap.
|
|
1635
|
+
Its optional Web-only hoverActionKey requests anchored help only when the
|
|
1636
|
+
actual prefix text is truncated (scrollWidth > clientWidth + 1). The consumer
|
|
1637
|
+
owns the existing tooltip content/presentation. Pointer/focus departure, scroll,
|
|
1638
|
+
rebind and destroy invalidate its existing anchor. Text, cap or action identity
|
|
1639
|
+
changes use normal rebind; unchanged quote updates preserve that node/focus.
|
|
1640
|
+
Native callers do not emit this field and native renderers ignore it.
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
### Host-provided Web fonts
|
|
1644
|
+
|
|
1645
|
+
configureNativeListFonts and NativeListFontFamilies retain the source baseline
|
|
1646
|
+
public API and validation. In the historical controlled 3.0.177 consumer
|
|
1647
|
+
backfill, only Web was backported:
|
|
1648
|
+
empty configuration uses system families; each supplied regular/medium/semibold/
|
|
1649
|
+
bold name belongs to fonts already loaded by the UI host. Hosts load fonts
|
|
1650
|
+
before configuring the mapping; the historical consumer supplied Roobert for
|
|
1651
|
+
all four weights. The SDK registers no fonts. That controlled backfill retained
|
|
1652
|
+
the 3.0.177 native wrapper and native platform font behavior.
|
|
1653
|
+
Web roots, section rails, reorder previews and all finite row text presentations
|
|
1654
|
+
select the family matching their existing numeric weight; layout and numeric
|
|
1655
|
+
weights are unchanged. A live configuration change invalidates active anchors,
|
|
1656
|
+
cancels reorder, clears measurement caches and remeasures; the same configuration
|
|
1657
|
+
is a no-op. A paused/null host initializes with the latest configuration.
|
|
1658
|
+
The 6.7.0-1 source integration preserves its existing native font policy/API.
|
|
1659
|
+
|
|
1660
|
+
Market Web badge text uses tabular numeric glyphs, matching the consuming
|
|
1661
|
+
Market text style for leverage/provider labels. This rule is limited to the
|
|
1662
|
+
Market badge renderer class; generic Activity/time badge typography is unchanged.
|
|
1663
|
+
|
|
1664
|
+
React prop snapshots commit in the layout phase alongside React-owned slots.
|
|
1665
|
+
For an external host with cached viewport dimensions, recomputation calculates
|
|
1666
|
+
and expands the normal-flow row extent before geometry reads, avoiding an append
|
|
1667
|
+
plus footer-removal intermediate clamp. The calculated layout is reused when
|
|
1668
|
+
viewport dimensions are unchanged; changed dimensions receive a fresh layout.
|
|
1669
|
+
Final measured layout owns legitimate shrinking; no scroll restoration offset
|
|
1670
|
+
or retained minimum-height state is added. First creation without cached geometry
|
|
1671
|
+
and imperative snapshot acceptance retain their existing contracts.
|
|
1672
|
+
|
|
1673
|
+
Web gallery media fit consumes the existing ImageSource.contentFit values:
|
|
1674
|
+
cover/contain/fill map directly to CSS object-fit and center maps to none.
|
|
1675
|
+
When omitted, a video uses contain and an image uses cover, preserving the
|
|
1676
|
+
consuming Web NFT defaults. Failed-video transitions resolve the image default
|
|
1677
|
+
again rather than retaining video fit. Native fit/probe contracts are unchanged.
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
### Source integration status (2026-10-16)
|
|
1681
|
+
|
|
1682
|
+
The Web migration was integrated onto source 655789b01 (6.7.0-1), preserving
|
|
1683
|
+
its native font resolver, iOS 26 overlay, package metadata and native implementation.
|
|
1684
|
+
The PR rebases that source onto main dd0d77af3, whose independent desktop Windows
|
|
1685
|
+
release changes do not overlap this package. The consuming PR targets 3.0.180;
|
|
1686
|
+
its reproducible patch and dependency verification are separate from the
|
|
1687
|
+
historical 3.0.177 backfill evidence below.
|
|
1688
|
+
The prior 3.0.178 source integration was an intermediate validated checkpoint.
|
|
1689
|
+
Controlled Web/shared consumer backfill was verified against 3.0.177 while
|
|
1690
|
+
retaining that version's native wrapper, binary boundary and native type
|
|
1691
|
+
declarations. This historical backfill is separate from consumer dependency
|
|
1692
|
+
updates.
|
|
1693
|
+
Merged package tests/typecheck/build and controlled consumer backfill smoke
|
|
1694
|
+
passed. The final Web-focused suite passed 89 checks; broader package checks
|
|
1695
|
+
and consuming Web/Electron presentation checks are recorded separately. Pending
|
|
1696
|
+
remote-row display and the real business hook/controller navigation contract
|
|
1697
|
+
were verified with explicit auxiliary fixtures/stub boundaries; no real eligible
|
|
1698
|
+
account SendReplaceTx confirmation page, signing, or broadcast was exercised.
|
|
1699
|
+
The consumer backfill does not establish native runtime acceptance of this
|
|
1700
|
+
merged package. Final performance sampling was stopped at the user's request
|
|
1701
|
+
and is partial evidence, not a completed performance signoff.
|
|
1702
|
+
|
|
1703
|
+
### Desktop/Web Market asset parity
|
|
1704
|
+
|
|
1705
|
+
The Web table asset renderer consumes the existing leading visual backgroundColor
|
|
1706
|
+
and borderColor descriptors without changing the schema or native primitives.
|
|
1707
|
+
Its token frame remains40 CSS px including an optional1px solid border; the main
|
|
1708
|
+
bitmap fills the content box (38px with border,40px without). Overlay visuals
|
|
1709
|
+
remain outside that frame and fallback surfaces retain their existing color/icon
|
|
1710
|
+
contract. Theme/leading changes rebind the visual and clear old border styles.
|
|
1711
|
+
The address-copy revealed line uses a2px text-to-action gap, while Stock hover
|
|
1712
|
+
logo groups retain their4px gap and overlap geometry. No other text-part gaps
|
|
1713
|
+
change. Regression acceptance includes Dark/Light recycled visuals, preserved
|
|
1714
|
+
network overlays, independent copy actions and Stock hover group spacing.
|
|
1715
|
+
|
|
1716
|
+
Gallery collection subtitles retain an 8px trailing text inset whether or not
|
|
1717
|
+
a network thumbnail is present. The subtitle uses border-box sizing and its row
|
|
1718
|
+
has no extra gap, preserving the same 8px separation with a thumbnail and the
|
|
1719
|
+
legacy truncation width without one. Legacy MediaTile/native rendering is
|
|
1720
|
+
unchanged.
|
|
1721
|
+
|
|
1722
|
+
Compact Market touch long-press cancellation follows actual `touchmove`
|
|
1723
|
+
events and valid touch coordinates beyond the existing 3px stationary limit.
|
|
1724
|
+
Pointer-only micro-movement within browser tap tolerance does not prematurely
|
|
1725
|
+
cancel a touch long-press. Pointer cancellation and real ancestor scrolling
|
|
1726
|
+
still cancel it; mouse, pen and table pointer thresholds remain unchanged.
|
|
1727
|
+
The passive touch listener is removed when the engine is destroyed.
|
|
1728
|
+
|
|
1729
|
+
Table secondary-line pointer hover is enabled only when the primary input
|
|
1730
|
+
reports `(hover: hover)`, matching the consuming Web row's hover media rule.
|
|
1731
|
+
Touch capability alone does not disable hover. Existing focus-within reveal
|
|
1732
|
+
remains available to keyboard navigation; no input-modality configuration or
|
|
1733
|
+
native behavior is introduced.
|
|
1734
|
+
|
|
1735
|
+
The declared table asset background remains on its outer token frame during
|
|
1736
|
+
source loading, matching the consumer's Token wrapper. The existing image
|
|
1737
|
+
placeholder/retry path and fallback span are unchanged; only the fallback span
|
|
1738
|
+
uses the fallback background. A solid frame border does not move external
|
|
1739
|
+
overlays: their primitive-generated edge positions are shifted outward by the
|
|
1740
|
+
1px border once per new visual, preserving the caller's unbordered outer-anchor
|
|
1741
|
+
geometry. No shift is accumulated during same-visual quote patches.
|
|
1742
|
+
|
|
1743
|
+
Table secondary-line clipping uses `overflow: clip` so keyboard focus cannot
|
|
1744
|
+
scroll the two-line reveal viewport in addition to its existing transform.
|
|
1745
|
+
Focus-within and primary-hover reveal behavior remain unchanged; no scroll
|
|
1746
|
+
position writes or global overflow policy are introduced.
|
|
1747
|
+
|
|
1748
|
+
Web history section headers consume the existing titleLoading flag with the
|
|
1749
|
+
original20px spinner,8px title gap and heading casing. The declared32/52px
|
|
1750
|
+
section slots remain unchanged; the pending title content retains its original
|
|
1751
|
+
4px intrinsic overflow. Explicit60px stacked history content fills its stated
|
|
1752
|
+
row height; ordinary history rows retain their existing trailing spacing.
|
|
1753
|
+
|
|
1754
|
+
Web enhanced History badges preserve the existing small Badge geometry (8px horizontal padding, 4px radius, medium text). Warning backgrounds consume the declared cautionBackground theme value with the prior fallback when absent. Native rendering is unchanged.
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
### Web external parent-scroll commands
|
|
1758
|
+
|
|
1759
|
+
When a caller supplies webScrollHost, scroll commands use the DOM scrollTo method from that element's document realm. React Native Web may decorate a NativeScroller node with a differently shaped React Native scrollTo method; the DOM host contract must not invoke that method with DOM options. The native/ref APIs and internally owned NativeList viewport keep their existing behavior.
|
|
1760
|
+
|
|
1761
|
+
Existing Pager command-accepted/cancel notifications use the actual external scroll owner when supplied, otherwise the internally owned viewport. A list command cancels queued Pager restoration/top work; a Pager top command cancels a pending list command and stops motion on that same owner. Listener target guards and destruction removal must match. No new public method, event name or native behavior is introduced.
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
### Web Pager inset notifications
|
|
1765
|
+
|
|
1766
|
+
An externally hosted list listens for the existing Pager inset notification on
|
|
1767
|
+
its actual scroll owner, matching the notification target and removing the same
|
|
1768
|
+
listener on destroy. It measures the new content origin before Pager restores
|
|
1769
|
+
its C+B offset; a later ResizeObserver must not add that inset a second time.
|
|
1770
|
+
Ordinary subsequent slot-height changes retain the existing content-anchor
|
|
1771
|
+
compensation. Standalone lists continue listening on their own viewport.
|
|
1772
|
+
|
|
1773
|
+
### Web History retained visual binding
|
|
1774
|
+
|
|
1775
|
+
Implemented contract: same-source History visuals retain their image, placeholder
|
|
1776
|
+
and corner nodes while image styles or table/stacked presentation change. Every
|
|
1777
|
+
bind restores the factory geometry and applies the current image style and
|
|
1778
|
+
presentation, including clearing omitted radius/contentFit/shape overrides.
|
|
1779
|
+
Presentation wrapper changes move the existing nodes and preserve asynchronous
|
|
1780
|
+
loading/error visibility; they do not recreate or reload an unchanged source.
|
|
1781
|
+
Changing the source set retains the existing rebuild/disposal behavior.
|
|
1782
|
+
|
|
1783
|
+
## Opt-in structural snapshot transition (Home assets)
|
|
1784
|
+
|
|
1785
|
+
`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.
|
|
1786
|
+
|
|
1787
|
+
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.
|
|
1788
|
+
|
|
1789
|
+
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.
|
|
1790
|
+
|
|
1791
|
+
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.
|
|
1792
|
+
|
|
1793
|
+
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.
|
|
1794
|
+
|
|
1795
|
+
`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.
|
|
1796
|
+
|
|
1797
|
+
`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.
|
|
1798
|
+
|
|
1799
|
+
`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.
|
|
1800
|
+
|
|
1801
|
+
`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.
|
|
1802
|
+
|
|
1803
|
+
### Web slot-list scroll ownership
|
|
1804
|
+
|
|
1805
|
+
When container slots create an owned Web scroll host without `webScrollHost`,
|
|
1806
|
+
that actual host exposes the existing `data-collapsible-pager-scroll` marker.
|
|
1807
|
+
A containing Web pager therefore applies insets, collapse/top commands and route
|
|
1808
|
+
restoration to the owned host, with slot content as its padding target. The
|
|
1809
|
+
ordinary no-slot viewport and explicit external-host paths keep their existing
|
|
1810
|
+
ownership; no Pager dependency or new API is required.
|