@onekeyfe/react-native-native-list 6.7.0-3 → 6.7.0-30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +4 -0
  2. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
  3. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +250 -9
  4. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +35 -7
  5. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +25 -3
  6. package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
  7. package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
  8. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
  9. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +102 -7
  10. package/android/src/main/java/com/onekey/nativelist/NativeListGeneratedIcons.kt +47 -0
  11. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +225 -11
  12. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +152 -33
  13. package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
  14. package/android/src/main/java/com/onekey/nativelist/NativeListMediaPreviewSlot.kt +66 -31
  15. package/android/src/main/java/com/onekey/nativelist/NativeListMediaTileRenderer.kt +1 -1
  16. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
  17. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +149 -3
  18. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +120 -287
  19. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
  20. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +7 -0
  21. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
  22. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
  23. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
  24. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1953 -117
  25. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +35 -0
  26. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
  27. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
  28. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
  29. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
  30. package/docs/ROW_TEMPLATES.md +70 -11
  31. package/docs/SPEC.md +1170 -13
  32. package/docs/STYLE_SPEC.md +11 -0
  33. package/ios/HybridNativeList.swift +21 -2
  34. package/ios/NativeListAccessoryStack.swift +237 -51
  35. package/ios/NativeListActivityDetailsView.swift +30 -11
  36. package/ios/NativeListActivityRenderer.swift +8 -2
  37. package/ios/NativeListButtonGroupRenderer.swift +89 -0
  38. package/ios/NativeListDataRowRenderer.swift +167 -30
  39. package/ios/NativeListDesignAssets.swift +13 -75
  40. package/ios/NativeListGeneratedIcons.swift +55 -0
  41. package/ios/NativeListIconBinding.swift +171 -0
  42. package/ios/NativeListIdentityRenderer.swift +256 -39
  43. package/ios/NativeListLeadingVisual.swift +127 -28
  44. package/ios/NativeListMarketRenderer.swift +120 -31
  45. package/ios/NativeListMediaPreviewSlot.swift +122 -61
  46. package/ios/NativeListMediaTileRenderer.swift +7 -3
  47. package/ios/NativeListMessageRenderer.swift +34 -1
  48. package/ios/NativeListMetricCardRenderer.swift +4 -2
  49. package/ios/NativeListModels.swift +42 -2
  50. package/ios/NativeListRendererRegistry.swift +1 -0
  51. package/ios/NativeListResolvedText.swift +2 -1
  52. package/ios/NativeListRowHost.swift +14 -0
  53. package/ios/NativeListSectionHeaderRenderer.swift +100 -4
  54. package/ios/RNCNativeListView.swift +1052 -58
  55. package/ios/tests/NativeListAccessoryStackTests.swift +101 -0
  56. package/ios/tests/NativeListAccountSelectorLayoutTests.swift +96 -0
  57. package/ios/tests/NativeListActivityPresentationTests.swift +153 -0
  58. package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
  59. package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
  60. package/ios/tests/NativeListLifecycleTests.swift +2798 -3
  61. package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
  62. package/ios/tests/NativeListMediaVisibilityTests.swift +26 -1
  63. package/ios/tests/NativeListSharedIconTests.swift +236 -0
  64. package/lib/module/NativeList.js +221 -36
  65. package/lib/module/NativeList.web.js +167 -46
  66. package/lib/module/index.js +1 -1
  67. package/lib/module/models.js +3 -0
  68. package/lib/module/selection.js +1 -1
  69. package/lib/module/validation.js +1246 -48
  70. package/lib/module/web/NativeListGeneratedIcons.js +31 -0
  71. package/lib/module/web/NativeListWebEngine.js +513 -274
  72. package/lib/module/web/templates/ActivityRowRenderer.js +120 -87
  73. package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
  74. package/lib/module/web/templates/DataRowRenderer.js +40 -5
  75. package/lib/module/web/templates/IdentityRowRenderer.js +158 -6
  76. package/lib/module/web/templates/MarketTableRowRenderer.js +37 -19
  77. package/lib/module/web/templates/MediaTileRowRenderer.js +4 -14
  78. package/lib/module/web/templates/MessageRowRenderer.js +18 -2
  79. package/lib/module/web/templates/RowContainerStyle.js +1 -0
  80. package/lib/module/web/templates/RowRendererRegistry.js +3 -0
  81. package/lib/module/web/templates/SectionHeaderRowRenderer.js +36 -2
  82. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  83. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  84. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  85. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  86. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  87. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  88. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  89. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  90. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  91. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  92. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  93. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  94. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  95. package/lib/typescript/src/NativeList.d.ts +3 -3
  96. package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
  97. package/lib/typescript/src/NativeList.types.d.ts +20 -2
  98. package/lib/typescript/src/index.d.ts +2 -2
  99. package/lib/typescript/src/models.d.ts +126 -17
  100. package/lib/typescript/src/validation.d.ts +20 -0
  101. package/lib/typescript/src/web/NativeListGeneratedIcons.d.ts +2 -0
  102. package/lib/typescript/src/web/NativeListWebEngine.d.ts +32 -1
  103. package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
  104. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
  105. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +9 -3
  106. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  107. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  108. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  109. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  110. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  111. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  112. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  113. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  114. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  115. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  116. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  117. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  118. package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  119. package/package.json +16 -10
  120. package/react-native-native-list.podspec +2 -6
  121. package/scripts/generate-icons.mjs +150 -0
  122. package/scripts/generate-icons.test.mjs +288 -0
  123. package/scripts/native-list-icons.json +260 -0
  124. package/src/NativeList.nitro.ts +2 -0
  125. package/src/NativeList.tsx +416 -89
  126. package/src/NativeList.types.ts +24 -2
  127. package/src/NativeList.web.tsx +295 -89
  128. package/src/index.ts +2 -0
  129. package/src/models.ts +263 -144
  130. package/src/selection.ts +1 -0
  131. package/src/validation.ts +3013 -152
  132. package/src/web/NativeListGeneratedIcons.ts +28 -0
  133. package/src/web/NativeListWebEngine.ts +816 -343
  134. package/src/web/templates/ActivityRowRenderer.ts +178 -141
  135. package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
  136. package/src/web/templates/DataRowRenderer.ts +93 -20
  137. package/src/web/templates/IdentityRowRenderer.ts +231 -6
  138. package/src/web/templates/MarketTableRowRenderer.ts +56 -33
  139. package/src/web/templates/MediaTileRowRenderer.ts +4 -17
  140. package/src/web/templates/MessageRowRenderer.ts +23 -7
  141. package/src/web/templates/RowContainerStyle.ts +2 -0
  142. package/src/web/templates/RowRendererRegistry.ts +11 -1
  143. package/src/web/templates/SectionHeaderRowRenderer.ts +47 -4
  144. package/ios/Resources/NativeListIcons.xcassets/Contents.json +0 -1
  145. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/Contents.json +0 -1
  146. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/icon.svg +0 -1
  147. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/Contents.json +0 -1
  148. package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/icon.svg +0 -1
  149. package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/Contents.json +0 -1
  150. package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/icon.svg +0 -1
  151. package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/Contents.json +0 -1
  152. package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/icon.svg +0 -1
  153. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/Contents.json +0 -1
  154. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/icon.svg +0 -1
  155. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/Contents.json +0 -1
  156. package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/icon.svg +0 -1
  157. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/Contents.json +0 -1
  158. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/icon.svg +0 -1
  159. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/Contents.json +0 -1
  160. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/icon.svg +0 -1
  161. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/Contents.json +0 -1
  162. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/icon.svg +0 -1
  163. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/Contents.json +0 -1
  164. package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/icon.svg +0 -1
  165. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/Contents.json +0 -1
  166. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/icon.svg +0 -1
  167. package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/Contents.json +0 -1
  168. package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/icon.svg +0 -1
  169. package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/Contents.json +0 -1
  170. package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/icon.svg +0 -1
  171. package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/Contents.json +0 -1
  172. package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/icon.svg +0 -1
  173. package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/Contents.json +0 -1
  174. package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/icon.svg +0 -1
  175. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/Contents.json +0 -1
  176. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/icon.svg +0 -1
  177. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/Contents.json +0 -1
  178. package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/icon.svg +0 -1
  179. package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/Contents.json +0 -1
  180. package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/icon.svg +0 -1
  181. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/Contents.json +0 -1
  182. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/icon.svg +0 -1
  183. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/Contents.json +0 -1
  184. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/icon.svg +0 -1
  185. package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/Contents.json +0 -1
  186. package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/icon.svg +0 -1
  187. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/Contents.json +0 -15
  188. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/icon.svg +0 -14
  189. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/Contents.json +0 -15
  190. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/icon.svg +0 -12
  191. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/Contents.json +0 -15
  192. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/icon.svg +0 -6
  193. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/Contents.json +0 -15
  194. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/icon.svg +0 -15
  195. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/Contents.json +0 -15
  196. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/icon.svg +0 -3
  197. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/Contents.json +0 -15
  198. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/icon.svg +0 -7
  199. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/Contents.json +0 -15
  200. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/icon.svg +0 -18
  201. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/Contents.json +0 -15
  202. package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/icon.svg +0 -7
  203. package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/Contents.json +0 -1
  204. package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/icon.svg +0 -1
  205. package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/Contents.json +0 -1
  206. package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/icon.svg +0 -1
  207. package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/Contents.json +0 -1
  208. package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/icon.svg +0 -1
  209. package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/Contents.json +0 -1
  210. package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/icon.svg +0 -1
  211. package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/Contents.json +0 -1
  212. package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/icon.svg +0 -1
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ import { createNamedIcon } from '@onekeyfe/react-native-image/icon/dom';
4
+ import { nativeListGeneratedIcons as selectorIcons } from "./NativeListGeneratedIcons.js";
3
5
  import { applyTextWeight } from "./templates/RowText.js";
4
6
  import { applyRowContainerStyle, resetRowContainerStyle } from "./templates/RowContainerStyle.js";
5
7
  import { hasExplicitRowHeight, rowSizeModifier } from "./templates/RowElements.js";
@@ -11,7 +13,7 @@ import { measureRailWidth } from "./templates/RailRowRenderer.js";
11
13
  import { rowRenderer, rowRendererKey, recycleRowBody } from "./templates/RowRendererRegistry.js";
12
14
  import { checkboxStateForKeys, checkboxStateForSection, isRowPressEnabled, isSelectableRow, reduceSelection, selectionStateFromSnapshot } from "../selection.js";
13
15
  import { calculateAlignedScrollOffset, resolveLocationIndex, scrollFailure, validateOffset } from "../scrolling.js";
14
- import { applyRowPatches, validateSnapshot } from "../validation.js";
16
+ import { applyValidatedRowPatches, containNativeListInput, emptyNativeListSnapshot, validateSnapshot } from "../validation.js";
15
17
  import { avatarPrefetchWindow } from "../avatarPrefetch.js";
16
18
  import { acquireNativeListAvatar, canonicalNativeListAvatarUri } from "./NativeListWebAvatarCache.js";
17
19
  const SECTION_INDEX_CONTENT_INSET = 16;
