@onekeyfe/react-native-native-list 6.7.0-alpha.359 → 6.7.0-alpha.363
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 +0 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +7 -240
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +4 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +3 -6
- package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +0 -12
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +7 -87
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +1 -135
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +14 -43
- package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +0 -25
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +2 -17
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +0 -22
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +0 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +0 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +2 -3
- package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +0 -69
- package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +1 -55
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +29 -587
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +0 -1
- package/docs/ROW_TEMPLATES.md +9 -60
- package/docs/SPEC.md +15 -317
- package/docs/STYLE_SPEC.md +0 -6
- package/ios/HybridNativeList.swift +0 -10
- package/ios/NativeListAccessoryStack.swift +37 -220
- package/ios/NativeListActivityDetailsView.swift +8 -18
- package/ios/NativeListActivityRenderer.swift +2 -8
- package/ios/NativeListDataRowRenderer.swift +16 -128
- package/ios/NativeListDesignAssets.swift +0 -3
- package/ios/NativeListIdentityRenderer.swift +5 -123
- package/ios/NativeListLeadingVisual.swift +14 -49
- package/ios/NativeListMessageRenderer.swift +1 -34
- package/ios/NativeListModels.swift +2 -16
- package/ios/NativeListRendererRegistry.swift +0 -1
- package/ios/NativeListResolvedText.swift +1 -2
- package/ios/NativeListRowHost.swift +0 -14
- package/ios/NativeListSectionHeaderRenderer.swift +0 -88
- package/ios/RNCNativeListView.swift +29 -335
- package/ios/tests/NativeListActivityPresentationTests.swift +0 -56
- package/ios/tests/NativeListLifecycleTests.swift +3 -1283
- package/lib/module/NativeList.js +21 -39
- package/lib/module/NativeList.web.js +4 -51
- package/lib/module/models.js +0 -1
- package/lib/module/selection.js +1 -1
- package/lib/module/validation.js +8 -320
- package/lib/module/web/NativeListWebEngine.js +18 -373
- package/lib/module/web/templates/ActivityRowRenderer.js +7 -8
- package/lib/module/web/templates/DataRowRenderer.js +5 -40
- package/lib/module/web/templates/IdentityRowRenderer.js +4 -90
- package/lib/module/web/templates/MessageRowRenderer.js +2 -18
- package/lib/module/web/templates/RowContainerStyle.js +0 -1
- package/lib/module/web/templates/RowRendererRegistry.js +0 -3
- package/lib/module/web/templates/SectionHeaderRowRenderer.js +2 -36
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
- package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
- package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
- package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
- package/lib/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
- package/lib/typescript/src/NativeList.nitro.d.ts +0 -1
- package/lib/typescript/src/NativeList.types.d.ts +0 -8
- package/lib/typescript/src/models.d.ts +9 -101
- package/lib/typescript/src/validation.d.ts +0 -10
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +0 -26
- package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
- package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +3 -9
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
- package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
- package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
- package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
- package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
- package/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
- package/package.json +3 -3
- package/react-native-native-list.podspec +0 -1
- package/src/NativeList.nitro.ts +0 -1
- package/src/NativeList.tsx +24 -72
- package/src/NativeList.types.ts +0 -9
- package/src/NativeList.web.tsx +8 -72
- package/src/models.ts +3 -113
- package/src/selection.ts +0 -1
- package/src/validation.ts +6 -721
- package/src/web/NativeListWebEngine.ts +19 -568
- package/src/web/templates/ActivityRowRenderer.ts +6 -14
- package/src/web/templates/DataRowRenderer.ts +20 -93
- package/src/web/templates/IdentityRowRenderer.ts +5 -150
- package/src/web/templates/MessageRowRenderer.ts +7 -23
- package/src/web/templates/RowContainerStyle.ts +0 -2
- package/src/web/templates/RowRendererRegistry.ts +1 -11
- package/src/web/templates/SectionHeaderRowRenderer.ts +4 -47
- package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +0 -102
- package/ios/NativeListButtonGroupRenderer.swift +0 -89
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +0 -4
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +0 -3
- package/lib/module/web/templates/ButtonGroupRowRenderer.js +0 -47
- package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +0 -14
- package/src/web/templates/ButtonGroupRowRenderer.ts +0 -58
|
@@ -26,7 +26,6 @@ class NativeListPressPolicyTest {
|
|
|
26
26
|
Case(type = "system", variant = "end", expected = false),
|
|
27
27
|
Case(type = "system", variant = "spacer", expected = false),
|
|
28
28
|
Case(type = "walletGroup", expected = false),
|
|
29
|
-
Case(type = "buttonGroup", expected = false),
|
|
30
29
|
)
|
|
31
30
|
|
|
32
31
|
assertEquals(
|
package/docs/ROW_TEMPLATES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# NativeList row template catalog
|
|
2
2
|
|
|
3
|
-
This catalog defines the **
|
|
3
|
+
This catalog defines the **12 types in `RowModel`** on the consolidated spec
|
|
4
4
|
branch. Each template owns a fixed internal structure. Its `style` customizes
|
|
5
5
|
named fields inside that structure; it does not define a new layout or enable a
|
|
6
6
|
list feature. See [STYLE_SPEC.md](STYLE_SPEC.md) for tokens, numeric bounds,
|
|
@@ -34,7 +34,6 @@ template the owner of sections or the indexed bar.
|
|
|
34
34
|
| [metricCard](#metriccard) | KPI or portfolio summary | Label/value card or named composite metrics arrangement |
|
|
35
35
|
| [sectionHeader](#sectionheader) | Structural section heading | Header text + optional summary value/controls |
|
|
36
36
|
| [action](#action) | A row-level command | Label + optional icon/value/controls |
|
|
37
|
-
| [buttonGroup](#buttongroup) | DeFi position actions | One or more equal-width info-outline buttons |
|
|
38
37
|
| [system](#system) | Loading, retry, warning, empty/end or spacer | Variant-specific bounded status content |
|
|
39
38
|
|
|
40
39
|
The style roles below form the shared configurable contract on Web, iOS and
|
|
@@ -54,19 +53,7 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
54
53
|
|
|
55
54
|
- **Use:** an identifiable asset, account, wallet, network or setting.
|
|
56
55
|
- **Required data:** `leading`, `title`; optional `subtitle`, `tertiary`, `badges`,
|
|
57
|
-
`trailing`, `leadingAction`,
|
|
58
|
-
- **Static title icon:** optional 20-point icon immediately after the title with
|
|
59
|
-
a 4-point gap. It has no click action; an optional Web `hoverActionKey`
|
|
60
|
-
emits an icon-anchored tooltip request on hover or touch. A trailing `button` is the fixed small
|
|
61
|
-
secondary text action and uses the normal accessory event slot.
|
|
62
|
-
- **Second Web help icon:** `secondaryTitleIcon` uses the same descriptor after
|
|
63
|
-
`titleIcon`; each glyph has its own hover/touch anchor. Native ignores it.
|
|
64
|
-
- **Decorative refresh:** a trailing `RefreshCcwOutline` without `actionKey`
|
|
65
|
-
occupies a 16-point frame and leaves row press with the row.
|
|
66
|
-
- **Web neutral badge:** generic Identity rows with an explicit `tone: 'neutral'`
|
|
67
|
-
use a 20-pixel pill with 12/16 medium text, 8-pixel horizontal and 2-pixel
|
|
68
|
-
vertical padding, and the strong/subdued theme colors. Omitted tone and
|
|
69
|
-
selector presentations keep their existing badge defaults.
|
|
56
|
+
`trailing`, `leadingAction`, match ranges and structured subtitle segments.
|
|
70
57
|
- **Variants:** default horizontal row; `accountSelector` and `networkSelector`
|
|
71
58
|
preserve selector control geometry; `walletSidebar` uses a compact, centered
|
|
72
59
|
wallet presentation. A variant is explicit model data, never inferred from font size.
|
|
@@ -76,25 +63,11 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
76
63
|
and 12 for other templates (Web 0).
|
|
77
64
|
- **Platform default:** without `subtitleLines` or `style.subtitle.lines`, the
|
|
78
65
|
subtitle shows one line on iOS and Web but two on Android (STYLE_SPEC §6.2).
|
|
79
|
-
- **Recipient opt-in:** `subtitleLines: 0` allows the whole subtitle to wrap;
|
|
80
|
-
`contentHeight: 'auto'` sizes the identity row to that content. Both are
|
|
81
|
-
explicit so existing selector rows retain their geometry. Optional
|
|
82
|
-
`longPressActionKey` emits a row action and suppresses the tap for that gesture.
|
|
83
66
|
- **Text style roles:** `title`, `subtitle`, `tertiary`, `badge`, `value`,
|
|
84
67
|
`valueSecondary`. The last two refer to value accessories in `trailing`; `badge`
|
|
85
68
|
refers to badge text. `value`/`valueSecondary` select the first/second value
|
|
86
69
|
accessory, ignoring intervening controls. A `valuePair` is one accessory, so
|
|
87
|
-
its style applies to both text runs.
|
|
88
|
-
`secondaryTextSegments` use the existing subscript run shape per line; missing
|
|
89
|
-
or empty arrays retain the required fallback string. They are semantic roles,
|
|
90
|
-
not extra top-level data fields.
|
|
91
|
-
- **Primary value weight:** optional `valuePair.primaryFontWeight: 'medium'`
|
|
92
|
-
styles only the first line. The second line remains regular; omission keeps
|
|
93
|
-
each platform's existing value-pair typography.
|
|
94
|
-
- **Primary value help:** optional `primaryHelp` on a `valuePair` targets only
|
|
95
|
-
its first line. `presentation` explicitly selects Web Tooltip or cross-platform
|
|
96
|
-
Popover behavior; native Tooltip has no press target. Optional dashed underline
|
|
97
|
-
is visual only. Missing help retains the original passive value pair.
|
|
70
|
+
its style applies to both text runs. They are semantic roles, not extra top-level data fields.
|
|
98
71
|
- **Layout boundary:** reserve visual and accessory slots; text compresses within
|
|
99
72
|
its own column. Styling cannot move a checkbox/menu into the title column,
|
|
100
73
|
reorder accessories or convert a horizontal row into the sidebar presentation.
|
|
@@ -159,7 +132,7 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
159
132
|

|
|
160
133
|
|
|
161
134
|
- **Use:** a transaction/activity record with amounts and optional commands.
|
|
162
|
-
- **Required data:** `leading`, `title`; optional `
|
|
135
|
+
- **Required data:** `leading`, `title`; optional `secondaryLeading`,
|
|
163
136
|
`description`, `status`, `primaryAmount`, `secondaryAmount`, `footerActions`.
|
|
164
137
|
At most three footer actions are accepted, each with a unique key.
|
|
165
138
|
- **Text style roles:** `title`, `description`, `status`, `primaryAmount`,
|
|
@@ -167,10 +140,6 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
167
140
|
- **Layout boundary:** amounts remain in the amount column, description stays
|
|
168
141
|
in its text region, actions stay in the row's action area. Adding actions is a
|
|
169
142
|
model/height choice, not a typography trick.
|
|
170
|
-
- **Leading visibility:** `hideLeading: true` removes the main visual, its
|
|
171
|
-
accessibility content and its width plus gap. The title and footer actions
|
|
172
|
-
start at the row content inset. The required `leading` model remains valid;
|
|
173
|
-
omitted or `false` retains the existing visual and spacing.
|
|
174
143
|
- **Common-capability boundary:** `footerActions` are inside this activity row.
|
|
175
144
|
The list footer is independently configured through the container.
|
|
176
145
|
|
|
@@ -180,8 +149,8 @@ separately from source implementation in STYLE_SPEC §9.
|
|
|
180
149
|
most four keyed badges. `descriptionActionKey` emits a description action.
|
|
181
150
|
`presentation: 'table'` allocates equal identity/amount columns and an
|
|
182
151
|
optional fee column; `stacked` keeps right-aligned amounts beside identity.
|
|
183
|
-
`fee.hidden` reserves its column while hiding its content.
|
|
184
|
-
|
|
152
|
+
`fee.hidden` reserves its column while hiding its content. These native
|
|
153
|
+
additions do not change the Web renderer.
|
|
185
154
|
|
|
186
155
|
```text
|
|
187
156
|
stacked (phone) table (wide)
|
|
@@ -200,14 +169,11 @@ stacked (phone) table (wide)
|
|
|
200
169
|
|
|
201
170
|
- **Use:** a notification or message preview.
|
|
202
171
|
- **Required data:** `title`, `body`, `time`; optional `leading`, `thumbnail`,
|
|
203
|
-
`unread`. `bodyLines` is the legacy fallback for one, two or three body lines
|
|
204
|
-
zero opts into unlimited body wrapping and natural height.
|
|
172
|
+
`unread`. `bodyLines` is the legacy fallback for one, two or three body lines.
|
|
205
173
|
- **Text style roles:** `title`, `body`, `time`. `style.body.lines` accepts one, two or three and takes precedence over `bodyLines`.
|
|
206
174
|
- **Layout boundary:** time and thumbnail keep their allocated regions; body
|
|
207
|
-
text wraps/truncates within the message area.
|
|
208
|
-
|
|
209
|
-
`inlineWarning` presentation draws requested top/bottom container borders
|
|
210
|
-
across the row width without side borders or rounded corners.
|
|
175
|
+
text wraps/truncates within the message area. Styling cannot displace the
|
|
176
|
+
timestamp, grow over the next row, or turn the preview into unbounded content.
|
|
211
177
|
- **Current divergence:** leading-image size and body typography differ across
|
|
212
178
|
platforms. Larger line boxes need explicit height and visual verification.
|
|
213
179
|
|
|
@@ -343,11 +309,6 @@ chrome and emits no row action. Omission preserves existing rendering.
|
|
|
343
309
|
icons/actions, checkbox, `sticky`, `indexTitle`. Variants: default, `summary`,
|
|
344
310
|
`gallery`, `history`; `presentation: 'networkSelector'` is also available.
|
|
345
311
|
- **Text style roles:** `title`, `subtitle`, `value`.
|
|
346
|
-
- **DeFi position fields:** optional `leadingBadge` precedes the title.
|
|
347
|
-
`style.valuePlacement: 'afterTitle'` keeps a short value beside the title;
|
|
348
|
-
`style.titleDecoration` explicitly selects plain or dashed title text.
|
|
349
|
-
`valueHelp` uses the same explicit presentation and underline contract as
|
|
350
|
-
`valuePair.primaryHelp`. Omission keeps the original heading behavior.
|
|
351
312
|
- **Layout boundary:** preserve heading/value/control regions. `summary` does
|
|
352
313
|
not accept a checkbox and is not sticky. Pinning and index-entry generation are
|
|
353
314
|
container behavior, not a text-style property.
|
|
@@ -372,18 +333,6 @@ chrome and emits no row action. Omission preserves existing rendering.
|
|
|
372
333
|
`rows`, `fixedFooter` or `emptyState`. The container decides placement and
|
|
373
334
|
visibility; the action template only renders its content.
|
|
374
335
|
|
|
375
|
-
## buttonGroup
|
|
376
|
-
|
|
377
|
-
- **Use:** the full-width DeFi position actions within the list's data stream.
|
|
378
|
-
- **Required data:** a nonempty `buttons` array. Every entry has a unique
|
|
379
|
-
`key`, `label` and `actionKey`; optional `disabled`, `loading`, `testID` and
|
|
380
|
-
`accessibilityLabel` retain one control per entry.
|
|
381
|
-
- **Fixed structure:** equal-width medium info-outline buttons with 10-point
|
|
382
|
-
gaps, 12-point vertical button padding and 12-point radius. Loading retains
|
|
383
|
-
width and disables only its button. Row disable blocks all actions.
|
|
384
|
-
- **Action boundary:** each button emits its own action and anchor slot; the row
|
|
385
|
-
has no independent press action. The SDK never resolves DeFi permissions.
|
|
386
|
-
|
|
387
336
|
## system
|
|
388
337
|
|
|
389
338
|

|
package/docs/SPEC.md
CHANGED
|
@@ -26,229 +26,6 @@ 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
|
-
long press on an enabled row emits one `onRowAction` with its current row key,
|
|
48
|
-
action key, `row` anchor source and window press point. It suppresses the
|
|
49
|
-
ordinary press for that gesture. Motion cancellation, row rebind/recycle,
|
|
50
|
-
disabled state and disposal cancel pending recognition. Trailing accessory
|
|
51
|
-
actions remain independent. Omission preserves existing tap behavior.
|
|
52
|
-
|
|
53
|
-
A `message` row may opt into `bodyLines: 0`; its complete body wraps within its
|
|
54
|
-
existing text area and determines natural height unless an explicit row or
|
|
55
|
-
container height overrides it. Existing omitted and one-to-three-line behavior
|
|
56
|
-
stays unchanged. `style.body.lines`, when supplied, retains its existing
|
|
57
|
-
one-to-three-line precedence. `presentation: 'inlineWarning'` changes only the
|
|
58
|
-
message container border: requested `style.container.borderWidth` and
|
|
59
|
-
`borderColor` draw top and bottom edges at full row width, with no side edges or
|
|
60
|
-
corner radius. Omitted border width draws no border; omitted presentation keeps
|
|
61
|
-
the existing all-edge container style. The caller supplies warning text, icon,
|
|
62
|
-
font, padding, colors and list-width layout; the SDK does not infer risk status.
|
|
63
|
-
All optional fields must clear on rebind/recycle and patch replacement. The
|
|
64
|
-
existing 4096-code-unit body limit applies.
|
|
65
|
-
|
|
66
|
-
An image-backed `LeadingVisual` may set `fallbackTextColor` to a hex
|
|
67
|
-
`#RRGGBB` or `#RRGGBBAA` color. It colors only the visible initials/fallback
|
|
68
|
-
text, including a failed image's fallback state; omission retains the existing
|
|
69
|
-
platform default. It does not alter the visual background, bitmap, icon, or
|
|
70
|
-
overlay colors. Validation rejects malformed colors. Rebind and recycle must
|
|
71
|
-
clear the previous text color so dark/light theme updates cannot leak between
|
|
72
|
-
rows. Consumers own the semantic theme choice (for example inverse text over
|
|
73
|
-
inverse background).
|
|
74
|
-
|
|
75
|
-
iOS measures opt-in identity and unlimited message content before collection
|
|
76
|
-
placement. Android binds text with unlimited native lines and allows its row
|
|
77
|
-
view to measure that content. Web uses wrapping DOM text and measured row
|
|
78
|
-
height. All platforms retain existing explicit-height precedence and existing
|
|
79
|
-
default rows. Focused source tests must cover validation, patching, old-to-new
|
|
80
|
-
reuse, action isolation and height changing with width/text; real iOS, Android
|
|
81
|
-
and Web acceptance must cover narrow addresses, dynamic type/fonts, long press
|
|
82
|
-
versus tap, keyboard interaction, and the horizontal warning border. Source or
|
|
83
|
-
build success alone is not runtime evidence.
|
|
84
|
-
|
|
85
|
-
### DeFi position row controls
|
|
86
|
-
|
|
87
|
-
Status: implemented in local source, unreleased. Focused validation and Web
|
|
88
|
-
DOM tests pass; native source compilation passes, while target-app compilation
|
|
89
|
-
and device acceptance remain separate gates.
|
|
90
|
-
`buttonGroup` is a vertical data row with `RowBase` identity and a nonempty
|
|
91
|
-
`buttons` array. Each button has a unique nonempty `key`, localized nonempty
|
|
92
|
-
`label`, nonempty `actionKey`, and optional `disabled`, `loading`, `testID` and
|
|
93
|
-
`accessibilityLabel`. It renders the existing DeFi medium block info-outline
|
|
94
|
-
controls: equal-width buttons, 10-point gap, 12-point vertical padding and
|
|
95
|
-
12-point radius. Every declared action remains visible; the renderer must not
|
|
96
|
-
truncate the array. Loading retains the button's width, disables that button,
|
|
97
|
-
and displays an activity indicator. A disabled row disables every button.
|
|
98
|
-
Activation emits one existing row action with the button's `actionKey` and
|
|
99
|
-
its own source/slot, without activating the row. A full rebind or recycle
|
|
100
|
-
removes prior buttons, loading indicators, labels, test IDs and handlers.
|
|
101
|
-
The SDK does not infer which DeFi actions are allowed or perform transactions.
|
|
102
|
-
|
|
103
|
-
`sectionHeader` may include `leadingBadge` (the existing badge shape),
|
|
104
|
-
with an optional `NativeListTheme.successBackground` used only for its
|
|
105
|
-
`success` tone. Omitting that theme color keeps the old badge default.
|
|
106
|
-
`style.valuePlacement: 'afterTitle'`, and
|
|
107
|
-
`style.titleDecoration: 'none' | 'dashed'`. Missing fields retain the current
|
|
108
|
-
heading layout and decoration. `valueHelp` and a `valuePair` trailing
|
|
109
|
-
accessory's `primaryHelp` share
|
|
110
|
-
`{ actionKey, presentation: 'tooltip' | 'popover', underline?: 'dashed' }`.
|
|
111
|
-
Presentation and underline are independent: the former selects trigger
|
|
112
|
-
semantics, the latter only draws a dashed underline. `tooltip` on Web opens on
|
|
113
|
-
mouse/pen entry and eligible focus, closes on departure/blur, and mouse/pen
|
|
114
|
-
press closes it until departure; touch toggles. It has no native touch target
|
|
115
|
-
or event. `popover` on all platforms toggles only on click/press and does not
|
|
116
|
-
open from hover. These help targets do not activate their row. Presentation
|
|
117
|
-
change, departure, scroll, rebind, replacement by another anchor and disposal
|
|
118
|
-
invalidate the old anchor.
|
|
119
|
-
The consuming app owns Tooltip/Popover content. Missing help fields keep
|
|
120
|
-
the original noninteractive text. All additions use snapshot JSON and do not
|
|
121
|
-
change the Nitro ABI.
|
|
122
|
-
|
|
123
|
-
`valuePair.primaryFontWeight?: 'medium'` applies only to the primary text
|
|
124
|
-
line. The secondary line keeps its existing regular weight. Omitting the field
|
|
125
|
-
preserves each platform's existing value-pair typography; full rebind and
|
|
126
|
-
recycle remove any previous primary-only override. The field travels in the
|
|
127
|
-
existing snapshot JSON and does not change the Nitro ABI.
|
|
128
|
-
|
|
129
|
-
Validation rejects empty or duplicate button keys, empty labels/action keys,
|
|
130
|
-
invalid booleans and help descriptors, and unknown style fields. The list's
|
|
131
|
-
existing row, text and snapshot bounds apply; no
|
|
132
|
-
silent action truncation is permitted. Conformance includes Web DOM events,
|
|
133
|
-
iOS/Android renderer bind/reuse, TypeScript validation, native builds, and
|
|
134
|
-
later real UI checks for help anchors, loading, disabled actions and geometry.
|
|
135
|
-
|
|
136
|
-
### Segmented value-pair accessory
|
|
137
|
-
|
|
138
|
-
Status: implemented in local source, unreleased. Focused validation and Web DOM
|
|
139
|
-
tests pass; production iOS target compilation passes. Native instrumentation,
|
|
140
|
-
full App builds and device acceptance remain separate gates. A `valuePair`
|
|
141
|
-
trailing accessory retains its required `primary` and `secondary` fallback
|
|
142
|
-
strings. It may also supply optional readonly `primaryTextSegments` and
|
|
143
|
-
`secondaryTextSegments` arrays of existing `ValueTextSegment` objects. Missing
|
|
144
|
-
or empty arrays display the corresponding fallback; nonempty arrays display
|
|
145
|
-
their text runs. Callers provide matching fallback text, but validation does
|
|
146
|
-
not enforce that match.
|
|
147
|
-
|
|
148
|
-
Each array has at most 64 segments, each with string `text` of at most 4096
|
|
149
|
-
characters and optional `style: 'subscript'`. Total text per array is at most
|
|
150
|
-
4096 characters. Full snapshots and explicit patch replacements reject null,
|
|
151
|
-
malformed arrays, unknown segment keys and other styles. An omitted patch field
|
|
152
|
-
leaves the existing accessory unchanged; replacement without segments clears
|
|
153
|
-
old runs. Subscript retains the existing 60-percent smaller-font convention
|
|
154
|
-
after semantic text styling. Both lines retain their default size, tone, line
|
|
155
|
-
height, right alignment and accessibility text. These fields add no action or
|
|
156
|
-
hit target and travel in existing snapshot JSON without a Nitro ABI change.
|
|
157
|
-
|
|
158
|
-
### Identity row risk-management controls
|
|
159
|
-
|
|
160
|
-
Status: implemented in source for local consumers, unreleased. Focused validation,
|
|
161
|
-
Web DOM tests, native builds and device acceptance are tracked separately below.
|
|
162
|
-
The optional `identity.titleIcon` is a static, non-actionable icon after the
|
|
163
|
-
title: a 20-point glyph with a 4-point gap, optional tint and accessibility
|
|
164
|
-
label. Its optional Web-only `hoverActionKey` emits an anchored help action
|
|
165
|
-
from the icon alone on mouse/pen hover or touch press; the consumer owns the
|
|
166
|
-
tooltip. Mouse/pen press closes the anchor until pointer leave. Touch press
|
|
167
|
-
toggles the icon anchor. The icon adds no tab stop or separate click action;
|
|
168
|
-
row activation remains unchanged. Departure, scroll, full rebind and destroy
|
|
169
|
-
invalidate the anchor. Omission removes the icon in a full snapshot; omission
|
|
170
|
-
in a patch leaves the existing value unchanged. An explicit replacement icon
|
|
171
|
-
without `hoverActionKey` clears the old hover action. Removing the icon
|
|
172
|
-
requires a full snapshot.
|
|
173
|
-
|
|
174
|
-
On Web, `identity.secondaryTitleIcon` accepts the same descriptor and appears
|
|
175
|
-
after `titleIcon`. Both icons retain independent hover/touch anchors at their
|
|
176
|
-
own glyph rectangles; entering the other invalidates the previous anchor.
|
|
177
|
-
Native renderers ignore this optional Web-only field. Full rebinding to one
|
|
178
|
-
or no icons clears the removed glyph and anchor; explicit icon replacement
|
|
179
|
-
without `hoverActionKey` clears that icon's old hover action. Neither icon
|
|
180
|
-
creates a tab stop or separate click action.
|
|
181
|
-
On Web, clicking either help icon (including its SVG) does not activate the row;
|
|
182
|
-
clicking elsewhere on the row keeps the normal row action.
|
|
183
|
-
|
|
184
|
-
`identity.style.leadingContentMaxWidthRatio`, when given,
|
|
185
|
-
must be finite and within `(0, 1]`; it caps the combined leading visual, gap
|
|
186
|
-
and title content relative to the row's available inner width. Omission keeps
|
|
187
|
-
the existing unrestricted layout. Long titles truncate inside the cap, and
|
|
188
|
-
unused width remains available to trailing controls. The ratio is layout-only,
|
|
189
|
-
never a reuse identity or row-height input.
|
|
190
|
-
|
|
191
|
-
`trailing` accepts an optional `button` accessory with required nonempty
|
|
192
|
-
`label` and `actionKey`, optional `disabled`, `testID`,
|
|
193
|
-
`accessibilityLabel`, and optional hex colors `textColor`,
|
|
194
|
-
`backgroundColor`, `pressedBackgroundColor`, `hoverBackgroundColor`, and
|
|
195
|
-
`focusRingColor`. This single variant has the existing small secondary button
|
|
196
|
-
geometry: medium 14/20 text, 10-point horizontal and 4-point vertical
|
|
197
|
-
padding, a one-point transparent border and a pill radius. Omitted colors use
|
|
198
|
-
the theme's corresponding text and strong-background colors. The button does
|
|
199
|
-
not carry arbitrary React content, a size or variant parameter, or loading
|
|
200
|
-
state. Row or accessory disabled state prevents its action and dims the control
|
|
201
|
-
to 0.4 opacity.
|
|
202
|
-
|
|
203
|
-
Activation emits one existing row-action event with the current row key,
|
|
204
|
-
`trailingAccessory` source and zero-based descriptor slot, without also activating the row.
|
|
205
|
-
The host's existing binding epoch guards recycled controls. Full rebinding
|
|
206
|
-
clears omitted title icons and old button text, visual states, test IDs,
|
|
207
|
-
accessibility values and callbacks, including button-to-icon-to-absent reuse.
|
|
208
|
-
Patches replace fields they explicitly change and leave omitted fields intact.
|
|
209
|
-
iOS and Android use native controls; Web uses a semantic `button` with native
|
|
210
|
-
keyboard activation and disabled semantics. The new fields travel inside the
|
|
211
|
-
existing snapshot JSON and do not alter the Nitro bridge ABI. Consumers own
|
|
212
|
-
localized labels, state updates and any tooltip outside the data row.
|
|
213
|
-
|
|
214
|
-
Acceptance requires snapshot and patch validation, Web action/isolation and
|
|
215
|
-
reuse checks, native renderer tests on production classes, native builds and
|
|
216
|
-
device checks for title placement, cap/truncation, colors, press and recycle.
|
|
217
|
-
No source-only check counts as native runtime evidence.
|
|
218
|
-
|
|
219
|
-
`theme.rowHoverBackground` is an optional Web-only hex color for an enabled
|
|
220
|
-
row's hover background. Omission keeps the existing pressed-background hover
|
|
221
|
-
color. Pressed/active rows continue to use `rowPressedBackground`; native
|
|
222
|
-
renderers ignore the new field. The existing `loadingStrategy: 'skeleton'`
|
|
223
|
-
on a Web leading image displays an animated skeleton while loading, then
|
|
224
|
-
clears it on success, failure, rebind or recycle; other strategies keep their
|
|
225
|
-
existing appearance.
|
|
226
|
-
|
|
227
|
-
Identity leading visuals consume the existing `borderColor` as a one-point/dp
|
|
228
|
-
solid bitmap border when supplied without `borderStyle: 'dashed'`; omission or
|
|
229
|
-
a dashed style clears the solid border on every bind.
|
|
230
|
-
The image is inset by that border width. An overlay may optionally set
|
|
231
|
-
`fontWeight` to one of the existing text weight names
|
|
232
|
-
(`regular | medium | semibold | bold`). This changes only overlay text;
|
|
233
|
-
omission retains the current platform default. Setting and clearing the field
|
|
234
|
-
must survive patching and recycled-view rebinding on all three platforms.
|
|
235
|
-
The existing `leading.fallbackIcon` may optionally set a positive `size` for
|
|
236
|
-
its glyph and a hex `backgroundColor` for the visual's no-image and image-load-
|
|
237
|
-
failure states. A successfully loaded bitmap continues to use
|
|
238
|
-
`leading.backgroundColor`. Omitted fallback fields preserve current rendering.
|
|
239
|
-
Image success, failure and full rebinding must restore the matching background
|
|
240
|
-
and glyph size without carrying values from the previous visual.
|
|
241
|
-
An image overlay may optionally declare `fallbackIcon` with a required glyph
|
|
242
|
-
name and optional tint. It shows only after that overlay image fails, while
|
|
243
|
-
loading retains the overlay's empty background and success shows the bitmap.
|
|
244
|
-
The existing icon accessory accepts only one optional `buttonStyle` value,
|
|
245
|
-
`tertiary`, for the source icon button's 38-point press frame, 24-point glyph,
|
|
246
|
-
six-point padding, one-point border, seven-point visual overhang and pressed
|
|
247
|
-
background. Omission preserves every existing icon accessory layout and action.
|
|
248
|
-
The non-action `RefreshCcwOutline` accessory keeps the source's 16-point glyph
|
|
249
|
-
and frame, with no independent press target. Rebinding it to an actionable
|
|
250
|
-
icon restores the existing icon size and event behavior.
|
|
251
|
-
|
|
252
29
|
### iOS 26 fixed top scroll-edge overlay
|
|
253
30
|
|
|
254
31
|
Standalone `NativeList` accepts optional
|
|
@@ -431,16 +208,6 @@ arguments; this protects the runtime's argument limit.
|
|
|
431
208
|
The component and Web engine contain input validation failures in both modes:
|
|
432
209
|
initial invalid input renders an empty list; rejected later snapshots or patch
|
|
433
210
|
batches preserve the last accepted state and are not dispatched to native.
|
|
434
|
-
On iOS and Android, the React wrapper captures caller data before validation
|
|
435
|
-
and owns an immutable accepted snapshot. Later caller mutation cannot rewrite
|
|
436
|
-
that accepted state. Imperative selection keys are captured on entry. Eligible
|
|
437
|
-
value-only `identity` and `dataRow` patches validate their complete changed
|
|
438
|
-
rows; other patches and snapshots without this private ownership use the
|
|
439
|
-
existing complete-snapshot validation path. This does not change exported
|
|
440
|
-
validators or Web behavior.
|
|
441
|
-
An `undefined` value in an eligible field stays on the changed-row path only
|
|
442
|
-
when that field was already `undefined`; clearing a present value uses the
|
|
443
|
-
complete-snapshot path.
|
|
444
211
|
Rejection emits a diagnostic without including row keys, text or image URLs.
|
|
445
212
|
Explicit calls to the exported validation functions still throw on rejected
|
|
446
213
|
input, so development tooling can inspect the full contract failure. Rejection
|
|
@@ -462,6 +229,16 @@ Existing geometry/typography differences are recorded in
|
|
|
462
229
|
them. iOS uses UICollectionView, Android RecyclerView, and Web a windowed DOM
|
|
463
230
|
engine. See [DESIGN.md](DESIGN.md) for their current ownership boundaries.
|
|
464
231
|
|
|
232
|
+
### Android section-index attachment
|
|
233
|
+
|
|
234
|
+
When `sectionIndex.centeredInWindow` is enabled, the Android index rail moves
|
|
235
|
+
between the list container and the window host as list visibility and attachment
|
|
236
|
+
change. Before adding that same rail to its new parent, the previous parent MUST
|
|
237
|
+
finish any pending view transition for it. Hiding the list returns the rail to
|
|
238
|
+
the list container; detaching still uses the existing posted return so that a
|
|
239
|
+
window traversal is not interrupted. Re-showing or reattaching MUST retain one
|
|
240
|
+
rail instance with one current parent.
|
|
241
|
+
|
|
465
242
|
### Font resource ownership and runtime configuration
|
|
466
243
|
|
|
467
244
|
Status: implemented; JavaScript regression tests, Android compilation/JVM tests
|
|
@@ -891,49 +668,6 @@ leaked audio/player resources. Static API checks do not prove these cases.
|
|
|
891
668
|
|
|
892
669
|
## Native container slots (source implementation, runtime verification pending)
|
|
893
670
|
|
|
894
|
-
### Optional scrolling sidecar (source implemented; native runtime verification pending)
|
|
895
|
-
|
|
896
|
-
`listSidecar` and `sidecarLayout: { width, gap, maxContentWidth }` are an
|
|
897
|
-
optional pair for a vertical linear list. Omission preserves the existing
|
|
898
|
-
single-column layout. All three values are finite non-negative logical pixels;
|
|
899
|
-
`width` and `maxContentWidth` must be positive and `width + gap` must be less
|
|
900
|
-
than `maxContentWidth`. The list remains the sole scroll owner. At viewport
|
|
901
|
-
width `V`, the content band is centered with width `min(V, maxContentWidth)`;
|
|
902
|
-
the sidecar occupies the logical end `width`, separated from the logical start
|
|
903
|
-
data/slot column by `gap`. In RTL the sidecar is physically left and the list
|
|
904
|
-
is physically right. Header, rows, empty slot and footer use the start column. The sidecar
|
|
905
|
-
starts at the content top, scrolls on the same native frame as rows, and may
|
|
906
|
-
contain interactive React content. Its root is retained until Fabric unmount;
|
|
907
|
-
it does not become a row, affect row keys, indices, selection or prefetch. The
|
|
908
|
-
left RecyclerView/UICollectionView still lays out only viewport-near rows.
|
|
909
|
-
|
|
910
|
-
The scrolling extent is at least the greater of the left column including its
|
|
911
|
-
footer and the sidecar's measured bottom. A taller sidecar extends the tail
|
|
912
|
-
after the left footer; it must not push that footer below its normal position.
|
|
913
|
-
`scrollToEnd`, refresh and structural transition offset clamping use this
|
|
914
|
-
combined extent. A sidecar height or breakpoint change preserves an in-range
|
|
915
|
-
offset; an out-of-range offset is clamped by the existing shrink correction.
|
|
916
|
-
Rapid row transitions retain their existing one-shot id and anchor semantics.
|
|
917
|
-
Native sidecar position follows the native scroll offset directly, without a
|
|
918
|
-
per-frame JS bridge. A drag beginning over interactive sidecar content must
|
|
919
|
-
still scroll the same list; taps retain the content's own actions.
|
|
920
|
-
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
|
|
921
|
-
coordinates. On Android the narrow overlay follows the RecyclerView's measured
|
|
922
|
-
logical offset; after a vertical touch slop it cancels the React press and
|
|
923
|
-
forwards the original touch stream to the list's SwipeRefreshLayout. The
|
|
924
|
-
Android tail spacer derives from explicit/measured row and slot extents, not
|
|
925
|
-
RecyclerView's variable-height scrollbar estimate.
|
|
926
|
-
|
|
927
|
-
Web uses the same measured two-column geometry inside its current owned or
|
|
928
|
-
explicit external scroll host, with DOM virtualization limited to the left
|
|
929
|
-
rows; the sidecar is a single React slot. Callers already placing a Web sidebar
|
|
930
|
-
as a sibling may omit the new pair there. Horizontal/grid configurations with
|
|
931
|
-
a sidecar are rejected. Acceptance requires iOS and Android wide Home scrolling,
|
|
932
|
-
right-column drag and action, short/empty assets, collapse animation while
|
|
933
|
-
scrolled, refresh, resize across the breakpoint without list remount, and
|
|
934
|
-
thousands of rows remaining bounded to the native recycler viewport. Source,
|
|
935
|
-
type and unit checks alone do not establish device acceptance.
|
|
936
|
-
|
|
937
671
|
`listHeader`, `listEmpty` and `listFooter` accept React nodes on iOS and Android
|
|
938
672
|
vertical lists only. They are optional and default to absent. They are common
|
|
939
673
|
container capabilities, not row templates, and MUST NOT be used for per-item
|
|
@@ -960,10 +694,9 @@ width React lays it out at. Android's narrow-screen row scale and section-index
|
|
|
960
694
|
apply to data rows only. Slot React trees own their internal layout and
|
|
961
695
|
business actions; NativeList owns their scroll placement and lifecycle.
|
|
962
696
|
|
|
963
|
-
The wrapper mounts
|
|
964
|
-
heights through `containerSlotHeightsJson` in header/empty/footer
|
|
965
|
-
|
|
966
|
-
finite, non-negative heights. Slot updates MUST NOT alter data-row
|
|
697
|
+
The wrapper mounts exactly three non-collapsible slot roots and reports measured
|
|
698
|
+
heights through `containerSlotHeightsJson` in header/empty/footer order. Native
|
|
699
|
+
validates three finite, non-negative heights. Slot updates MUST NOT alter data-row
|
|
967
700
|
keys or public row indices. No per-scroll-frame JS position updates are used.
|
|
968
701
|
iOS mounts each slot root inside a list-owned host view in UICollectionView and
|
|
969
702
|
reserves native layout space. The host owns the slot's vertical position and clips to
|
|
@@ -984,8 +717,7 @@ request another repair. This leaves Fabric-owned slot content and row indices
|
|
|
984
717
|
unchanged; source checks alone do not establish first-layout visibility.
|
|
985
718
|
|
|
986
719
|
Fabric mount/unmount ownership remains explicit even when RecyclerView detaches a
|
|
987
|
-
slot holder. The native manager retains
|
|
988
|
-
(plus the independent optional fixed top overlay);
|
|
720
|
+
slot holder. The native manager retains at most three roots until Fabric unmount;
|
|
989
721
|
recycling detaches slot content without disposing its React tree. Unmount removes
|
|
990
722
|
that exact view. Native list disposal MUST NOT dispatch pending row/slot events.
|
|
991
723
|
The generated Nitro 0.37 leaf managers require deterministic child-forwarding
|
|
@@ -1034,28 +766,8 @@ applied inset and remains valid while that inset is retained across detach.
|
|
|
1034
766
|
|
|
1035
767
|
## Native rich activity presentation
|
|
1036
768
|
|
|
1037
|
-
Status: Source implemented for `ActivityRow.hideLeading`. Web DOM tests cover
|
|
1038
|
-
both Activity paths, Android production renderer instrumentation covers
|
|
1039
|
-
same-view rebinds, and the iOS NativeListModule arm64 Simulator target builds.
|
|
1040
|
-
iOS runtime acceptance remains pending. Optional `hideLeading: true` suppresses
|
|
1041
|
-
the activity row's main leading visual, its accessibility content, and the entire visual width and
|
|
1042
|
-
following gap. The title, description, status, amounts, fee, and footer actions
|
|
1043
|
-
retain their normal semantics; footer actions align with the title region rather
|
|
1044
|
-
than a reserved visual slot. `leading` remains required in the row model and is
|
|
1045
|
-
still validated. Omitted or `false` preserves the existing layout and image
|
|
1046
|
-
behavior. The field must be a boolean in snapshots and patches; an omitted patch
|
|
1047
|
-
field preserves the current value. A full snapshot or patch changing
|
|
1048
|
-
`hideLeading` rebinds the visual and layout in both legacy and rich Activity
|
|
1049
|
-
presentations, including key reuse. Hidden visuals do not start image requests;
|
|
1050
|
-
rebinding to `false` may load the current image. Recycling and late image
|
|
1051
|
-
callbacks must not restore a hidden visual or leave hidden layout/accessibility
|
|
1052
|
-
state on a later visible row. This contract applies on iOS, Android, and Web.
|
|
1053
|
-
The Android instrumentation uses icon visuals to verify layout, action alignment
|
|
1054
|
-
and amount preservation. Late image completion is guarded by the existing
|
|
1055
|
-
image-slot recycle epoch; a hide-during-image-load device case remains unverified.
|
|
1056
|
-
|
|
1057
769
|
Status: Source implemented; native runtime acceptance pending. Optional `amounts`
|
|
1058
|
-
supersedes legacy `primaryAmount`/`secondaryAmount`
|
|
770
|
+
supersedes legacy `primaryAmount`/`secondaryAmount` only on native. It accepts at
|
|
1059
771
|
most 32 keyed lines, each with formatted text, optional leading visual, tone,
|
|
1060
772
|
secondary text and subscript text segments. Segments are caller-formatted and
|
|
1061
773
|
never interpreted as numbers by NativeList. Omission preserves the legacy tree.
|
|
@@ -1533,20 +1245,6 @@ Presentation wrapper changes move the existing nodes and preserve asynchronous
|
|
|
1533
1245
|
loading/error visibility; they do not recreate or reload an unchanged source.
|
|
1534
1246
|
Changing the source set retains the existing rebuild/disposal behavior.
|
|
1535
1247
|
|
|
1536
|
-
## Opt-in structural snapshot transition (Home assets)
|
|
1537
|
-
|
|
1538
|
-
`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 in a vertical, single-column `linear` or `table` layout. Grid, sectioned, and horizontal lists 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.
|
|
1539
|
-
|
|
1540
|
-
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` caps the animated final offset so that the fallback row becomes visible; it never teleports that row 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. On iOS, deletion-only snapshots retain row order, and removed rows remain as non-interactive presentation cells while their heights contract; they are removed from the collection only after the collapse finishes. Retiring cell contents keep their natural height and are clipped by the shrinking cell, so icons and text are not compressed. Row geometry, footer position, and scroll offset share the native timeline, and Pager observes that offset as a list-owned scroll command. iOS and Android hosts drive interpolation without JavaScript bridge frames; Web uses one animation frame timeline for height and offset.
|
|
1541
|
-
|
|
1542
|
-
`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.
|
|
1543
|
-
|
|
1544
|
-
`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.
|
|
1545
|
-
|
|
1546
|
-
`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.
|
|
1547
|
-
|
|
1548
|
-
`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.
|
|
1549
|
-
|
|
1550
1248
|
### Web slot-list scroll ownership
|
|
1551
1249
|
|
|
1552
1250
|
When container slots create an owned Web scroll host without `webScrollHost`,
|
package/docs/STYLE_SPEC.md
CHANGED
|
@@ -153,7 +153,6 @@ resolved colors; `style.color` does not resolve application color-token names.
|
|
|
153
153
|
| `bgApp` | `background` | List ground |
|
|
154
154
|
| `bg` | `rowBackground` | Row ground |
|
|
155
155
|
| `bgActive` | `rowSelectedBackground`, `rowPressedBackground` | Selected / pressed row |
|
|
156
|
-
| `bgHover` | `rowHoverBackground` (optional Web) | Hovered row; omission uses pressed color |
|
|
157
156
|
| `bgSubdued` | `subduedBackground` | Card and group ground |
|
|
158
157
|
| `bgStrong` | `strongBackground` | Chip / badge ground |
|
|
159
158
|
| `bgInverse` | `inverseBackground` | Inverted ground |
|
|
@@ -270,11 +269,6 @@ Each cell describes the same public contract on **Web + iOS + Android**.
|
|
|
270
269
|
| `action` | title, value | padding, leadingGap, trailingGap, image |
|
|
271
270
|
| `system` | title, message, actionText | padding, lineGap |
|
|
272
271
|
|
|
273
|
-
`identity.style.leadingContentMaxWidthRatio` optionally caps the leading
|
|
274
|
-
visual, gap and title content to a finite fraction in `(0, 1]` of the row's
|
|
275
|
-
inner width. Omission retains the existing width behavior. This lets a
|
|
276
|
-
same-row trailing text button keep its own space while long titles truncate.
|
|
277
|
-
|
|
278
272
|
Market additionally exposes `titleBadgeLayout: inline`, `contentTrailingGap`,
|
|
279
273
|
`subtitleTrailingPadding`, `changeWidth`, `changeHeight`, `changeCornerRadius`, preserving
|
|
280
274
|
its existing template-specific style surface on every platform.
|
|
@@ -36,16 +36,6 @@ final class HybridNativeList: HybridNativeListSpec {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
var sidecarLayoutJson: String = "" {
|
|
40
|
-
didSet {
|
|
41
|
-
guard sidecarLayoutJson != oldValue else { return }
|
|
42
|
-
runOnMain { [weak self] in
|
|
43
|
-
guard let self else { return }
|
|
44
|
-
self.hostView?.setSidecarLayoutJson(self.sidecarLayoutJson)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
39
|
private var fontsChanged = false
|
|
50
40
|
private var snapshotChanged = false
|
|
51
41
|
|