@@ -37,7 +39,6 @@ export const WEB_REORDER_ANIMATION = {
37
39
  const REORDER_TOUCH_LONG_PRESS_MS = 120;
38
40
  const MARKET_LONG_PRESS_MS = 800;
39
41
  const MARKET_MOVE_CANCEL_PX = 10;
40
- export const WEB_MARKET_VERIFIED_PATH = 'M9.483 11.458v3.5h-1v-3.5z M10.467 2.698a2.03 2.03 0 0 1 3.065 0l1.358 1.564a.03.03 0 0 0 .028.01l2.046-.325a2.03 2.03 0 0 1 2.347 1.971l.037 2.07q0 .016.014.026l1.776 1.066a2.03 2.03 0 0 1 .532 3.019l-1.304 1.609a.03.03 0 0 0-.005.03l.675 1.956a2.03 2.03 0 0 1-1.533 2.656l-2.033.394a.03.03 0 0 0-.023.019l-.741 1.933a2.03 2.03 0 0 1-2.88 1.05l-1.811-1.006a.03.03 0 0 0-.03 0l-1.811 1.005a2.03 2.03 0 0 1-2.88-1.049l-.742-1.933a.03.03 0 0 0-.023-.019l-2.033-.394a2.03 2.03 0 0 1-1.532-2.656l.675-1.957a.03.03 0 0 0-.005-.029l-1.304-1.61a2.03 2.03 0 0 1 .532-3.018l1.776-1.066a.03.03 0 0 0 .014-.026l.035-2.07a2.03 2.03 0 0 1 2.349-1.97l2.045.324a.03.03 0 0 0 .028-.01zm1.516 3.76a.5.5 0 0 0-.447.276l-1.861 3.724H8.483a1 1 0 0 0-1 1v3.5a1 1 0 0 0 1 1h6.692a2 2 0 0 0 1.981-1.73l.341-2.5a2 2 0 0 0-1.982-2.27h-1.939l.197-1.269a1.5 1.5 0 0 0-1.481-1.731z';
41
42
  const REORDER_MOUSE_MOVE_THRESHOLD_PX = 5;
42
43
  const REORDER_EDGE_RATIO = 0.25;
43
44
  const REORDER_MAX_SPEED_ZONE_RATIO = 0.05;
@@ -421,7 +422,7 @@ export const WEB_LIST_CSS = `
421
422
  .ok-native-list-table-secondary{display:block;min-width:0;overflow:clip}.ok-native-list-table-secondary-track{display:flex;flex-direction:column;transition:transform 100ms ease}.ok-native-list-market-table:focus-within .ok-native-list-table-secondary[data-has-hover="true"]>.ok-native-list-table-secondary-track{transform:translateY(calc(-1 * var(--nl-table-secondary-height)))}@media(hover:hover){.ok-native-list-market-table:hover .ok-native-list-table-secondary[data-has-hover="true"]>.ok-native-list-table-secondary-track{transform:translateY(calc(-1 * var(--nl-table-secondary-height)))}}.ok-native-list-market-table button:focus-visible{outline:2px solid var(--nl-accent);outline-offset:1px}.ok-native-list-market-table button:hover{opacity:.75}.ok-native-list-market-table button:active{opacity:.5}
422
423
 
423
424
  [data-native-list-selector="walletSidebar"] .ok-native-list-title{max-width:100%;min-width:0}
424
- .ok-native-list-root{--nl-bg:#f7f7f7;--nl-row:#fff;--nl-selected:#eaf2ff;--nl-pressed:#e8e8e8;--nl-subdued:#f9f9f9;--nl-strong:#0000000f;--nl-primary:#111;--nl-secondary:#6b7280;--nl-disabled:#8d8d8d;--nl-icon:#111;--nl-icon-subdued:#8d8d8d;--nl-separator:#e5e7eb;--nl-accent:#2f6bff;--nl-positive:#15803d;--nl-negative:#dc2626;--nl-critical:#feecec;--nl-inverse:#202020;--nl-inverse-text:#fcfcfc;--nl-info:#0d74ce;position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--nl-bg);color:var(--nl-primary);font-synthesis:none;font-family:var(--nl-font-regular)}
425
+ .ok-native-list-root{--nl-bg:#f7f7f7;--nl-row:#fff;--nl-selected:#eaf2ff;--nl-pressed:#e8e8e8;--nl-hover:#e8e8e8;--nl-subdued:#f9f9f9;--nl-strong:#0000000f;--nl-primary:#111;--nl-secondary:#6b7280;--nl-disabled:#8d8d8d;--nl-icon:#111;--nl-icon-subdued:#8d8d8d;--nl-separator:#e5e7eb;--nl-accent:#2f6bff;--nl-positive:#15803d;--nl-negative:#dc2626;--nl-critical:#feecec;--nl-inverse:#202020;--nl-inverse-text:#fcfcfc;--nl-info:#0d74ce;position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--nl-bg);color:var(--nl-primary);font-synthesis:none;font-family:var(--nl-font-regular)}
425
426
  .ok-native-list-viewport-frame{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden}
426
427
  .ok-native-list-viewport{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
427
428
  .ok-native-list-content{position:relative;min-width:100%;min-height:100%}
@@ -430,9 +431,7 @@ export const WEB_LIST_CSS = `
430
431
  .ok-native-list-row{width:100%;height:100%;box-sizing:border-box;display:flex;align-items:center;gap:12px;overflow:hidden;background:var(--nl-row);color:var(--nl-primary);cursor:default;user-select:none;-webkit-user-select:none}
431
432
  .ok-native-list-item[data-table-alternate="true"]>.ok-native-list-row{background:var(--nl-bg)}
432
433
  .ok-native-list-item[data-native-list-selected="true"]>.ok-native-list-row{background:var(--nl-selected)}
433
- .ok-native-list-item[data-native-list-disabled="true"]>.ok-native-list-row{cursor:default}
434
- .ok-native-list-item[data-native-list-row-press-enabled="true"]>.ok-native-list-row{cursor:pointer}
435
- .ok-native-list-item[data-native-list-row-press-enabled="true"]:hover>.ok-native-list-row{background:var(--nl-pressed)}
434
+ .ok-native-list-item[data-native-list-row-press-enabled="true"]:hover>.ok-native-list-row{background:var(--nl-hover)}
436
435
  .ok-native-list-item[data-native-list-row-press-enabled="true"]:active>.ok-native-list-row{background:var(--nl-pressed)}
437
436
  .ok-native-list-item[data-native-list-row-press-enabled="true"]:not([data-native-list-selected="true"]):hover>.ok-native-list-wallet-row{background:var(--nl-strong)}
438
437
  .ok-native-list-item[data-native-list-row-press-enabled="true"]:not([data-native-list-selected="true"]):active>.ok-native-list-wallet-row{background:var(--nl-pressed)}
@@ -463,16 +462,23 @@ export const WEB_LIST_CSS = `
463
462
  .ok-native-list-item[data-group-position="last"]>.ok-native-list-row{border-radius:0 0 var(--nl-group-radius,12px) var(--nl-group-radius,12px)}
464
463
  .ok-native-list-item[data-group-position="single"]>.ok-native-list-row{border-radius:var(--nl-group-radius,12px)}
465
464
  .ok-native-list-standard{padding:8px 12px}.ok-native-list-network-row{padding:0 12px}.ok-native-list-wallet-row{padding:4px 8px;flex-direction:column;justify-content:center;gap:4px}.ok-native-list-account-row{padding:4px 12px;gap:8px}
465
+ .ok-native-list-trailing-button{appearance:none;box-sizing:border-box;flex:0 0 auto;padding:4px 10px;border:1px solid transparent;border-radius:9999px;background:var(--nl-button-bg,var(--nl-strong));color:var(--nl-button-text,var(--nl-primary));font:500 14px/20px var(--nl-font-medium);white-space:nowrap;cursor:default}.ok-native-list-trailing-button:hover:not(:disabled){background:var(--nl-button-hover,var(--nl-strong))}.ok-native-list-trailing-button:active:not(:disabled){background:var(--nl-button-pressed,var(--nl-pressed))}.ok-native-list-trailing-button:focus-visible{outline:2px solid var(--nl-button-focus,var(--nl-accent))}.ok-native-list-trailing-button:disabled{opacity:.4;cursor:default}
466
+ .ok-native-list-icon-button.ok-native-list-tertiary-icon{box-sizing:border-box;flex:0 0 38px;width:38px;height:38px;margin:-7px;padding:6px;border:1px solid transparent;border-radius:9999px;color:var(--nl-icon-subdued);background:transparent}.ok-native-list-icon-button.ok-native-list-tertiary-icon:hover:not(:disabled){background:var(--nl-hover)}.ok-native-list-icon-button.ok-native-list-tertiary-icon:active:not(:disabled){background:var(--nl-pressed)}.ok-native-list-icon-button.ok-native-list-tertiary-icon:disabled{opacity:.4;cursor:default}
467
+ .ok-native-list-icon-button.ok-native-list-tertiary-icon:focus-visible:not(:disabled){outline:2px solid var(--nl-accent)}
468
+ .ok-native-list-identity-title-icon{flex:0 0 20px;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;color:var(--nl-icon);font-size:20px}.ok-native-list-identity-title-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
466
469
  .ok-native-list-account-row .ok-native-list-visual,.ok-native-list-account-action-row .ok-native-list-visual{width:32px;height:32px;flex-basis:32px}.ok-native-list-account-row .ok-native-list-visual>img,.ok-native-list-account-row .ok-native-list-visual-main,.ok-native-list-account-action-row .ok-native-list-visual>img,.ok-native-list-account-action-row .ok-native-list-visual-main{width:32px;height:32px}.ok-native-list-account-row .ok-native-list-visual>.ok-native-list-visual-corner{width:20px;height:20px;padding:2px}.ok-native-list-account-action-row .ok-native-list-visual{border-radius:8px!important}.ok-native-list-wallet-row .ok-native-list-title{color:var(--nl-secondary);font-size:12px;line-height:16px;font-weight:400;font-family:var(--nl-font-regular)}.ok-native-list-item[data-native-list-selected="true"]>.ok-native-list-wallet-row .ok-native-list-title{color:var(--nl-primary)}.ok-native-list-account-row .ok-native-list-title{font-size:16px;line-height:20px;font-weight:400;font-family:var(--nl-font-regular)}.ok-native-list-account-row .ok-native-list-secondary{font-size:14px;line-height:20px;font-weight:400;font-family:var(--nl-font-regular)}
467
470
  .ok-native-list-flex{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center}.ok-native-list-title{font-size:15px;line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--nl-font-semibold)}.ok-native-list-secondary{font-size:13px;line-height:18px;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-tertiary{color:var(--nl-secondary)}.ok-native-list-info{color:var(--nl-info)}
468
471
  .ok-native-list-identity-row .ok-native-list-title,.ok-native-list-identity-row .ok-native-list-amounts>span:first-child{font-size:16px;line-height:20px}.ok-native-list-identity-row .ok-native-list-secondary{font-size:14px;line-height:20px}
469
472
  .ok-native-list-value{font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;font-family:var(--nl-font-medium)}.ok-native-list-time{font-size:11px;line-height:16px;color:var(--nl-secondary);align-self:flex-start}.ok-native-list-amounts{display:flex;flex-direction:column;align-items:flex-end;min-width:0}.ok-native-list-actions{display:flex;gap:16px;margin-top:6px}
470
473
  .ok-native-list-action-button{appearance:none;border:0;background:transparent;padding:2px;color:var(--nl-accent);cursor:pointer;font:600 12px/16px var(--nl-font-semibold)}.ok-native-list-action-button[data-tone="danger"]{color:var(--nl-negative)}.ok-native-list-action-button:disabled{opacity:.5;cursor:default}
471
- .ok-native-list-visual{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:20px;overflow:visible;background:var(--nl-strong)}.ok-native-list-visual>img,.ok-native-list-visual-main{display:block;width:40px;height:40px;border-radius:inherit;object-fit:cover}.ok-native-list-visual-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:inherit;color:var(--nl-primary);font-size:15px;font-weight:600;overflow:hidden;font-family:var(--nl-font-semibold)}.ok-native-list-visual>.ok-native-list-visual-corner{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;padding:2px;border-radius:50%;background:var(--nl-row);object-fit:cover}.ok-native-list-stacked{display:flex;align-items:center;width:48px;flex-basis:48px}.ok-native-list-stacked img{width:28px;height:28px;border:2px solid var(--nl-row);border-radius:50%;object-fit:cover;margin-left:-10px}.ok-native-list-stacked img:first-child{margin-left:0}
474
+ .ok-native-list-visual{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:20px;overflow:visible;background:var(--nl-strong)}.ok-native-list-visual>img,.ok-native-list-visual-main{display:block;width:40px;height:40px;border-radius:inherit;object-fit:cover}.ok-native-list-visual-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:inherit;color:var(--nl-primary);font-size:15px;font-weight:600;overflow:hidden;font-family:var(--nl-font-semibold)}.ok-native-list-image-skeleton{position:absolute;inset:0;border-radius:inherit;pointer-events:none;animation:ok-native-list-skeleton-light 1.5s linear infinite alternate}.ok-native-list-image-skeleton[data-dark="true"]{animation-name:ok-native-list-skeleton-dark}@keyframes ok-native-list-skeleton-light{0%{background-color:#fafafa}100%{background-color:#cdcdcd}}@keyframes ok-native-list-skeleton-dark{0%{background-color:#111111}100%{background-color:#333333}}@media(prefers-reduced-motion:reduce){.ok-native-list-image-skeleton{animation:none;background-color:var(--nl-strong)}}.ok-native-list-visual>.ok-native-list-visual-corner{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;padding:2px;border-radius:50%;background:var(--nl-row);object-fit:cover}.ok-native-list-stacked{display:flex;align-items:center;width:48px;flex-basis:48px}.ok-native-list-stacked img{width:28px;height:28px;border:2px solid var(--nl-row);border-radius:50%;object-fit:cover;margin-left:-10px}.ok-native-list-stacked img:first-child{margin-left:0}
472
475
  .ok-native-list-accessories{display:flex;align-items:center;gap:10px;min-width:0}.ok-native-list-accessory{font-size:14px;color:var(--nl-primary);white-space:nowrap}.ok-native-list-accessory-secondary{color:var(--nl-secondary)}.ok-native-list-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border:0;background:transparent;color:var(--nl-icon);font-size:20px;line-height:1;font-weight:500;cursor:pointer;font-family:var(--nl-font-medium)}.ok-native-list-checkbox{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:20px;height:20px;border:2px solid color-mix(in srgb,var(--nl-primary) 19%,transparent);border-radius:5px;background:var(--nl-row);cursor:pointer}.ok-native-list-checkbox[data-state="checked"],.ok-native-list-checkbox[data-state="indeterminate"]{border-color:transparent;background:var(--nl-primary)}.ok-native-list-checkbox[data-state="checked"]::after{content:"";width:6px;height:10px;margin-top:-2px;border-right:2px solid var(--nl-row);border-bottom:2px solid var(--nl-row);transform:rotate(45deg)}.ok-native-list-checkbox[data-state="indeterminate"]::after{content:"";width:8px;height:2px;border-radius:1px;background:var(--nl-row)}.ok-native-list-spinner{width:16px;height:16px;border:2px solid var(--nl-separator);border-top-color:var(--nl-primary);border-radius:50%;animation:ok-native-list-spin .8s linear infinite}@keyframes ok-native-list-spin{to{transform:rotate(360deg)}}
473
- .ok-native-list-badge{display:inline-flex;align-items:center;max-width:100%;height:18px;padding:0 5px;border-radius:5px;background:color-mix(in srgb,var(--nl-accent) 12%,transparent);color:var(--nl-accent);font-size:11px;line-height:18px;white-space:nowrap}.ok-native-list-badge[data-tone="danger"]{background:var(--nl-critical);color:var(--nl-negative)}.ok-native-list-badges{display:inline-flex;gap:4px;margin-left:6px;vertical-align:middle}
476
+ .ok-native-list-icon-button.ok-native-list-decorative-refresh{min-width:16px;width:16px;height:16px}
477
+ .ok-native-list-badge{display:inline-flex;align-items:center;max-width:100%;height:18px;padding:0 5px;border-radius:5px;background:color-mix(in srgb,var(--nl-accent) 12%,transparent);color:var(--nl-accent);font-size:11px;line-height:18px;white-space:nowrap}.ok-native-list-badge[data-tone="danger"]{background:var(--nl-critical);color:var(--nl-negative)}.ok-native-list-badge[data-tone="success"]{background:var(--nl-success-background,color-mix(in srgb,var(--nl-positive) 12%,transparent));color:var(--nl-positive)}.ok-native-list-section>.ok-native-list-badge[data-tone="success"]{box-sizing:border-box;height:20px;padding:2px 8px;border-radius:4px;font:500 12px/16px var(--nl-font-medium)}.ok-native-list-badges{display:inline-flex;gap:4px;margin-left:6px;vertical-align:middle}
478
+ .ok-native-list-identity-row .ok-native-list-badge[data-tone="neutral"]{height:20px;box-sizing:border-box;padding:2px 8px;border-radius:4px;background:var(--nl-strong);color:var(--nl-secondary);font-size:12px;line-height:16px;font-weight:500;font-family:var(--nl-font-medium)}
474
479
  .ok-native-list-section{padding:0 8px;background:var(--nl-bg);gap:8px}.ok-native-list-section[data-variant="summary"]{padding:0 20px}.ok-native-list-section[data-variant="gallery"]{padding:0 12px}.ok-native-list-section[data-variant="history"]{padding:0 8px}.ok-native-list-section-title{font-size:13px;line-height:18px;font-weight:700;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--nl-font-bold)}.ok-native-list-section[data-variant="summary"] .ok-native-list-section-title{font-size:16px;font-weight:500;color:var(--nl-primary);font-family:var(--nl-font-medium)}.ok-native-list-section[data-variant="gallery"] .ok-native-list-section-title{font-size:16px;color:var(--nl-primary)}.ok-native-list-section[data-variant="history"] .ok-native-list-section-title{font-size:12px;line-height:16px;letter-spacing:0.8px}.ok-native-list-section-value{margin-left:auto}
475
480
  .ok-native-list-action-row{justify-content:space-between;padding:0 16px}.ok-native-list-action-title{font-size:15px;font-weight:600;color:var(--nl-accent);font-family:var(--nl-font-semibold)}.ok-native-list-action-title[data-tone="danger"]{color:var(--nl-negative)}
481
+ .ok-native-list-button-group{padding:0;gap:10px;overflow:visible}.ok-native-list-block-button{position:relative;display:flex;flex:1 1 0;min-width:0;min-height:48px;align-items:center;justify-content:center;gap:8px;padding:12px 8px;border:1px solid color-mix(in srgb,var(--nl-info) 35%,transparent);border-radius:12px;background:transparent;color:var(--nl-info);font:500 14px/20px var(--nl-font-medium);cursor:pointer}.ok-native-list-block-button>span:not(.ok-native-list-spinner){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ok-native-list-block-button>.ok-native-list-spinner{position:static;flex:0 0 20px;width:20px;height:20px;border-top-color:var(--nl-info)}.ok-native-list-block-button:hover:not(:disabled){background:color-mix(in srgb,var(--nl-info) 10%,transparent);border-color:var(--nl-info)}.ok-native-list-block-button:active:not(:disabled){background:color-mix(in srgb,var(--nl-info) 17%,transparent)}.ok-native-list-block-button:focus-visible{outline:2px solid var(--nl-info);outline-offset:1px}.ok-native-list-block-button:disabled{opacity:.4;cursor:default}
476
482
  .ok-native-list-account-action-row{justify-content:flex-start;gap:12px;padding:0 12px}.ok-native-list-account-action-row .ok-native-list-action-title{color:var(--nl-secondary);font-size:16px;line-height:24px;font-weight:400;font-family:var(--nl-font-regular)}
477
483
  .ok-native-list-system{justify-content:center;padding:8px 12px;background:var(--nl-bg);color:var(--nl-secondary);cursor:default}.ok-native-list-system[data-variant="retry"],.ok-native-list-system[data-variant="noMatch"],.ok-native-list-system[data-variant="end"]{justify-content:flex-start}.ok-native-list-system[data-variant="retry"]{cursor:pointer}
478
484
  .ok-native-list-rail{padding:4px;gap:6px;border-radius:8px}.ok-native-list-rail .ok-native-list-visual{width:20px;height:20px;flex-basis:20px}.ok-native-list-rail .ok-native-list-visual>img,.ok-native-list-rail .ok-native-list-visual-main{width:20px;height:20px}.ok-native-list-rail-title{font-size:12px;font-weight:500;white-space:nowrap;font-family:var(--nl-font-medium)}
@@ -488,7 +494,7 @@ export const WEB_LIST_CSS = `
488
494
  .ok-native-list-index-preview{position:absolute;z-index:8;right:40px;top:50%;display:flex;width:48px;height:48px;align-items:center;justify-content:center;transform:translateY(-50%) scale(.92);border-radius:14px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:22px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease;font-family:var(--nl-font-semibold)}.ok-native-list-index-preview[data-visible="true"]{opacity:1;transform:translateY(-50%) scale(1)}
489
495
  .ok-native-list-row.ok-native-list-market-skeleton{padding:12px 20px;gap:0}.ok-native-list-skeleton-left{display:flex;align-items:center;gap:12px;flex:1}.ok-native-list-skeleton-text{display:flex;flex-direction:column;gap:4px}.ok-native-list-skeleton-right{display:flex;align-items:center;gap:8px}.ok-native-list-skeleton-mark{display:block;flex-shrink:0;border-radius:8px;animation:ok-native-list-skeleton 1.5s linear infinite alternate}@keyframes ok-native-list-skeleton{from{background-color:var(--nl-skeleton-base)}to{background-color:var(--nl-skeleton-highlight)}}.ok-native-list-market-spinner{display:block;width:20px;height:20px;flex-shrink:0;color:var(--nl-icon);animation:ok-native-list-spin .75s linear infinite}
490
496
  @media (prefers-reduced-motion:reduce){.ok-native-list-index-preview,.ok-native-list-refresh{transition:none}.ok-native-list-spinner,.ok-native-list-market-spinner{animation:none}.ok-native-list-skeleton-mark{animation:none;background:var(--nl-skeleton-base)}}
491
- .ok-native-list-footer{flex:0 0 auto;min-height:0}.ok-native-list-sticky{position:absolute;z-index:4;left:0;right:0;top:0;pointer-events:auto;box-shadow:0 1px 0 var(--nl-separator)}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport{scrollbar-width:none}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport::-webkit-scrollbar,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport::-webkit-scrollbar{display:none}.ok-native-list-index-rail{position:absolute;z-index:6;top:0;right:0;bottom:0;width:${SECTION_INDEX_RAIL_WIDTH}px;touch-action:none;cursor:pointer;font-family:var(--nl-font-regular);font-synthesis:none}.ok-native-list-index-rail[hidden]{display:none}.ok-native-list-index-button{appearance:none;position:absolute;left:15px;display:flex;width:14px;height:14px;align-items:center;justify-content:center;padding:0;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:var(--nl-disabled);font-size:10px;font-weight:400;line-height:1;cursor:pointer;opacity:.5;transition:opacity .15s ease;font-family:var(--nl-font-regular)}.ok-native-list-index-rail:hover .ok-native-list-index-button,.ok-native-list-index-rail:focus-within .ok-native-list-index-button,.ok-native-list-index-button[data-active="true"]{opacity:1}.ok-native-list-index-button[data-active="true"]{background:var(--nl-positive);color:var(--nl-inverse-text);font-weight:500;font-family:var(--nl-font-medium)}.ok-native-list-index-button:focus-visible{outline:2px solid var(--nl-positive);outline-offset:1px}
497
+ .ok-native-list-footer{flex:0 0 auto;min-height:0}.ok-native-list-sticky{position:absolute;z-index:4;left:0;right:0;top:0;pointer-events:auto}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport{scrollbar-width:none}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport::-webkit-scrollbar,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport::-webkit-scrollbar{display:none}.ok-native-list-index-rail{position:absolute;z-index:6;top:0;right:0;bottom:0;width:${SECTION_INDEX_RAIL_WIDTH}px;touch-action:none;cursor:pointer;font-family:var(--nl-font-regular);font-synthesis:none}.ok-native-list-index-rail[hidden]{display:none}.ok-native-list-index-button{appearance:none;position:absolute;left:15px;display:flex;width:14px;height:14px;align-items:center;justify-content:center;padding:0;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:var(--nl-disabled);font-size:10px;font-weight:400;line-height:1;cursor:pointer;opacity:.5;transition:opacity .15s ease;font-family:var(--nl-font-regular)}.ok-native-list-index-rail:hover .ok-native-list-index-button,.ok-native-list-index-rail:focus-within .ok-native-list-index-button,.ok-native-list-index-button[data-active="true"]{opacity:1}.ok-native-list-index-button[data-active="true"]{background:var(--nl-positive);color:var(--nl-inverse-text);font-weight:500;font-family:var(--nl-font-medium)}.ok-native-list-index-button:focus-visible{outline:2px solid var(--nl-positive);outline-offset:1px}
492
498
  .ok-native-list-refresh{position:absolute;z-index:7;left:50%;top:8px;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:12px;opacity:0;transform:translate(-50%,-16px);transition:opacity .15s ease,transform .15s ease;pointer-events:none}.ok-native-list-refresh[data-visible="true"]{opacity:1;transform:translate(-50%,0)}
493
499
  .ok-native-list-warning{height:auto;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:14px 12px;border-top:1px solid;border-bottom:1px solid;box-sizing:border-box;cursor:default}.ok-native-list-warning-title,.ok-native-list-warning-message{font-size:14px;line-height:20px;white-space:normal;overflow-wrap:anywhere}.ok-native-list-warning-title{font-weight:500;color:var(--nl-primary);font-family:var(--nl-font-medium)}.ok-native-list-warning-message{font-weight:400;color:var(--nl-secondary);font-family:var(--nl-font-regular)}
494
500
  .ok-native-list-subtitle-segments{display:flex;align-items:center;min-width:0;max-width:100%;height:20px}.ok-native-list-subtitle-segments>.ok-native-list-secondary{flex:0 1 auto;min-width:0}.ok-native-list-subtitle-dot{flex:0 0 4px;width:4px;height:4px;margin:0 6px;border-radius:50%;background:var(--nl-disabled)}.ok-native-list-wallet-row>.ok-native-list-flex{flex:0 1 auto;width:100%;align-items:center}.ok-native-list-wallet-badges{display:flex;gap:4px;justify-content:center;margin-top:4px;height:20px;max-width:100%}.ok-native-list-wallet-badges>.ok-native-list-badge{background:var(--nl-strong);color:var(--nl-secondary);font-size:12px;line-height:16px;height:20px;box-sizing:border-box;padding:2px 4px}.ok-native-list-visual-overlay{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:50%;overflow:hidden;line-height:1;font-size:10px}.ok-native-list-visual-overlay img,.ok-native-list-visual-overlay svg{width:100%;height:100%;object-fit:contain}/* OneKey patch: selector controls follow their original semantic colors and geometry. */
@@ -521,6 +527,7 @@ export const WEB_LIST_CSS = `
521
527
  .ok-native-list-root .ok-native-list-item>[data-nl-container-background="true"],.ok-native-list-root .ok-native-list-wallet-member>[data-nl-container-background="true"]{background:var(--nl-container-background)}
522
528
  .ok-native-list-root [data-nl-container-border="true"]{position:relative}
523
529
  .ok-native-list-root [data-nl-container-border="true"]::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 var(--nl-container-border-width) var(--nl-container-border-color);z-index:2;pointer-events:none}
530
+ .ok-native-list-root [data-nl-inline-warning="true"][data-nl-container-border="true"]::before{box-shadow:none;border-block:var(--nl-container-border-width) solid var(--nl-container-border-color);border-inline:0;border-radius:0}
524
531
  .ok-native-list-root .ok-native-list-item[data-native-list-row-press-enabled="true"]:hover>[data-nl-container-background="true"],.ok-native-list-root .ok-native-list-item[data-native-list-row-press-enabled="true"]:active>[data-nl-container-background="true"],.ok-native-list-root .ok-native-list-wallet-member:hover>[data-nl-container-background="true"],.ok-native-list-root .ok-native-list-wallet-member:active>[data-nl-container-background="true"]{background:var(--nl-pressed)}
525
532
  `;
526
533
  function createElement(document, tag, className, text) {
@@ -581,7 +588,10 @@ function configureWebImageRetry(image, source, initialUri) {
581
588
  }
582
589
  if (orderedFallbacks !== undefined && retryCount >= retryLimit) {
583
590
  if (fallbackIndex >= orderedFallbacks.length) return;
584
- const nextUri = safeImageUri(orderedFallbacks[fallbackIndex++]);
591
+ let nextUri;
592
+ while (!nextUri && fallbackIndex < orderedFallbacks.length) {
593
+ nextUri = safeImageUri(orderedFallbacks[fallbackIndex++]);
594
+ }
585
595
  if (!nextUri) return;
586
596
  event.stopImmediatePropagation();
587
597
  retryCount = 0;
@@ -712,250 +722,25 @@ function paintSelectorImageBackground(image, frame, inset = 0) {
712
722
  frame.insertBefore(paint, image);
713
723
  if (image.complete && image.naturalWidth > 0) update();
714
724
  }
715
-
716
- // OneKey patch: use source SVG paths for selector actions and wallet provider marks.
717
- const selectorIcons = {
718
- CryptoCoinOutline: {
719
- viewBox: '0 0 24 24',
720
- paths: [{
721
- d: 'M11 16.387a4.5 4.5 0 0 1 0-8.775V6h2v1.613a4.5 4.5 0 0 1 2.856 2.067l-1.712 1.032a2.5 2.5 0 1 0 0 2.576l1.712 1.032A4.5 4.5 0 0 1 13 16.386V18h-2z',
722
- fill: 'currentColor',
723
- fillRule: 'nonzero',
724
- opacity: 1
725
- }, {
726
- d: 'M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0',
727
- fill: 'currentColor',
728
- fillRule: 'evenodd',
729
- opacity: 1
730
- }]
731
- },
732
- GlobusOutline: {
733
- viewBox: '0 0 24 24',
734
- paths: [{
735
- d: 'M12 2c5.185 0 9.448 3.947 9.95 9H22v2h-.05c-.502 5.053-4.765 9-9.95 9s-9.448-3.947-9.95-9H2v-2h.05C2.552 5.947 6.815 2 12 2M9.523 13c.09 1.982.438 3.726.934 5.002.29.746.612 1.282.917 1.614.304.331.517.384.626.384s.322-.053.626-.384c.305-.332.627-.868.917-1.614.496-1.276.845-3.02.934-5.002zm-5.459 0a8 8 0 0 0 4.8 6.36 10 10 0 0 1-.271-.633C7.994 17.187 7.61 15.189 7.52 13zm12.416 0c-.09 2.189-.474 4.187-1.073 5.727a10 10 0 0 1-.271.633 8 8 0 0 0 4.8-6.36zM8.863 4.639A8 8 0 0 0 4.064 11h3.457c.09-2.189.473-4.187 1.072-5.727q.127-.327.27-.634M12 4c-.109 0-.322.053-.626.384-.305.332-.627.868-.917 1.614-.496 1.276-.844 3.02-.934 5.002h4.954c-.09-1.982-.438-3.726-.934-5.002-.29-.746-.612-1.282-.917-1.614C12.322 4.053 12.109 4 12 4m3.136.639q.144.307.271.634c.599 1.54.982 3.538 1.073 5.727h3.456a8 8 0 0 0-4.8-6.361',
736
- fill: 'currentColor',
737
- fillRule: 'evenodd',
738
- opacity: 1.0
739
- }]
740
- },
741
- LockSolid: {
742
- viewBox: '0 0 24 24',
743
- paths: [{
744
- d: 'M12 2a5 5 0 0 1 5 5v2h3v13H4V9h3V7a5 5 0 0 1 5-5m-1 11v5h2v-5zm1-9a3 3 0 0 0-3 3v2h6V7a3 3 0 0 0-3-3',
745
- fill: 'currentColor',
746
- fillRule: 'evenodd',
747
- opacity: 1.0
748
- }]
749
- },
750
- GoogleIllus: {
751
- viewBox: '0 0 24 24',
752
- paths: [{
753
- d: 'M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09',
754
- fill: '#4285F4',
755
- fillRule: 'nonzero',
756
- opacity: 1.0
757
- }, {
758
- d: 'M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23',
759
- fill: '#34A853',
760
- fillRule: 'nonzero',
761
- opacity: 1.0
762
- }, {
763
- d: 'M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22z',
764
- fill: '#FBBC05',
765
- fillRule: 'nonzero',
766
- opacity: 1.0
767
- }, {
768
- d: 'M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53',
769
- fill: '#EA4335',
770
- fillRule: 'nonzero',
771
- opacity: 1.0
772
- }]
773
- },
774
- AppleBrand: {
775
- viewBox: '0 0 16 20',
776
- paths: [{
777
- d: 'M11.67.834c.117 1.074-.315 2.153-.955 2.928-.64.773-1.692 1.378-2.718 1.298-.14-1.054.38-2.151.971-2.836C9.63 1.45 10.746.872 11.67.834M14.994 7.093c-.176.108-1.992 1.224-1.972 3.482.025 2.769 2.428 3.693 2.46 3.705l-.004.015a10.1 10.1 0 0 1-1.264 2.593c-.764 1.116-1.556 2.229-2.806 2.254-.598.011-1-.162-1.416-.343-.437-.19-.891-.386-1.609-.386-.751 0-1.226.203-1.683.398-.397.169-.78.333-1.32.354-1.208.047-2.124-1.207-2.895-2.32C.909 14.57-.294 10.414 1.322 7.612c.803-1.395 2.237-2.275 3.794-2.298.671-.014 1.32.244 1.89.47.434.172.821.326 1.135.326.282 0 .659-.149 1.099-.323.692-.273 1.539-.607 2.41-.518.599.026 2.276.24 3.354 1.818z',
778
- fill: 'currentColor',
779
- fillRule: 'nonzero',
780
- opacity: 1.0
781
- }]
782
- },
783
- BotIllus: {
784
- viewBox: '0 0 24 24',
785
- paths: [{
786
- d: 'M11 2a1 1 0 1 1 2 0v1.8l1.6 1.6a1 1 0 1 1-1.4 1.4L12 5.6l-1.2 1.2a1 1 0 0 1-1.4-1.4L11 3.8z',
787
- fill: '#8897A5',
788
- fillRule: 'nonzero',
789
- opacity: 1.0
790
- }, {
791
- d: 'M8.0 6.0h8.0a5.0 5.0 0 0 1 5.0 5.0v4.0a5.0 5.0 0 0 1 -5.0 5.0h-8.0a5.0 5.0 0 0 1 -5.0 -5.0v-4.0a5.0 5.0 0 0 1 5.0 -5.0z',
792
- fill: '#3FA9F5',
793
- fillRule: 'nonzero',
794
- opacity: 1.0
795
- }, {
796
- d: 'M3.0 10.0h0.0a1.5 1.5 0 0 1 1.5 1.5v3.0a1.5 1.5 0 0 1 -1.5 1.5h0.0a1.5 1.5 0 0 1 -1.5 -1.5v-3.0a1.5 1.5 0 0 1 1.5 -1.5z',
797
- fill: '#8897A5',
798
- fillRule: 'nonzero',
799
- opacity: 1.0
800
- }, {
801
- d: 'M21.0 10.0h0.0a1.5 1.5 0 0 1 1.5 1.5v3.0a1.5 1.5 0 0 1 -1.5 1.5h0.0a1.5 1.5 0 0 1 -1.5 -1.5v-3.0a1.5 1.5 0 0 1 1.5 -1.5z',
802
- fill: '#8897A5',
803
- fillRule: 'nonzero',
804
- opacity: 1.0
805
- }, {
806
- d: 'M7.5 12.0a1.5 1.5 0 1 0 3.0 0a1.5 1.5 0 1 0 -3.0 0',
807
- fill: '#10243E',
808
- fillRule: 'nonzero',
809
- opacity: 1.0
810
- }, {
811
- d: 'M13.5 12.0a1.5 1.5 0 1 0 3.0 0a1.5 1.5 0 1 0 -3.0 0',
812
- fill: '#10243E',
813
- fillRule: 'nonzero',
814
- opacity: 1.0
815
- }, {
816
- d: 'M8.5 15.4c.9.8 2.08 1.2 3.5 1.2s2.6-.4 3.5-1.2c.24-.2.6-.18.8.06.2.23.17.6-.06.8-1.14.98-2.58 1.46-4.24 1.46s-3.1-.48-4.24-1.46a.58.58 0 0 1-.06-.8c.2-.24.56-.26.8-.06',
817
- fill: '#10243E',
818
- fillRule: 'nonzero',
819
- opacity: 1.0
820
- }]
821
- },
822
- AllNetworksSolid: {
823
- viewBox: '0 0 24 24',
824
- paths: [{
825
- d: 'M15.333 13.998a1.335 1.335 0 1 1 0 2.67 1.335 1.335 0 0 1 0-2.67',
826
- fill: 'currentColor',
827
- fillRule: 'nonzero',
828
- opacity: 1.0
829
- }, {
830
- d: 'M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0M8 12.668A2 2 0 0 0 6 14.666V16c0 1.103.895 1.997 1.998 1.998h1.334A2 2 0 0 0 11.33 16v-1.334a2 2 0 0 0-1.998-1.998zm7.333 0a2.665 2.665 0 1 0 0 5.33 2.665 2.665 0 0 0 0-5.33M7.999 6.001A2 2 0 0 0 6.001 8v1.334c0 1.103.895 1.998 1.998 1.998h1.334a2 2 0 0 0 1.998-1.998V7.999a2 2 0 0 0-1.998-1.998zm6.667 0A2 2 0 0 0 12.668 8v1.334c0 1.103.895 1.998 1.998 1.998H16a2 2 0 0 0 1.998-1.998V7.999A2 2 0 0 0 16 6.001z',
831
- fill: 'currentColor',
832
- fillRule: 'evenodd',
833
- opacity: 1.0
834
- }]
835
- },
836
- CrossedSmallSolid: {
837
- viewBox: '0 0 24 24',
838
- paths: [{
839
- d: 'M17.87 8.25 14.12 12l3.75 3.75-2.12 2.121-3.75-3.75-3.75 3.75-2.121-2.121L9.879 12l-3.75-3.75 2.12-2.121L12 9.879l3.75-3.75 2.122 2.121Z',
840
- fill: 'currentColor',
841
- fillRule: 'nonzero',
842
- opacity: 1.0
843
- }]
844
- },
845
- AccountErrorCustom: {
846
- viewBox: '0 0 18 18',
847
- paths: [{
848
- d: 'M12.5 12.75a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5',
849
- fill: '#000',
850
- fillRule: 'nonzero',
851
- opacity: 0.447
852
- }, {
853
- d: 'M0 3.5A3.5 3.5 0 0 1 3.5 0h8.088A2.41 2.41 0 0 1 14 2.412V5h1a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H4a4 4 0 0 1-4-4zm2 3.163V14a2 2 0 0 0 2 2h11a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3.5c-.537 0-1.045-.12-1.5-.337M2 3.5A1.5 1.5 0 0 0 3.5 5H12V2.412A.41.41 0 0 0 11.588 2H3.5A1.5 1.5 0 0 0 2 3.5',
854
- fill: '#000',
855
- fillRule: 'evenodd',
856
- opacity: 0.447
857
- }]
858
- },
859
- PlusSmallOutline: {
860
- viewBox: '0 0 24 24',
861
- paths: [{
862
- d: 'M13 11h5v2h-5v5h-2v-5H6v-2h5V6h2z',
863
- fill: 'currentColor',
864
- fillRule: 'nonzero',
865
- opacity: 1.0
866
- }]
867
- },
868
- DotHorOutline: {
869
- viewBox: '0 0 24 24',
870
- paths: [{
871
- d: 'M6 14H2v-4h4zm8 0h-4v-4h4zm8 0h-4v-4h4z',
872
- fill: 'currentColor',
873
- fillRule: 'nonzero',
874
- opacity: 1.0
875
- }]
876
- },
877
- ChevronRightSmallOutline: {
878
- viewBox: '0 0 24 24',
879
- paths: [{
880
- d: 'M15.414 12 10 17.414 8.586 16l4-4-4-4L10 6.586z',
881
- fill: 'currentColor',
882
- fillRule: 'nonzero',
883
- opacity: 1.0
884
- }]
885
- },
886
- DragOutline: {
887
- viewBox: '0 0 24 24',
888
- paths: [{
889
- d: 'M11 21H7v-4h4zm6 0h-4v-4h4zm-6-7H7v-4h4zm6 0h-4v-4h4zm-6-7H7V3h4zm6 0h-4V3h4z',
890
- fill: 'currentColor',
891
- fillRule: 'nonzero',
892
- opacity: 1.0
893
- }]
894
- },
895
- PencilOutline: {
896
- viewBox: '0 0 24 24',
897
- paths: [{
898
- d: 'M22.414 7.5 7.914 22H2v-5.914l14.5-14.5zM4 16.914V20h3.086l9.5-9.5L13.5 7.414zM14.914 6 18 9.086 19.586 7.5 16.5 4.414z',
899
- fill: 'currentColor',
900
- fillRule: 'evenodd',
901
- opacity: 1.0
902
- }]
903
- },
904
- CheckboxCheckedCustom: {
905
- viewBox: '0 0 16 16',
906
- paths: [{
907
- d: 'M12.204 5.043a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414 0l-2-2a1 1 0 1 1 1.414-1.414l1.293 1.293 3.793-3.793a1 1 0 0 1 1.414 0',
908
- fill: 'currentColor',
909
- fillRule: 'evenodd',
910
- opacity: 1.0
911
- }]
912
- },
913
- CheckboxIndeterminateCustom: {
914
- viewBox: '0 0 16 16',
915
- paths: [{
916
- d: 'M4 8a1 1 0 0 1 1-1h6a1 1 0 0 1 0 2H5a1 1 0 0 1-1-1',
917
- fill: 'currentColor',
918
- fillRule: 'evenodd',
919
- opacity: 1.0
920
- }]
921
- },
922
- Circle: {
923
- viewBox: '0 0 24 24',
924
- paths: [{
925
- d: 'M0 12a12 12 0 1 0 24 0a12 12 0 1 0 -24 0',
926
- fill: 'currentColor',
927
- fillRule: 'nonzero',
928
- opacity: 1
929
- }]
930
- },
931
- BadgeVerifiedSolid: {
932
- viewBox: '0 0 24 24',
933
- paths: [{
934
- d: WEB_MARKET_VERIFIED_PATH,
935
- fill: 'currentColor',
936
- fillRule: 'evenodd',
937
- opacity: 1
938
- }]
939
- }
940
- };
941
725
  function applySelectorIcon(element, name) {
942
- const icon = selectorIcons[name];
943
- if (!icon) return;
944
- element.textContent = '';
945
- const svg = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', 'svg');
946
- svg.setAttribute('viewBox', icon.viewBox);
947
- svg.setAttribute('width', '24');
948
- svg.setAttribute('height', '24');
949
- svg.setAttribute('aria-hidden', 'true');
950
- icon.paths.forEach(path => {
951
- const child = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', 'path');
952
- child.setAttribute('d', path.d);
953
- child.setAttribute('fill', path.fill);
954
- child.setAttribute('fill-rule', path.fillRule);
955
- child.setAttribute('fill-opacity', String(path.opacity));
956
- svg.appendChild(child);
957
- });
958
- element.appendChild(svg);
726
+ const canonical = selectorIcons[name];
727
+ if (!canonical) return;
728
+ if (canonical === 'Circle') {
729
+ const svg = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', 'svg');
730
+ svg.setAttribute('viewBox', '0 0 24 24');
731
+ svg.setAttribute('width', '24');
732
+ svg.setAttribute('height', '24');
733
+ svg.setAttribute('aria-hidden', 'true');
734
+ const circle = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', 'circle');
735
+ circle.setAttribute('cx', '12');
736
+ circle.setAttribute('cy', '12');
737
+ circle.setAttribute('r', '12');
738
+ circle.setAttribute('fill', 'currentColor');
739
+ svg.append(circle);
740
+ element.replaceChildren(svg);
741
+ return;
742
+ }
743
+ element.replaceChildren(createNamedIcon(element.ownerDocument, canonical));
959
744
  }
960
745
  function iconGlyph(name) {
961
746
  const normalized = name.toLocaleLowerCase();
@@ -1006,6 +791,8 @@ function createVisual(context, visual, selectorPresentation) {
1006
791
  const showsSourcePlaceholder = !!source && source.loadingStrategy !== undefined && source.loadingStrategy !== 'none';
1007
792
  frame.style.background = showsSourcePlaceholder ? 'var(--nl-strong)' : visualBackground;
1008
793
  const fallbackIcon = 'fallbackIcon' in visual ? visual.fallbackIcon : undefined;
794
+ const fallbackBackground = fallbackIcon?.backgroundColor ?? 'var(--nl-strong)';
795
+ if (!source && fallbackIcon?.backgroundColor) frame.style.background = fallbackBackground;
1009
796
  const handlesSourceFallback = showsSourcePlaceholder && (fallbackIcon !== undefined || 'fallbackText' in visual);
1010
797
  const image = source ? createImage(context, source) : undefined;
1011
798
  if (image) {
@@ -1019,6 +806,24 @@ function createVisual(context, visual, selectorPresentation) {
1019
806
  if (image.complete && image.naturalWidth > 0) restoreBackground();
1020
807
  }
1021
808
  if (selectorPresentation) paintSelectorImageBackground(image, frame);
809
+ if (source?.loadingStrategy === 'skeleton' && !(image.complete && image.naturalWidth > 0)) {
810
+ const skeleton = createElement(context.document, 'span', 'ok-native-list-image-skeleton');
811
+ const background = resolvedTheme(context.snapshot).background;
812
+ const rgb = /^#([0-9a-f]{6})/i.exec(background)?.[1];
813
+ if (rgb) {
814
+ const red = Number.parseInt(rgb.slice(0, 2), 16);
815
+ const green = Number.parseInt(rgb.slice(2, 4), 16);
816
+ const blue = Number.parseInt(rgb.slice(4, 6), 16);
817
+ if (red * 299 + green * 587 + blue * 114 < 128_000) skeleton.dataset.dark = 'true';
818
+ }
819
+ frame.appendChild(skeleton);
820
+ image.addEventListener('load', () => skeleton.remove(), {
821
+ once: true
822
+ });
823
+ image.addEventListener('error', () => skeleton.remove(), {
824
+ once: true
825
+ });
826
+ }
1022
827
  } else if (!source || showsSourcePlaceholder) {
1023
828
  frame.appendChild(createElement(context.document, 'span', 'ok-native-list-visual-fallback', 'fallbackText' in visual ? visual.fallbackText ?? '' : ''));
1024
829
  }
@@ -1042,11 +847,19 @@ function createVisual(context, visual, selectorPresentation) {
1042
847
  }
1043
848
  frame.querySelector('.ok-native-list-visual-fallback:not(.ok-native-list-visual-corner)')?.remove();
1044
849
  const fallback = createElement(context.document, 'span', 'ok-native-list-visual-fallback', fallbackIcon ? undefined : 'fallbackText' in visual ? visual.fallbackText ?? '' : '');
850
+ if ('fallbackTextColor' in visual && visual.fallbackTextColor && !fallbackIcon) fallback.style.color = visual.fallbackTextColor;
1045
851
  if (fallbackIcon) {
1046
852
  applySelectorIcon(fallback, fallbackIcon.name);
1047
853
  if (fallbackIcon.tintColor) fallback.style.color = fallbackIcon.tintColor;
854
+ if (fallbackIcon.size) {
855
+ const svg = fallback.querySelector('svg');
856
+ if (svg) {
857
+ svg.style.width = `${fallbackIcon.size}px`;
858
+ svg.style.height = `${fallbackIcon.size}px`;
859
+ }
860
+ }
1048
861
  }
1049
- fallback.style.backgroundColor = 'var(--nl-image-fallback-background, transparent)';
862
+ if (fallbackIcon?.backgroundColor) frame.style.background = fallbackBackground;else fallback.style.backgroundColor = 'var(--nl-image-fallback-background, transparent)';
1050
863
  frame.prepend(fallback);
1051
864
  };
1052
865
  if (image) image.addEventListener('error', showFallback, {
@@ -1056,6 +869,9 @@ function createVisual(context, visual, selectorPresentation) {
1056
869
  if ('borderStyle' in visual && visual.borderStyle === 'dashed') {
1057
870
  frame.style.border = '2px dashed ' + (visual.borderColor ?? 'var(--nl-disabled)');
1058
871
  frame.style.boxSizing = 'border-box';
872
+ } else if ('borderColor' in visual && visual.borderColor) {
873
+ frame.style.border = '1px solid ' + visual.borderColor;
874
+ frame.style.boxSizing = 'border-box';
1059
875
  }
1060
876
  if ('overlays' in visual) visual.overlays?.forEach(overlay => {
1061
877
  const corner = createElement(context.document, 'span', 'ok-native-list-visual-overlay', overlay.text);
@@ -1069,6 +885,12 @@ function createVisual(context, visual, selectorPresentation) {
1069
885
  corner.style.lineHeight = '16px';
1070
886
  applyTextWeight(corner, '400');
1071
887
  }
888
+ if (overlay.fontWeight) applyTextWeight(corner, {
889
+ regular: 400,
890
+ medium: 500,
891
+ semibold: 600,
892
+ bold: 700
893
+ }[overlay.fontWeight]);
1072
894
  if (isWalletText || overlay.width !== undefined || overlay.height !== undefined) corner.style.borderRadius = '9999px';
1073
895
  const offsetX = String(-(overlay.offsetX ?? overlay.offset ?? 2)) + 'px';
1074
896
  const offsetY = String(-(overlay.offsetY ?? overlay.offset ?? 2)) + 'px';
@@ -1084,7 +906,20 @@ function createVisual(context, visual, selectorPresentation) {
1084
906
  if (overlay.image) {
1085
907
  const overlayImage = createImage(context, overlay.image);
1086
908
  if (overlayImage) {
909
+ if ((overlay.padding ?? 0) > 0 && (overlay.width ?? size) === (overlay.height ?? size)) overlayImage.style.borderRadius = '50%';
1087
910
  corner.appendChild(overlayImage);
911
+ if (overlay.fallbackIcon) {
912
+ overlayImage.addEventListener('error', () => {
913
+ disposeWebImageRetries(overlayImage);
914
+ overlayImage.remove();
915
+ const glyph = createElement(context.document, 'span', 'ok-native-list-overlay-fallback');
916
+ applySelectorIcon(glyph, overlay.fallbackIcon.name);
917
+ if (overlay.fallbackIcon?.tintColor) glyph.style.color = overlay.fallbackIcon.tintColor;
918
+ corner.appendChild(glyph);
919
+ }, {
920
+ once: true
921
+ });
922
+ }
1088
923
  if (selectorPresentation) paintSelectorImageBackground(overlayImage, corner, overlay.padding ?? 0);
1089
924
  }
1090
925
  } else if (overlay.name) applySelectorIcon(corner, overlay.name);
@@ -1151,6 +986,7 @@ function createIconAction(context, name, actionKey, disabled, tintColor) {
1151
986
  if (element.tagName === 'BUTTON') {
1152
987
  element.setAttribute('type', 'button');
1153
988
  element.toggleAttribute('disabled', Boolean(disabled));
989
+ if (name === 'DotVerSolid') element.setAttribute('aria-label', '⋮');
1154
990
  }
1155
991
  applySelectorIcon(element, name);
1156
992
  if (actionKey) setData(element, 'nativeListAction', actionKey);
@@ -1164,7 +1000,23 @@ function markActionAnchorSource(element, source, slot) {
1164
1000
 
1165
1001
  // OneKey patch: the compact zero-count digits share the amount baseline.
1166
1002
 
1167
- function createAccessory(context, rowKey, accessory, slot) {
1003
+ function createAccessory(context, rowKey, accessory, slot, rowDisabled) {
1004
+ if (accessory.kind === 'button') {
1005
+ const element = createElement(context.document, 'button', 'ok-native-list-trailing-button', accessory.label);
1006
+ element.type = 'button';
1007
+ element.disabled = Boolean(rowDisabled || accessory.disabled);
1008
+ element.setAttribute('aria-disabled', String(element.disabled));
1009
+ element.setAttribute('aria-label', accessory.accessibilityLabel ?? accessory.label);
1010
+ setData(element, 'testid', accessory.testID);
1011
+ setData(element, 'nativeListAction', accessory.actionKey);
1012
+ markActionAnchorSource(element, 'trailingAccessory', slot);
1013
+ if (accessory.textColor) element.style.setProperty('--nl-button-text', accessory.textColor);
1014
+ if (accessory.backgroundColor) element.style.setProperty('--nl-button-bg', accessory.backgroundColor);
1015
+ if (accessory.pressedBackgroundColor) element.style.setProperty('--nl-button-pressed', accessory.pressedBackgroundColor);
1016
+ if (accessory.hoverBackgroundColor) element.style.setProperty('--nl-button-hover', accessory.hoverBackgroundColor);
1017
+ if (accessory.focusRingColor) element.style.setProperty('--nl-button-focus', accessory.focusRingColor);
1018
+ return element;
1019
+ }
1168
1020
  if (accessory.kind === 'checkbox') {
1169
1021
  const element = createCheckbox(context, rowKey, accessory);
1170
1022
  markActionAnchorSource(element, 'trailingAccessory', slot);
@@ -1173,8 +1025,19 @@ function createAccessory(context, rowKey, accessory, slot) {
1173
1025
  if (accessory.kind === 'icon') {
1174
1026
  const element = createIconAction(context, accessory.name, accessory.actionKey, accessory.disabled, accessory.tintColor);
1175
1027
  markActionAnchorSource(element, 'trailingAccessory', slot);
1028
+ if (accessory.name === 'RefreshCcwOutline' && !accessory.actionKey) {
1029
+ element.classList.add('ok-native-list-decorative-refresh');
1030
+ const glyph = element.querySelector('svg');
1031
+ glyph?.setAttribute('width', '16');
1032
+ glyph?.setAttribute('height', '16');
1033
+ }
1034
+ if (accessory.buttonStyle === 'tertiary') {
1035
+ element.classList.add('ok-native-list-tertiary-icon');
1036
+ setData(element, 'nativeListAnchorInset', 7);
1037
+ }
1176
1038
  setData(element, 'testid', accessory.testID);
1177
1039
  if (accessory.hoverActionKey) setData(element, 'nativeListHoverAction', accessory.hoverActionKey);
1040
+ if (accessory.hoverActionKey && accessory.buttonStyle === 'tertiary') setData(element, 'nativeListIconHelp', true);
1178
1041
  if (accessory.accessibilityLabel) element.setAttribute('aria-label', accessory.accessibilityLabel);
1179
1042
  const row = context.snapshot.rows[context.itemIndex];
1180
1043
  if (row && 'presentation' in row && row.presentation === 'accountSelector') {
@@ -1207,8 +1070,27 @@ function createAccessory(context, rowKey, accessory, slot) {
1207
1070
  {
1208
1071
  const primary = createElement(context.document, 'span', undefined, accessory.primary);
1209
1072
  primary.style.color = toneColor(accessory.primaryTone, 'primary');
1073
+ applyValueSegments(primary, accessory.primaryTextSegments, 16, 20, 500);
1074
+ if (accessory.primaryFontWeight === 'medium') applyTextWeight(primary, 500);
1075
+ if (accessory.primaryHelp) {
1076
+ const help = accessory.primaryHelp;
1077
+ primary.tabIndex = 0;
1078
+ primary.setAttribute('role', 'button');
1079
+ if (help.presentation === 'tooltip') {
1080
+ setData(primary, 'nativeListHoverAction', help.actionKey);
1081
+ setData(primary, 'nativeListIconHelp', true);
1082
+ } else {
1083
+ setData(primary, 'nativeListAction', help.actionKey);
1084
+ }
1085
+ if (help.underline === 'dashed') {
1086
+ primary.style.textDecoration = 'underline dashed';
1087
+ primary.style.textUnderlineOffset = '4px';
1088
+ }
1089
+ markActionAnchorSource(primary, 'trailingAccessory', slot);
1090
+ }
1210
1091
  const secondary = createElement(context.document, 'span', 'ok-native-list-secondary', accessory.secondary);
1211
1092
  secondary.style.color = toneColor(accessory.secondaryTone, 'secondary');
1093
+ applyValueSegments(secondary, accessory.secondaryTextSegments, 14, 20, 400);
1212
1094
  element.replaceChildren(primary, '\n', secondary);
1213
1095
  element.classList.add('ok-native-list-amounts');
1214
1096
  break;
@@ -1236,10 +1118,10 @@ function createAccessory(context, rowKey, accessory, slot) {
1236
1118
  if (actionKey) markActionAnchorSource(element, 'trailingAccessory', slot);
1237
1119
  return element;
1238
1120
  }
1239
- function rendererPrimitives(context) {
1121
+ function rendererPrimitives(context, rowDisabled) {
1240
1122
  return {
1241
1123
  background: resolvedTheme(context.snapshot).background,
1242
- accessory: (key, descriptor, slot) => createAccessory(context, key, descriptor, slot),
1124
+ accessory: (key, descriptor, slot) => createAccessory(context, key, descriptor, slot, rowDisabled),
1243
1125
  visual: (source, presentation) => createVisual(context, source, presentation),
1244
1126
  thumbnail: source => createImage(context, source, 'ok-native-list-thumbnail'),
1245
1127
  textStyle: applyTextStyleToSlot,
@@ -1249,7 +1131,7 @@ function rendererPrimitives(context) {
1249
1131
  };
1250
1132
  }
1251
1133
  export function createRowBody(context, row) {
1252
- return rowRenderer(row).create(context.document, rendererPrimitives(context));
1134
+ return rowRenderer(row).create(context.document, rendererPrimitives(context, Boolean(row.disabled)));
1253
1135
  }
1254
1136
  export class NativeListWebEngine {
1255
1137
  rows = [];
@@ -1267,6 +1149,7 @@ export class NativeListWebEngine {
1267
1149
  rail: [],
1268
1150
  mediaTile: [],
1269
1151
  action: [],
1152
+ buttonGroup: [],
1270
1153
  system: [],
1271
1154
  activity: [],
1272
1155
  dataRow: [],
@@ -1293,6 +1176,16 @@ export class NativeListWebEngine {
1293
1176
  lastViewportWidth = -1;
1294
1177
  lastViewportHeight = -1;
1295
1178
  destroyed = false;
1179
+ hasAppliedSnapshot = false;
1180
+ structuralRevision = 0;
1181
+ structuralAnimations = [];
1182
+ structuralScrollInterrupted = false;
1183
+ reactFooterHeight = 0;
1184
+ structuralFooterCompensation = 0;
1185
+ structuralFooterExpansion = 0;
1186
+ structuralFooterFromHeight = 0;
1187
+ structuralProgress = 0;
1188
+ structuralPrefixTransition = false;
1296
1189
  sectionIndexAlignStart = false;
1297
1190
  // Renderers report intrinsic height after browser text wrapping.
1298
1191
  measuredRendererHeights = new Map();
@@ -1324,7 +1217,7 @@ export class NativeListWebEngine {
1324
1217
  this.contentBounds = scrollOptions.contentBounds;
1325
1218
  this.externalStickyInset = this.validateStickyInset(scrollOptions.stickyInset);
1326
1219
  this.document = host.ownerDocument;
1327
- this.snapshot = validateSnapshot(snapshot);
1220
+ this.snapshot = containNativeListInput(() => validateSnapshot(snapshot)) ?? emptyNativeListSnapshot();
1328
1221
  this.callbacks = callbacks;
1329
1222
  this.virtualizationEnabled = virtualizationEnabled;
1330
1223
  this.sectionIndexContainer = sectionIndexContainer ?? undefined;
@@ -1381,6 +1274,9 @@ export class NativeListWebEngine {
1381
1274
  });
1382
1275
  }
1383
1276
  (this.externalScrollHost ?? this.viewport).addEventListener('ok-collapsible-pager-cancel-scroll-command', this.handlePagerScrollCommandCancel);
1277
+ for (const event of ['wheel', 'pointerdown', 'touchstart']) (this.externalScrollHost ?? this.viewport).addEventListener(event, this.handleStructuralUserScroll, {
1278
+ passive: true
1279
+ });
1384
1280
  this.viewport.addEventListener('scroll', this.handleScroll, {
1385
1281
  passive: true
1386
1282
  });
@@ -1396,6 +1292,7 @@ export class NativeListWebEngine {
1396
1292
  this.root.addEventListener('pointercancel', this.handleMarketPointerEnd);
1397
1293
  // OneKey patch: preserve web tooltip hover for section titles.
1398
1294
  this.root.addEventListener('pointerover', this.handleTitlePointerOver);
1295
+ this.root.addEventListener('pointerdown', this.handleIconHelpPointerDown);
1399
1296
  this.root.addEventListener('focusin', this.handleTitlePointerOver);
1400
1297
  this.root.addEventListener('focusout', this.handleTitlePointerOut);
1401
1298
  this.root.addEventListener('pointerout', this.handleTitlePointerOut);
@@ -1449,7 +1346,7 @@ export class NativeListWebEngine {
1449
1346
  this.document.fonts?.addEventListener('loadingdone', this.handleWindowResize);
1450
1347
  this.observeSectionIndexTransforms();
1451
1348
  this.applyFontFamilies(fontFamiliesJson);
1452
- this.applySnapshot(this.snapshot);
1349
+ this.applyValidatedSnapshot(this.snapshot);
1453
1350
  }
1454
1351
  validateStickyInset(value = 0) {
1455
1352
  if (!Number.isFinite(value) || value < 0) throw new Error('webStickyInset must be finite and non-negative');
@@ -1513,10 +1410,291 @@ export class NativeListWebEngine {
1513
1410
  this.renderWindow();
1514
1411
  }
1515
1412
  applySnapshot(snapshot) {
1516
- const validated = validateSnapshot(snapshot);
1517
- if (this.externalScrollHost && validated.layout.orientation === 'horizontal') throw new Error('External scrolling supports vertical lists only');
1413
+ const validated = containNativeListInput(() => {
1414
+ const next = validateSnapshot(snapshot);
1415
+ if (this.externalScrollHost && next.layout.orientation === 'horizontal') throw new Error('External scrolling supports vertical lists only');
1416
+ return next;
1417
+ });
1418
+ if (!validated) return;
1419
+ this.applyValidatedSnapshot(validated);
1420
+ }
1421
+ applyValidatedSnapshot(validated) {
1422
+ this.pressedHelpElement = undefined;
1518
1423
  this.invalidateActionAnchor('snapshot');
1519
- this.setSnapshot(validated);
1424
+ const transition = validated.structuralTransition;
1425
+ const isNewTransition = transition !== undefined && transition.id !== this.lastStructuralTransitionId;
1426
+ if (transition) this.lastStructuralTransitionId = transition.id;
1427
+ const nextRows = effectiveRows(validated);
1428
+ const changedKeys = this.rows.length !== nextRows.length || this.rows.some((row, index) => row.key !== nextRows[index]?.key);
1429
+ const incompatibleActivePrefix = this.structuralPrefixTransition && (validated.layout.kind !== this.snapshot.layout.kind || validated.layout.orientation !== this.snapshot.layout.orientation || nextRows.some((row, index) => row.height !== this.rows[index]?.height || row.style?.container?.height !== this.rows[index]?.style?.container?.height));
1430
+ const shouldAnimate = this.hasAppliedSnapshot && isNewTransition && changedKeys && (this.snapshot.layout.kind === 'linear' || this.snapshot.layout.kind === 'table') && this.snapshot.layout.orientation !== 'horizontal' && (validated.layout.kind === 'linear' || validated.layout.kind === 'table') && validated.layout.orientation !== 'horizontal' && (transition?.durationMs ?? 220) > 0 && !this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
1431
+ if (shouldAnimate && transition) this.applyStructuralSnapshot(validated, transition);else {
1432
+ if (isNewTransition || changedKeys || incompatibleActivePrefix) this.cancelStructuralAnimation();
1433
+ this.setSnapshot(validated);
1434
+ }
1435
+ this.hasAppliedSnapshot = true;
1436
+ }
1437
+ cancelStructuralAnimation() {
1438
+ this.structuralRevision += 1;
1439
+ if (this.structuralFrame !== undefined) this.document.defaultView?.cancelAnimationFrame(this.structuralFrame);
1440
+ if (this.structuralFinish !== undefined) this.document.defaultView?.clearTimeout(this.structuralFinish);
1441
+ this.structuralFrame = undefined;
1442
+ this.structuralFinish = undefined;
1443
+ this.structuralAnimations.forEach(animation => animation.cancel());
1444
+ this.structuralAnimations = [];
1445
+ if (this.structuralTail) {
1446
+ disposeWebImageRetries(this.structuralTail.layer);
1447
+ this.structuralTail.layer.remove();
1448
+ this.structuralTail = undefined;
1449
+ }
1450
+ if (this.structuralContentOverflow !== undefined) {
1451
+ this.content.style.overflow = this.structuralContentOverflow;
1452
+ this.structuralContentOverflow = undefined;
1453
+ }
1454
+ this.structuralPrefixTransition = false;
1455
+ if (this.structuralFooterElement && this.structuralFooterStyles) {
1456
+ this.structuralFooterElement.style.marginBottom = this.structuralFooterStyles.marginBottom;
1457
+ this.structuralFooterElement.style.transform = this.structuralFooterStyles.transform;
1458
+ this.structuralFooterElement.style.clipPath = this.structuralFooterStyles.clipPath;
1459
+ }
1460
+ this.structuralFooterElement = undefined;
1461
+ this.structuralFooterStyles = undefined;
1462
+ this.structuralScrollInterrupted = false;
1463
+ this.structuralRenderedHeight = undefined;
1464
+ this.structuralTargetHeight = undefined;
1465
+ this.structuralFooterCompensation = 0;
1466
+ this.structuralFooterExpansion = 0;
1467
+ this.structuralProgress = 0;
1468
+ const owner = this.externalScrollHost ?? this.viewport;
1469
+ if (this.structuralAnchorStyles) {
1470
+ owner.style.overflowAnchor = this.structuralAnchorStyles.owner;
1471
+ this.content.style.overflowAnchor = this.structuralAnchorStyles.content;
1472
+ this.structuralAnchorStyles = undefined;
1473
+ }
1474
+ }
1475
+ handleStructuralUserScroll = event => {
1476
+ if (event.type === 'pointerdown' && event.target !== (this.externalScrollHost ?? this.viewport) && event.pointerType !== 'touch') return;
1477
+ this.structuralScrollInterrupted = true;
1478
+ if (this.structuralPrefixTransition) {
1479
+ this.cancelStructuralAnimation();
1480
+ this.recomputeLayout();
1481
+ }
1482
+ };
1483
+ updateStructuralTailWindow() {
1484
+ const tail = this.structuralTail;
1485
+ if (!tail) return;
1486
+ const visible = visibleWebLayoutItems(tail.layout, this.currentOffset(), this.viewportLength(), this.viewportLength() * OVERSCAN_VIEWPORTS).filter(item => item.index >= tail.firstIndex);
1487
+ const desired = new Set(visible.map(item => item.index));
1488
+ tail.mounted.forEach((element, index) => {
1489
+ if (desired.has(index)) return;
1490
+ disposeWebImageRetries(element);
1491
+ element.remove();
1492
+ tail.mounted.delete(index);
1493
+ });
1494
+ visible.forEach(item => {
1495
+ if (tail.mounted.has(item.index)) return;
1496
+ const row = tail.rows[item.index];
1497
+ if (!row) return;
1498
+ const element = createElement(this.document, 'div', 'ok-native-list-item');
1499
+ element.setAttribute('aria-hidden', 'true');
1500
+ element.style.pointerEvents = 'none';
1501
+ element.style.opacity = String((row.style?.container?.opacity ?? row.opacity ?? 1) * (row.disabled ? 0.5 : 1));
1502
+ const body = createRowBody({
1503
+ document: this.document,
1504
+ snapshot: tail.snapshot,
1505
+ selectedKeys: selectionStateFromSnapshot(tail.snapshot).selectedKeys,
1506
+ itemIndex: item.index
1507
+ }, row);
1508
+ applyRowStyle(body, row);
1509
+ element.append(body);
1510
+ this.positionElement(element, item);
1511
+ tail.layer.append(element);
1512
+ tail.mounted.set(item.index, element);
1513
+ });
1514
+ }
1515
+ writeStructuralHeight(height) {
1516
+ if (this.externalScrollHost) this.writeExternalHeight(height);else this.content.style.height = `${height}px`;
1517
+ }
1518
+ reactFooterElement() {
1519
+ return this.contentBounds?.querySelector('[data-testid="native-list-footer-slot"]');
1520
+ }
1521
+ readReactFooterHeight() {
1522
+ return this.reactFooterElement()?.getBoundingClientRect().height ?? 0;
1523
+ }
1524
+ applyStructuralFooterVisual(progress) {
1525
+ const footer = this.structuralFooterElement;
1526
+ if (!footer || this.structuralFooterExpansion <= 0) return;
1527
+ const hidden = this.structuralFooterExpansion * (1 - progress);
1528
+ footer.style.marginBottom = `${-hidden}px`;
1529
+ footer.style.transform = `translateY(${-hidden}px)`;
1530
+ footer.style.clipPath = `inset(${hidden}px 0 0 0)`;
1531
+ }
1532
+ applyStructuralSnapshot(next, transition) {
1533
+ const owner = this.externalScrollHost ?? this.viewport;
1534
+ const oldOffset = owner.scrollTop;
1535
+ const oldScrollHeight = owner.scrollHeight;
1536
+ const oldHeight = this.structuralRenderedHeight ?? (this.content.getBoundingClientRect().height || this.layout.contentHeight);
1537
+ const nextFooterHeight = this.readReactFooterHeight();
1538
+ const oldFooterHeight = this.structuralRenderedHeight === undefined ? this.reactFooterHeight : this.structuralFooterFromHeight + (this.reactFooterHeight - this.structuralFooterFromHeight) * this.structuralProgress;
1539
+ const footerDifference = oldFooterHeight - nextFooterHeight;
1540
+ const startHeight = oldHeight + Math.max(0, footerDifference);
1541
+ const oldSnapshot = this.snapshot;
1542
+ const oldRows = this.rows;
1543
+ const oldLayout = this.layout;
1544
+ const oldItems = oldLayout.items;
1545
+ const nextRows = effectiveRows(next);
1546
+ const prefixCount = Math.min(oldRows.length, nextRows.length);
1547
+ const prefixTailChange = oldSnapshot.layout.kind === next.layout.kind && oldSnapshot.layout.orientation === next.layout.orientation && oldRows.length !== nextRows.length && oldRows.slice(0, prefixCount).every((row, index) => row.key === nextRows[index]?.key);
1548
+ const oldPositions = new Map();
1549
+ this.mounted.forEach((element, index) => {
1550
+ const row = this.rows[index];
1551
+ if (row) oldPositions.set(row.key, element.getBoundingClientRect().top);
1552
+ });
1553
+ const nextKeys = new Set(effectiveRows(next).map(row => row.key));
1554
+ const visibleOffset = this.currentOffset();
1555
+ const visibleSurvivor = oldItems.find(item => item.y + item.height > visibleOffset && nextKeys.has(item.key));
1556
+ const anchor = visibleSurvivor;
1557
+ this.cancelStructuralAnimation();
1558
+ this.structuralScrollInterrupted = false;
1559
+ this.structuralAnchorStyles = {
1560
+ owner: owner.style.overflowAnchor,
1561
+ content: this.content.style.overflowAnchor
1562
+ };
1563
+ owner.style.overflowAnchor = 'none';
1564
+ this.content.style.overflowAnchor = 'none';
1565
+ this.structuralContentOverflow = this.content.style.overflow;
1566
+ if (prefixTailChange) this.content.style.overflow = 'clip';
1567
+ this.structuralRenderedHeight = startHeight;
1568
+ this.structuralFooterFromHeight = oldFooterHeight;
1569
+ this.structuralFooterCompensation = Math.max(0, footerDifference);
1570
+ this.structuralFooterExpansion = Math.max(0, -footerDifference);
1571
+ this.structuralProgress = 0;
1572
+ this.reactFooterHeight = nextFooterHeight;
1573
+ this.structuralFooterElement = this.reactFooterElement() ?? undefined;
1574
+ if (this.structuralFooterElement) {
1575
+ const style = this.structuralFooterElement.style;
1576
+ this.structuralFooterStyles = {
1577
+ marginBottom: style.marginBottom,
1578
+ transform: style.transform,
1579
+ clipPath: style.clipPath
1580
+ };
1581
+ this.applyStructuralFooterVisual(0);
1582
+ }
1583
+ this.setSnapshot(next);
1584
+ const newHeight = this.layout.contentHeight;
1585
+ this.structuralTargetHeight = newHeight;
1586
+ const stablePrefixGeometry = prefixTailChange && oldItems.length === oldRows.length && this.layout.items.length === nextRows.length && oldItems.slice(0, prefixCount).every((item, index) => {
1587
+ const nextItem = this.layout.items[index];
1588
+ return nextItem?.y === item.y && nextItem?.height === item.height && nextItem?.width === item.width;
1589
+ });
1590
+ if (!stablePrefixGeometry) {
1591
+ this.content.style.overflow = this.structuralContentOverflow;
1592
+ this.structuralContentOverflow = undefined;
1593
+ } else {
1594
+ this.structuralPrefixTransition = true;
1595
+ }
1596
+ if (stablePrefixGeometry && nextRows.length < oldRows.length) {
1597
+ const layer = createElement(this.document, 'div', 'ok-native-list-structural-tail');
1598
+ layer.setAttribute('aria-hidden', 'true');
1599
+ layer.setAttribute('inert', '');
1600
+ Object.assign(layer.style, {
1601
+ position: 'absolute',
1602
+ inset: '0',
1603
+ pointerEvents: 'none'
1604
+ });
1605
+ this.content.append(layer);
1606
+ this.structuralTail = {
1607
+ snapshot: oldSnapshot,
1608
+ rows: oldRows,
1609
+ layout: oldLayout,
1610
+ firstIndex: prefixCount,
1611
+ layer,
1612
+ mounted: new Map()
1613
+ };
1614
+ this.updateStructuralTailWindow();
1615
+ }
1616
+ const nextAnchor = anchor && this.layout.items.find(item => item.key === anchor.key);
1617
+ const delta = nextAnchor && anchor ? nextAnchor.y - anchor.y : 0;
1618
+ let finalScrollHeight = oldScrollHeight + newHeight - oldHeight;
1619
+ if (stablePrefixGeometry && this.externalScrollHost) {
1620
+ const beforeMeasure = owner.scrollTop;
1621
+ const tailLayer = this.structuralTail?.layer;
1622
+ if (tailLayer) tailLayer.style.display = 'none';
1623
+ this.writeStructuralHeight(newHeight);
1624
+ this.applyStructuralFooterVisual(1);
1625
+ finalScrollHeight = owner.scrollHeight;
1626
+ this.writeStructuralHeight(startHeight);
1627
+ this.applyStructuralFooterVisual(0);
1628
+ if (tailLayer) tailLayer.style.display = '';
1629
+ owner.scrollTop = beforeMeasure;
1630
+ }
1631
+ const finalMaxOffset = Math.max(0, finalScrollHeight - owner.clientHeight);
1632
+ let targetOffset = Math.max(0, Math.min(oldOffset + delta, finalMaxOffset));
1633
+ if (!visibleSurvivor && transition.anchorKey && !(stablePrefixGeometry && nextRows.length > oldRows.length)) {
1634
+ const fallback = this.layout.items.find(item => item.key === transition.anchorKey);
1635
+ if (fallback) {
1636
+ const pagerStickyInset = Number.parseFloat(this.externalScrollHost?.style.getPropertyValue('--ok-collapsible-pager-sticky-inset') ?? '');
1637
+ const effectiveStickyInset = Math.max(this.externalStickyInset, Number.isFinite(pagerStickyInset) ? pagerStickyInset : 0);
1638
+ const fallbackTop = this.externalScrollHost ? this.externalGeometry().origin + fallback.y - effectiveStickyInset : resolveWebCollapsiblePagerRawOffset(Math.max(0, fallback.y - this.collapsiblePagerInsets().sticky), this.collapsiblePagerInsets().header);
1639
+ if (stablePrefixGeometry && this.externalScrollHost && this.reactFooterHeight > 0) {
1640
+ const footerTop = this.externalGeometry().origin + newHeight;
1641
+ const footerStart = Math.max(0, footerTop + this.reactFooterHeight - owner.clientHeight);
1642
+ const footerEnd = Math.max(0, footerTop - effectiveStickyInset);
1643
+ const nearestVisibleOffset = footerStart <= footerEnd ? Math.max(footerStart, Math.min(oldOffset, footerEnd)) : footerEnd;
1644
+ targetOffset = Math.max(0, Math.min(nearestVisibleOffset, finalMaxOffset));
1645
+ } else {
1646
+ targetOffset = Math.min(targetOffset, Math.max(0, fallbackTop));
1647
+ }
1648
+ }
1649
+ }
1650
+ const duration = transition.durationMs ?? 220;
1651
+ const easing = 'cubic-bezier(0.42, 0, 0.58, 1)';
1652
+ this.mounted.forEach((element, index) => {
1653
+ const row = this.rows[index];
1654
+ const previousTop = row && oldPositions.get(row.key);
1655
+ if (previousTop === undefined || typeof element.animate !== 'function') return;
1656
+ const offset = previousTop - element.getBoundingClientRect().top;
1657
+ if (Math.abs(offset) < 0.5) return;
1658
+ this.structuralAnimations.push(element.animate([{
1659
+ transform: `translateY(${offset}px)`
1660
+ }, {
1661
+ transform: 'translateY(0)'
1662
+ }], {
1663
+ duration,
1664
+ easing
1665
+ }));
1666
+ });
1667
+ const startedAt = this.document.defaultView?.performance.now() ?? Date.now();
1668
+ const revision = this.structuralRevision;
1669
+ const finish = () => {
1670
+ if (this.destroyed || revision !== this.structuralRevision) return;
1671
+ const ownsScroll = !this.structuralScrollInterrupted;
1672
+ this.cancelStructuralAnimation();
1673
+ this.recomputeLayout();
1674
+ if (stablePrefixGeometry && ownsScroll) {
1675
+ owner.scrollTop = Math.max(0, Math.min(targetOffset, owner.scrollHeight - owner.clientHeight));
1676
+ }
1677
+ };
1678
+ const step = time => {
1679
+ if (this.destroyed || revision !== this.structuralRevision) return;
1680
+ if (this.structuralPrefixTransition && this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {
1681
+ finish();
1682
+ return;
1683
+ }
1684
+ const progress = Math.min(1, (time - startedAt) / duration);
1685
+ const eased = progress * progress * (3 - 2 * progress);
1686
+ this.structuralProgress = eased;
1687
+ const renderedHeight = oldHeight + ((this.structuralTargetHeight ?? newHeight) - oldHeight) * eased + this.structuralFooterCompensation * (1 - eased);
1688
+ this.structuralRenderedHeight = renderedHeight;
1689
+ this.writeStructuralHeight(renderedHeight);
1690
+ this.applyStructuralFooterVisual(eased);
1691
+ if (!this.structuralScrollInterrupted) owner.scrollTop = oldOffset + (targetOffset - oldOffset) * eased;
1692
+ this.externalGeometryCache = undefined;
1693
+ this.updateStructuralTailWindow();
1694
+ if (progress < 1) this.structuralFrame = this.document.defaultView?.requestAnimationFrame(step);
1695
+ };
1696
+ this.structuralFrame = this.document.defaultView?.requestAnimationFrame(step);
1697
+ this.structuralFinish = this.document.defaultView?.setTimeout(finish, duration + 40);
1520
1698
  }
1521
1699
  currentContentHeight() {
1522
1700
  return this.layout.contentHeight;
@@ -1525,12 +1703,14 @@ export class NativeListWebEngine {
1525
1703
  return this.snapshot;
1526
1704
  }
1527
1705
  applyPatches(patches) {
1528
- if (patches.length === 0) return;
1529
- const next = applyRowPatches(this.snapshot, patches);
1706
+ const accepted = containNativeListInput(() => applyValidatedRowPatches(this.snapshot, patches));
1707
+ if (!accepted || accepted.patches.length === 0) return;
1708
+ patches = accepted.patches;
1709
+ const next = accepted.snapshot;
1530
1710
  const selection = new Set(this.selectedKeys);
1531
1711
  patches.forEach(patch => {
1532
1712
  const selected = 'selected' in patch.changes ? patch.changes.selected : undefined;
1533
- if (selected === true) selection.add(patch.key);else if (selected === false) selection.delete(patch.key);
1713
+ if (selected === true) selection.add(patch.key);else if (selected === false || selected === null) selection.delete(patch.key);
1534
1714
  });
1535
1715
  const tableValuesOnly = patches.every(patch => {
1536
1716
  const index = this.rows.findIndex(row => row.key === patch.key);
@@ -1681,6 +1861,8 @@ export class NativeListWebEngine {
1681
1861
  }
1682
1862
  destroy() {
1683
1863
  if (this.destroyed) return;
1864
+ this.cancelStructuralAnimation();
1865
+ this.pressedHelpElement = undefined;
1684
1866
  this.invalidateActionAnchor('destroy');
1685
1867
  this.destroyed = true;
1686
1868
  if (this.frameHandle !== undefined) this.cancelFrame(this.frameHandle);
@@ -1693,6 +1875,7 @@ export class NativeListWebEngine {
1693
1875
  this.document.defaultView?.removeEventListener('resize', this.handleWindowResize);
1694
1876
  this.pendingScroll = undefined;
1695
1877
  (this.externalScrollHost ?? this.viewport).removeEventListener('ok-collapsible-pager-cancel-scroll-command', this.handlePagerScrollCommandCancel);
1878
+ for (const event of ['wheel', 'pointerdown', 'touchstart']) (this.externalScrollHost ?? this.viewport).removeEventListener(event, this.handleStructuralUserScroll);
1696
1879
  this.viewport.removeEventListener('scroll', this.handleScroll);
1697
1880
  (this.externalScrollHost ?? this.viewport).removeEventListener('ok-collapsible-pager-insets-changed', this.handleCollapsiblePagerInsetsChanged);
1698
1881
  this.root.removeEventListener('click', this.handleClick);
@@ -1704,6 +1887,7 @@ export class NativeListWebEngine {
1704
1887
  this.root.removeEventListener('pointerup', this.handleMarketPointerEnd);
1705
1888
  this.root.removeEventListener('pointercancel', this.handleMarketPointerEnd);
1706
1889
  this.root.removeEventListener('pointerover', this.handleTitlePointerOver);
1890
+ this.root.removeEventListener('pointerdown', this.handleIconHelpPointerDown);
1707
1891
  this.root.removeEventListener('focusin', this.handleTitlePointerOver);
1708
1892
  this.root.removeEventListener('focusout', this.handleTitlePointerOut);
1709
1893
  this.root.removeEventListener('pointerout', this.handleTitlePointerOut);
@@ -1742,6 +1926,7 @@ export class NativeListWebEngine {
1742
1926
  }
1743
1927
  setSnapshot(snapshot, selectedKeys) {
1744
1928
  this.cancelMarketPointer();
1929
+ this.pressedHelpElement = undefined;
1745
1930
  this.measuredRendererHeights.clear();
1746
1931
  this.snapshot = snapshot;
1747
1932
  this.rows = effectiveRows(snapshot);
@@ -1759,6 +1944,7 @@ export class NativeListWebEngine {
1759
1944
  '--nl-row': theme.rowBackground,
1760
1945
  '--nl-selected': theme.rowSelectedBackground,
1761
1946
  '--nl-pressed': theme.rowPressedBackground,
1947
+ '--nl-hover': theme.rowHoverBackground ?? theme.rowPressedBackground,
1762
1948
  '--nl-subdued': theme.subduedBackground,
1763
1949
  '--nl-strong': theme.strongBackground,
1764
1950
  '--nl-image-fallback-background': theme.imageFallbackBackground ?? 'transparent',
@@ -1775,6 +1961,7 @@ export class NativeListWebEngine {
1775
1961
  '--nl-separator': theme.separator,
1776
1962
  '--nl-accent': theme.accent,
1777
1963
  '--nl-positive': theme.positive,
1964
+ '--nl-success-background': theme.successBackground,
1778
1965
  '--nl-negative': theme.negative,
1779
1966
  '--nl-critical': theme.criticalBackground,
1780
1967
  '--nl-inverse': theme.inverseBackground,
@@ -1835,10 +2022,24 @@ export class NativeListWebEngine {
1835
2022
  }
1836
2023
  recomputeLayout = () => {
1837
2024
  if (this.destroyed) return;
2025
+ if (this.structuralPrefixTransition && this.lastViewportWidth > 0 && this.viewport.clientWidth > 0 && this.viewport.clientWidth !== this.lastViewportWidth) this.cancelStructuralAnimation();
2026
+ if (this.structuralRenderedHeight === undefined) this.reactFooterHeight = this.readReactFooterHeight();else {
2027
+ const nextFooterHeight = this.readReactFooterHeight();
2028
+ const footerDelta = this.reactFooterHeight - nextFooterHeight;
2029
+ if (footerDelta !== 0) {
2030
+ this.reactFooterHeight = nextFooterHeight;
2031
+ const priorCompensation = this.structuralFooterCompensation;
2032
+ const difference = this.structuralFooterFromHeight - nextFooterHeight;
2033
+ this.structuralFooterCompensation = Math.max(0, difference);
2034
+ this.structuralFooterExpansion = Math.max(0, -difference);
2035
+ this.structuralRenderedHeight += (this.structuralFooterCompensation - priorCompensation) * (1 - this.structuralProgress);
2036
+ this.applyStructuralFooterVisual(this.structuralProgress);
2037
+ }
2038
+ }
1838
2039
  const cachedWidth = this.lastViewportWidth;
1839
2040
  const cachedHeight = this.lastViewportHeight;
1840
2041
  const precomputedLayout = this.externalScrollHost && cachedWidth > 0 && cachedHeight > 0 ? this.computeLayout(cachedWidth, cachedHeight) : undefined;
1841
- if (precomputedLayout) {
2042
+ if (precomputedLayout && this.structuralRenderedHeight === undefined) {
1842
2043
  // Commit appended row extent before measuring React-owned slot changes.
1843
2044
  this.writeExternalHeight(Math.max(this.layout.contentHeight, precomputedLayout.contentHeight));
1844
2045
  }
@@ -1868,11 +2069,13 @@ export class NativeListWebEngine {
1868
2069
  const previousHorizontal = this.layout.horizontal;
1869
2070
  this.layout = precomputedLayout && viewportWidth === cachedWidth && viewportHeight === cachedHeight ? precomputedLayout : this.computeLayout(viewportWidth, viewportHeight);
1870
2071
  this.content.style.width = String(this.layout.contentWidth) + 'px';
1871
- this.content.style.height = String(this.layout.contentHeight) + 'px';
2072
+ const renderedHeight = this.structuralRenderedHeight ?? this.layout.contentHeight;
2073
+ this.content.style.height = String(renderedHeight) + 'px';
1872
2074
  if (this.externalScrollHost) {
1873
- this.writeExternalHeight(this.layout.contentHeight);
2075
+ this.writeExternalHeight(renderedHeight);
1874
2076
  this.externalGeometryCache = undefined;
1875
2077
  }
2078
+ if (this.structuralRenderedHeight !== undefined) this.structuralTargetHeight = this.layout.contentHeight;
1876
2079
  this.renderSectionIndex(this.viewport.clientHeight <= 0 ? DEFAULT_VIEWPORT_HEIGHT : Math.max(1, viewportHeight), stickyInset);
1877
2080
  if (previousHorizontal !== this.layout.horizontal) {
1878
2081
  this.viewport.scrollLeft = 0;
@@ -1980,6 +2183,7 @@ export class NativeListWebEngine {
1980
2183
  }
1981
2184
  this.updateVisibleSelection();
1982
2185
  this.updateVisibleState();
2186
+ this.updateStructuralTailWindow();
1983
2187
  }
1984
2188
  positionElement(element, item) {
1985
2189
  element.style.transform = 'translate3d(' + String(item.x) + 'px,' + String(item.y) + 'px,0)';
@@ -2025,7 +2229,7 @@ export class NativeListWebEngine {
2025
2229
  const body = reusableBody ?? createRowBody(context, row);
2026
2230
  if (reusableBody) {
2027
2231
  resetRowContainerStyle(body);
2028
- registered.bind(body, rendererPrimitives(context));
2232
+ registered.bind(body, rendererPrimitives(context, Boolean(row.disabled)));
2029
2233
  }
2030
2234
  // OneKey patch: explicit selector fields preserve original page geometry.
2031
2235
  element.style.contain = row.backgroundFullWidth ? 'layout style' : '';
@@ -2507,6 +2711,7 @@ export class NativeListWebEngine {
2507
2711
  return anchor.actionElement.isConnected && anchor.rowElement.isConnected && anchor.rowElement.contains(anchor.actionElement) && anchor.rowElement.dataset.nativeListBindingEpoch === anchor.bindingEpoch;
2508
2712
  }
2509
2713
  invalidateActionAnchorForElement(element) {
2714
+ if (this.pressedHelpElement && element.contains(this.pressedHelpElement)) this.pressedHelpElement = undefined;
2510
2715
  const anchor = this.actionAnchor;
2511
2716
  if (anchor && (element === anchor.rowElement || element.contains(anchor.actionElement))) {
2512
2717
  this.invalidateActionAnchor('rebind');
@@ -2579,9 +2784,9 @@ export class NativeListWebEngine {
2579
2784
  if (event.target.closest('[data-native-list-action]')) return;
2580
2785
  const rowElement = event.target.closest('[data-native-list-row-key]');
2581
2786
  const row = this.rowAtElement(rowElement);
2582
- if (row?.type !== 'market' || !isRowPressEnabled(row)) return;
2787
+ if (row?.type !== 'market' && row?.type !== 'identity' || !isRowPressEnabled(row)) return;
2583
2788
  this.cancelMarketPointer();
2584
- if (row.pressInActionKey) this.emitRowAction(row, row.pressInActionKey, rowElement ?? undefined, rowElement ?? undefined);
2789
+ if (row.type === 'market' && row.pressInActionKey) this.emitRowAction(row, row.pressInActionKey, rowElement ?? undefined, rowElement ?? undefined);
2585
2790
  if (!row.longPressActionKey || !rowElement) return;
2586
2791
  markActionAnchorSource(rowElement, 'row');
2587
2792
  const bindingEpoch = rowElement.dataset.nativeListBindingEpoch;
@@ -2590,7 +2795,7 @@ export class NativeListWebEngine {
2590
2795
  if (!current || current.pointerId !== event.pointerId) return;
2591
2796
  const currentRow = this.rowAtElement(rowElement);
2592
2797
  this.marketPointer = undefined;
2593
- if (!rowElement.isConnected || rowElement.dataset.nativeListBindingEpoch !== bindingEpoch || currentRow?.key !== row.key || currentRow.type !== 'market' || !isRowPressEnabled(currentRow) || !currentRow.longPressActionKey) return;
2798
+ if (!rowElement.isConnected || rowElement.dataset.nativeListBindingEpoch !== bindingEpoch || currentRow?.key !== row.key || currentRow.type !== 'market' && currentRow.type !== 'identity' || !isRowPressEnabled(currentRow) || !currentRow.longPressActionKey) return;
2594
2799
  this.marketLongPressFired = true;
2595
2800
  this.emitRowAction(currentRow, currentRow.longPressActionKey, rowElement, rowElement, {
2596
2801
  x: event.clientX,
@@ -2601,7 +2806,7 @@ export class NativeListWebEngine {
2601
2806
  this.marketPointer = {
2602
2807
  pointerId: event.pointerId,
2603
2808
  pointerType: event.pointerType,
2604
- compact: !row.webTable,
2809
+ compact: row.type === 'identity' || !row.webTable,
2605
2810
  rowKey: row.key,
2606
2811
  startX: event.clientX,
2607
2812
  startY: event.clientY,
@@ -2637,7 +2842,14 @@ export class NativeListWebEngine {
2637
2842
  if (!(target instanceof Element)) return;
2638
2843
  const action = target.closest('[data-native-list-hover-action]');
2639
2844
  if (!action || event.relatedTarget instanceof Node && action.contains(event.relatedTarget)) return;
2845
+ if (action.dataset.nativeListIconHelp === 'true') {
2846
+ if (event.type === 'pointerover' && event.pointerType === 'touch') return;
2847
+ if (this.pressedHelpElement === action) return;
2848
+ }
2640
2849
  if (action.classList.contains('ok-native-list-market-subtitle-prefix') && action.scrollWidth <= action.clientWidth + 1) return;
2850
+ this.emitHoverAction(action);
2851
+ };
2852
+ emitHoverAction(action) {
2641
2853
  const rowElement = action.closest('[data-native-list-row-key]');
2642
2854
  const row = this.rowAtElement(rowElement);
2643
2855
  const memberKey = action.closest('[data-native-list-group-member-key]')?.dataset.nativeListGroupMemberKey;
@@ -2646,12 +2858,26 @@ export class NativeListWebEngine {
2646
2858
  // Legacy Web: hover checks only the resolved source (the member for a
2647
2859
  // WalletGroup), not the enclosing row's `disabled`.
2648
2860
  if (sourceRow && !sourceRow.disabled && actionKey) this.emitRowAction(sourceRow, actionKey, action, rowElement ?? undefined);
2861
+ }
2862
+ handleIconHelpPointerDown = event => {
2863
+ const target = event.target;
2864
+ if (!(target instanceof Element)) return;
2865
+ const action = target.closest('[data-native-list-icon-help="true"]');
2866
+ if (!action) return;
2867
+ if (event.pointerType === 'touch') {
2868
+ if (this.actionAnchor?.actionElement === action && this.actionAnchor.open) this.invalidateActionAnchor('pointerLeave');else this.emitHoverAction(action);
2869
+ } else {
2870
+ this.pressedHelpElement = action;
2871
+ if (this.actionAnchor?.actionElement === action) this.invalidateActionAnchor('pointerLeave');
2872
+ }
2649
2873
  };
2650
2874
  handleTitlePointerOut = event => {
2651
2875
  const target = event.target;
2652
2876
  if (!(target instanceof Element)) return;
2653
2877
  const action = target.closest('[data-native-list-hover-action]');
2654
2878
  if (!action || event.relatedTarget instanceof Node && action.contains(event.relatedTarget)) return;
2879
+ if (action.dataset.nativeListIconHelp === 'true' && event.type === 'pointerout' && event.pointerType === 'touch') return;
2880
+ if (event.type === 'pointerout' && this.pressedHelpElement === action) this.pressedHelpElement = undefined;
2655
2881
  if (this.actionAnchor?.actionElement === action) this.invalidateActionAnchor('pointerLeave');
2656
2882
  };
2657
2883
  handleClick = event => {
@@ -2663,6 +2889,11 @@ export class NativeListWebEngine {
2663
2889
  }
2664
2890
  const target = event.target;
2665
2891
  if (!(target instanceof Element)) return;
2892
+ if (target.closest('[data-native-list-icon-help="true"]')) {
2893
+ event.preventDefault();
2894
+ event.stopPropagation();
2895
+ return;
2896
+ }
2666
2897
  const rowElement = target.closest('[data-native-list-row-key]');
2667
2898
  const row = this.rowAtElement(rowElement);
2668
2899
  if (!row || row.disabled) return;
@@ -2674,6 +2905,8 @@ export class NativeListWebEngine {
2674
2905
  // member press is blocked by `isRowPressEnabled` in `handleRowPress`.
2675
2906
  const action = target.closest('[data-native-list-action]');
2676
2907
  if (action) {
2908
+ if (action.tagName === 'BUTTON' && action.hasAttribute('disabled')) return;
2909
+ if (action.classList.contains('ok-native-list-trailing-button')) event.stopPropagation();
2677
2910
  const scope = action.dataset.selectionScope;
2678
2911
  if (scope === 'row') this.activateSelection({
2679
2912
  scope: 'row'
@@ -2688,6 +2921,11 @@ export class NativeListWebEngine {
2688
2921
  this.handleRowPress(sourceRow, rowElement ?? undefined, memberElement ?? rowElement ?? undefined);
2689
2922
  };
2690
2923
  handleKeyDown = event => {
2924
+ if ((event.key === 'Enter' || event.key === ' ') && event.target instanceof HTMLElement && event.target.matches('[role="button"][data-native-list-hover-action]')) {
2925
+ event.preventDefault();
2926
+ if (this.actionAnchor?.actionElement !== event.target || !this.actionAnchor.open) this.emitHoverAction(event.target);
2927
+ return;
2928
+ }
2691
2929
  // OneKey patch: non-button title help supports keyboard activation.
2692
2930
  if ((event.key === 'Enter' || event.key === ' ') && event.target instanceof HTMLElement && event.target.matches('[role="button"][data-native-list-action]')) {
2693
2931
  event.preventDefault();
@@ -2789,6 +3027,7 @@ export class NativeListWebEngine {
2789
3027
  };
2790
3028
  handleScroll = () => {
2791
3029
  this.externalGeometryCache = undefined;
3030
+ this.pressedHelpElement = undefined;
2792
3031
  this.cancelMarketPointer();
2793
3032
  this.invalidateActionAnchor('scroll');
2794
3033
  this.scheduleFrame();