@onekeyfe/react-native-native-list 6.7.0-alpha.359 → 6.7.0-alpha.363

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +0 -7
  2. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +7 -240
  3. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +4 -7
  4. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +3 -6
  5. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +0 -12
  6. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +7 -87
  7. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +1 -135
  8. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +14 -43
  9. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +0 -25
  10. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +2 -17
  11. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +0 -22
  12. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +0 -2
  13. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +0 -2
  14. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +2 -3
  15. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +0 -69
  16. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +1 -55
  17. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +29 -587
  18. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +0 -1
  19. package/docs/ROW_TEMPLATES.md +9 -60
  20. package/docs/SPEC.md +15 -317
  21. package/docs/STYLE_SPEC.md +0 -6
  22. package/ios/HybridNativeList.swift +0 -10
  23. package/ios/NativeListAccessoryStack.swift +37 -220
  24. package/ios/NativeListActivityDetailsView.swift +8 -18
  25. package/ios/NativeListActivityRenderer.swift +2 -8
  26. package/ios/NativeListDataRowRenderer.swift +16 -128
  27. package/ios/NativeListDesignAssets.swift +0 -3
  28. package/ios/NativeListIdentityRenderer.swift +5 -123
  29. package/ios/NativeListLeadingVisual.swift +14 -49
  30. package/ios/NativeListMessageRenderer.swift +1 -34
  31. package/ios/NativeListModels.swift +2 -16
  32. package/ios/NativeListRendererRegistry.swift +0 -1
  33. package/ios/NativeListResolvedText.swift +1 -2
  34. package/ios/NativeListRowHost.swift +0 -14
  35. package/ios/NativeListSectionHeaderRenderer.swift +0 -88
  36. package/ios/RNCNativeListView.swift +29 -335
  37. package/ios/tests/NativeListActivityPresentationTests.swift +0 -56
  38. package/ios/tests/NativeListLifecycleTests.swift +3 -1283
  39. package/lib/module/NativeList.js +21 -39
  40. package/lib/module/NativeList.web.js +4 -51
  41. package/lib/module/models.js +0 -1
  42. package/lib/module/selection.js +1 -1
  43. package/lib/module/validation.js +8 -320
  44. package/lib/module/web/NativeListWebEngine.js +18 -373
  45. package/lib/module/web/templates/ActivityRowRenderer.js +7 -8
  46. package/lib/module/web/templates/DataRowRenderer.js +5 -40
  47. package/lib/module/web/templates/IdentityRowRenderer.js +4 -90
  48. package/lib/module/web/templates/MessageRowRenderer.js +2 -18
  49. package/lib/module/web/templates/RowContainerStyle.js +0 -1
  50. package/lib/module/web/templates/RowRendererRegistry.js +0 -3
  51. package/lib/module/web/templates/SectionHeaderRowRenderer.js +2 -36
  52. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
  53. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
  54. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
  55. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
  56. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
  57. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
  58. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
  59. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
  60. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
  61. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
  62. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
  63. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
  64. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
  65. package/lib/typescript/src/NativeList.nitro.d.ts +0 -1
  66. package/lib/typescript/src/NativeList.types.d.ts +0 -8
  67. package/lib/typescript/src/models.d.ts +9 -101
  68. package/lib/typescript/src/validation.d.ts +0 -10
  69. package/lib/typescript/src/web/NativeListWebEngine.d.ts +0 -26
  70. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
  71. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +3 -9
  72. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
  73. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
  74. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
  76. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
  77. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
  78. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
  79. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
  80. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
  81. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
  82. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
  83. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
  84. package/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
  85. package/package.json +3 -3
  86. package/react-native-native-list.podspec +0 -1
  87. package/src/NativeList.nitro.ts +0 -1
  88. package/src/NativeList.tsx +24 -72
  89. package/src/NativeList.types.ts +0 -9
  90. package/src/NativeList.web.tsx +8 -72
  91. package/src/models.ts +3 -113
  92. package/src/selection.ts +0 -1
  93. package/src/validation.ts +6 -721
  94. package/src/web/NativeListWebEngine.ts +19 -568
  95. package/src/web/templates/ActivityRowRenderer.ts +6 -14
  96. package/src/web/templates/DataRowRenderer.ts +20 -93
  97. package/src/web/templates/IdentityRowRenderer.ts +5 -150
  98. package/src/web/templates/MessageRowRenderer.ts +7 -23
  99. package/src/web/templates/RowContainerStyle.ts +0 -2
  100. package/src/web/templates/RowRendererRegistry.ts +1 -11
  101. package/src/web/templates/SectionHeaderRowRenderer.ts +4 -47
  102. package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +0 -102
  103. package/ios/NativeListButtonGroupRenderer.swift +0 -89
  104. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +0 -15
  105. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +0 -4
  106. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +0 -15
  107. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +0 -3
  108. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +0 -15
  109. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +0 -3
  110. package/lib/module/web/templates/ButtonGroupRowRenderer.js +0 -47
  111. package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +0 -14
  112. package/src/web/templates/ButtonGroupRowRenderer.ts +0 -58
@@ -421,7 +421,7 @@ export const WEB_LIST_CSS = `
421
421
  .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
422
 
423
423
  [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-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)}
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
425
  .ok-native-list-viewport-frame{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden}
426
426
  .ok-native-list-viewport{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
427
427
  .ok-native-list-content{position:relative;min-width:100%;min-height:100%}
@@ -432,7 +432,7 @@ export const WEB_LIST_CSS = `
432
432
  .ok-native-list-item[data-native-list-selected="true"]>.ok-native-list-row{background:var(--nl-selected)}
433
433
  .ok-native-list-item[data-native-list-disabled="true"]>.ok-native-list-row{cursor:default}
434
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-hover)}
435
+ .ok-native-list-item[data-native-list-row-press-enabled="true"]:hover>.ok-native-list-row{background:var(--nl-pressed)}
436
436
  .ok-native-list-item[data-native-list-row-press-enabled="true"]:active>.ok-native-list-row{background:var(--nl-pressed)}
437
437
  .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
438
  .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,23 +463,16 @@ export const WEB_LIST_CSS = `
463
463
  .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
464
  .ok-native-list-item[data-group-position="single"]>.ok-native-list-row{border-radius:var(--nl-group-radius,12px)}
465
465
  .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}
466
- .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:pointer}.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}
467
- .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}
468
- .ok-native-list-icon-button.ok-native-list-tertiary-icon:focus-visible:not(:disabled){outline:2px solid var(--nl-accent)}
469
- .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}
470
466
  .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)}
471
467
  .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)}
472
468
  .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}
473
469
  .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}
474
470
  .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}
475
- .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}
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}
476
472
  .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)}}
477
- .ok-native-list-icon-button.ok-native-list-decorative-refresh{min-width:16px;width:16px;height:16px}
478
- .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}
479
- .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)}
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}
480
474
  .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}
481
475
  .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)}
482
- .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}
483
476
  .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)}
484
477
  .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}
485
478
  .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)}
@@ -528,7 +521,6 @@ export const WEB_LIST_CSS = `
528
521
  .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)}
529
522
  .ok-native-list-root [data-nl-container-border="true"]{position:relative}
530
523
  .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}
531
- .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}
532
524
  .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)}
533
525
  `;
534
526
  function createElement(document, tag, className, text) {
@@ -726,38 +718,6 @@ function paintSelectorImageBackground(image, frame, inset = 0) {
726
718
 
727
719
  // OneKey patch: use source SVG paths for selector actions and wallet provider marks.
728
720
  const selectorIcons = {
729
- RefreshCcwOutline: {
730
- viewBox: '0 0 24 24',
731
- paths: [{
732
- d: 'M5 12a7 7 0 0 0 7 7 7.15 7.15 0 0 0 4.955-2h-2.943v-2h6v6h-2v-2.257A9.148 9.148 0 0 1 12 21a9 9 0 0 1-9-9v-1h2v1Zm1-6.754A9.148 9.148 0 0 1 12 3a9 9 0 0 1 9 9v1h-2v-1a7 7 0 0 0-7-7 7.15 7.15 0 0 0-4.955 2H10v2H4V3h2v2.246Z',
733
- fill: 'currentColor',
734
- fillRule: 'nonzero',
735
- opacity: 1
736
- }]
737
- },
738
- TicketOutline: {
739
- viewBox: '0 0 24 24',
740
- paths: [{
741
- d: 'M16 17.01h-2V15h2v2.01Zm0-4h-2V11h2v2.01Zm0-4h-2V7h2v2.01Z',
742
- fill: 'currentColor',
743
- fillRule: 'nonzero',
744
- opacity: 1
745
- }, {
746
- d: 'm22 9.927-.629.252c-1.661.665-1.661 2.977 0 3.642l.629.252V20H2v-5.927l.629-.252c1.661-.665 1.661-2.977 0-3.642L2 9.927V4h20v5.927ZM4 8.636c2.5 1.52 2.499 5.207 0 6.727V18h16v-2.637c-2.499-1.52-2.5-5.208 0-6.727V6H4v2.636Z',
747
- fill: 'currentColor',
748
- fillRule: 'evenodd',
749
- opacity: 1
750
- }]
751
- },
752
- GasSolid: {
753
- viewBox: '0 0 24 24',
754
- paths: [{
755
- d: 'M15 9h4v7h1V8.414L17.586 6 19 4.586l3 3V18h-5v-7h-2v8h1v2H2v-2h1V3h12zM6 9v2h6V9z',
756
- fill: 'currentColor',
757
- fillRule: 'evenodd',
758
- opacity: 1
759
- }]
760
- },
761
721
  CryptoCoinOutline: {
762
722
  viewBox: '0 0 24 24',
763
723
  paths: [{
@@ -1002,7 +962,6 @@ function applySelectorIcon(element, name) {
1002
962
  }
1003
963
  function iconGlyph(name) {
1004
964
  const normalized = name.toLocaleLowerCase();
1005
- if (normalized === 'dotversolid') return '⋮';
1006
965
  if (normalized.includes('chevron')) {
1007
966
  if (normalized.includes('top')) return '⌃';
1008
967
  if (normalized.includes('bottom')) return '⌄';
@@ -1050,8 +1009,6 @@ function createVisual(context, visual, selectorPresentation) {
1050
1009
  const showsSourcePlaceholder = !!source && source.loadingStrategy !== undefined && source.loadingStrategy !== 'none';
1051
1010
  frame.style.background = showsSourcePlaceholder ? 'var(--nl-strong)' : visualBackground;
1052
1011
  const fallbackIcon = 'fallbackIcon' in visual ? visual.fallbackIcon : undefined;
1053
- const fallbackBackground = fallbackIcon?.backgroundColor ?? 'var(--nl-strong)';
1054
- if (!source && fallbackIcon?.backgroundColor) frame.style.background = fallbackBackground;
1055
1012
  const handlesSourceFallback = showsSourcePlaceholder && (fallbackIcon !== undefined || 'fallbackText' in visual);
1056
1013
  const image = source ? createImage(context, source) : undefined;
1057
1014
  if (image) {
@@ -1065,24 +1022,6 @@ function createVisual(context, visual, selectorPresentation) {
1065
1022
  if (image.complete && image.naturalWidth > 0) restoreBackground();
1066
1023
  }
1067
1024
  if (selectorPresentation) paintSelectorImageBackground(image, frame);
1068
- if (source?.loadingStrategy === 'skeleton' && !(image.complete && image.naturalWidth > 0)) {
1069
- const skeleton = createElement(context.document, 'span', 'ok-native-list-image-skeleton');
1070
- const background = resolvedTheme(context.snapshot).background;
1071
- const rgb = /^#([0-9a-f]{6})/i.exec(background)?.[1];
1072
- if (rgb) {
1073
- const red = Number.parseInt(rgb.slice(0, 2), 16);
1074
- const green = Number.parseInt(rgb.slice(2, 4), 16);
1075
- const blue = Number.parseInt(rgb.slice(4, 6), 16);
1076
- if (red * 299 + green * 587 + blue * 114 < 128_000) skeleton.dataset.dark = 'true';
1077
- }
1078
- frame.appendChild(skeleton);
1079
- image.addEventListener('load', () => skeleton.remove(), {
1080
- once: true
1081
- });
1082
- image.addEventListener('error', () => skeleton.remove(), {
1083
- once: true
1084
- });
1085
- }
1086
1025
  } else if (!source || showsSourcePlaceholder) {
1087
1026
  frame.appendChild(createElement(context.document, 'span', 'ok-native-list-visual-fallback', 'fallbackText' in visual ? visual.fallbackText ?? '' : ''));
1088
1027
  }
@@ -1106,19 +1045,11 @@ function createVisual(context, visual, selectorPresentation) {
1106
1045
  }
1107
1046
  frame.querySelector('.ok-native-list-visual-fallback:not(.ok-native-list-visual-corner)')?.remove();
1108
1047
  const fallback = createElement(context.document, 'span', 'ok-native-list-visual-fallback', fallbackIcon ? undefined : 'fallbackText' in visual ? visual.fallbackText ?? '' : '');
1109
- if ('fallbackTextColor' in visual && visual.fallbackTextColor && !fallbackIcon) fallback.style.color = visual.fallbackTextColor;
1110
1048
  if (fallbackIcon) {
1111
1049
  applySelectorIcon(fallback, fallbackIcon.name);
1112
1050
  if (fallbackIcon.tintColor) fallback.style.color = fallbackIcon.tintColor;
1113
- if (fallbackIcon.size) {
1114
- const svg = fallback.querySelector('svg');
1115
- if (svg) {
1116
- svg.style.width = `${fallbackIcon.size}px`;
1117
- svg.style.height = `${fallbackIcon.size}px`;
1118
- }
1119
- }
1120
1051
  }
1121
- if (fallbackIcon?.backgroundColor) frame.style.background = fallbackBackground;else fallback.style.backgroundColor = 'var(--nl-image-fallback-background, transparent)';
1052
+ fallback.style.backgroundColor = 'var(--nl-image-fallback-background, transparent)';
1122
1053
  frame.prepend(fallback);
1123
1054
  };
1124
1055
  if (image) image.addEventListener('error', showFallback, {
@@ -1128,9 +1059,6 @@ function createVisual(context, visual, selectorPresentation) {
1128
1059
  if ('borderStyle' in visual && visual.borderStyle === 'dashed') {
1129
1060
  frame.style.border = '2px dashed ' + (visual.borderColor ?? 'var(--nl-disabled)');
1130
1061
  frame.style.boxSizing = 'border-box';
1131
- } else if ('borderColor' in visual && visual.borderColor) {
1132
- frame.style.border = '1px solid ' + visual.borderColor;
1133
- frame.style.boxSizing = 'border-box';
1134
1062
  }
1135
1063
  if ('overlays' in visual) visual.overlays?.forEach(overlay => {
1136
1064
  const corner = createElement(context.document, 'span', 'ok-native-list-visual-overlay', overlay.text);
@@ -1144,12 +1072,6 @@ function createVisual(context, visual, selectorPresentation) {
1144
1072
  corner.style.lineHeight = '16px';
1145
1073
  applyTextWeight(corner, '400');
1146
1074
  }
1147
- if (overlay.fontWeight) applyTextWeight(corner, {
1148
- regular: 400,
1149
- medium: 500,
1150
- semibold: 600,
1151
- bold: 700
1152
- }[overlay.fontWeight]);
1153
1075
  if (isWalletText || overlay.width !== undefined || overlay.height !== undefined) corner.style.borderRadius = '9999px';
1154
1076
  const offsetX = String(-(overlay.offsetX ?? overlay.offset ?? 2)) + 'px';
1155
1077
  const offsetY = String(-(overlay.offsetY ?? overlay.offset ?? 2)) + 'px';
@@ -1165,20 +1087,7 @@ function createVisual(context, visual, selectorPresentation) {
1165
1087
  if (overlay.image) {
1166
1088
  const overlayImage = createImage(context, overlay.image);
1167
1089
  if (overlayImage) {
1168
- if ((overlay.padding ?? 0) > 0 && (overlay.width ?? size) === (overlay.height ?? size)) overlayImage.style.borderRadius = '50%';
1169
1090
  corner.appendChild(overlayImage);
1170
- if (overlay.fallbackIcon) {
1171
- overlayImage.addEventListener('error', () => {
1172
- disposeWebImageRetries(overlayImage);
1173
- overlayImage.remove();
1174
- const glyph = createElement(context.document, 'span', 'ok-native-list-overlay-fallback');
1175
- applySelectorIcon(glyph, overlay.fallbackIcon.name);
1176
- if (overlay.fallbackIcon?.tintColor) glyph.style.color = overlay.fallbackIcon.tintColor;
1177
- corner.appendChild(glyph);
1178
- }, {
1179
- once: true
1180
- });
1181
- }
1182
1091
  if (selectorPresentation) paintSelectorImageBackground(overlayImage, corner, overlay.padding ?? 0);
1183
1092
  }
1184
1093
  } else if (overlay.name) applySelectorIcon(corner, overlay.name);
@@ -1258,23 +1167,7 @@ function markActionAnchorSource(element, source, slot) {
1258
1167
 
1259
1168
  // OneKey patch: the compact zero-count digits share the amount baseline.
1260
1169
 
1261
- function createAccessory(context, rowKey, accessory, slot, rowDisabled) {
1262
- if (accessory.kind === 'button') {
1263
- const element = createElement(context.document, 'button', 'ok-native-list-trailing-button', accessory.label);
1264
- element.type = 'button';
1265
- element.disabled = Boolean(rowDisabled || accessory.disabled);
1266
- element.setAttribute('aria-disabled', String(element.disabled));
1267
- element.setAttribute('aria-label', accessory.accessibilityLabel ?? accessory.label);
1268
- setData(element, 'testid', accessory.testID);
1269
- setData(element, 'nativeListAction', accessory.actionKey);
1270
- markActionAnchorSource(element, 'trailingAccessory', slot);
1271
- if (accessory.textColor) element.style.setProperty('--nl-button-text', accessory.textColor);
1272
- if (accessory.backgroundColor) element.style.setProperty('--nl-button-bg', accessory.backgroundColor);
1273
- if (accessory.pressedBackgroundColor) element.style.setProperty('--nl-button-pressed', accessory.pressedBackgroundColor);
1274
- if (accessory.hoverBackgroundColor) element.style.setProperty('--nl-button-hover', accessory.hoverBackgroundColor);
1275
- if (accessory.focusRingColor) element.style.setProperty('--nl-button-focus', accessory.focusRingColor);
1276
- return element;
1277
- }
1170
+ function createAccessory(context, rowKey, accessory, slot) {
1278
1171
  if (accessory.kind === 'checkbox') {
1279
1172
  const element = createCheckbox(context, rowKey, accessory);
1280
1173
  markActionAnchorSource(element, 'trailingAccessory', slot);
@@ -1283,19 +1176,8 @@ function createAccessory(context, rowKey, accessory, slot, rowDisabled) {
1283
1176
  if (accessory.kind === 'icon') {
1284
1177
  const element = createIconAction(context, accessory.name, accessory.actionKey, accessory.disabled, accessory.tintColor);
1285
1178
  markActionAnchorSource(element, 'trailingAccessory', slot);
1286
- if (accessory.name === 'RefreshCcwOutline' && !accessory.actionKey) {
1287
- element.classList.add('ok-native-list-decorative-refresh');
1288
- const glyph = element.querySelector('svg');
1289
- glyph?.setAttribute('width', '16');
1290
- glyph?.setAttribute('height', '16');
1291
- }
1292
- if (accessory.buttonStyle === 'tertiary') {
1293
- element.classList.add('ok-native-list-tertiary-icon');
1294
- setData(element, 'nativeListAnchorInset', 7);
1295
- }
1296
1179
  setData(element, 'testid', accessory.testID);
1297
1180
  if (accessory.hoverActionKey) setData(element, 'nativeListHoverAction', accessory.hoverActionKey);
1298
- if (accessory.hoverActionKey && accessory.buttonStyle === 'tertiary') setData(element, 'nativeListIconHelp', true);
1299
1181
  if (accessory.accessibilityLabel) element.setAttribute('aria-label', accessory.accessibilityLabel);
1300
1182
  const row = context.snapshot.rows[context.itemIndex];
1301
1183
  if (row && 'presentation' in row && row.presentation === 'accountSelector') {
@@ -1328,26 +1210,8 @@ function createAccessory(context, rowKey, accessory, slot, rowDisabled) {
1328
1210
  {
1329
1211
  const primary = createElement(context.document, 'span', undefined, accessory.primary);
1330
1212
  primary.style.color = toneColor(accessory.primaryTone, 'primary');
1331
- applyValueSegments(primary, accessory.primaryTextSegments, 16, 20, 500);
1332
- if (accessory.primaryFontWeight === 'medium') applyTextWeight(primary, 500);
1333
- if (accessory.primaryHelp) {
1334
- const help = accessory.primaryHelp;
1335
- if (help.presentation === 'tooltip') {
1336
- setData(primary, 'nativeListHoverAction', help.actionKey);
1337
- setData(primary, 'nativeListIconHelp', true);
1338
- } else {
1339
- setData(primary, 'nativeListAction', help.actionKey);
1340
- primary.setAttribute('role', 'button');
1341
- }
1342
- if (help.underline === 'dashed') {
1343
- primary.style.textDecoration = 'underline dashed';
1344
- primary.style.textUnderlineOffset = '4px';
1345
- }
1346
- markActionAnchorSource(primary, 'trailingAccessory', slot);
1347
- }
1348
1213
  const secondary = createElement(context.document, 'span', 'ok-native-list-secondary', accessory.secondary);
1349
1214
  secondary.style.color = toneColor(accessory.secondaryTone, 'secondary');
1350
- applyValueSegments(secondary, accessory.secondaryTextSegments, 14, 20, 400);
1351
1215
  element.replaceChildren(primary, '\n', secondary);
1352
1216
  element.classList.add('ok-native-list-amounts');
1353
1217
  break;
@@ -1375,10 +1239,10 @@ function createAccessory(context, rowKey, accessory, slot, rowDisabled) {
1375
1239
  if (actionKey) markActionAnchorSource(element, 'trailingAccessory', slot);
1376
1240
  return element;
1377
1241
  }
1378
- function rendererPrimitives(context, rowDisabled) {
1242
+ function rendererPrimitives(context) {
1379
1243
  return {
1380
1244
  background: resolvedTheme(context.snapshot).background,
1381
- accessory: (key, descriptor, slot) => createAccessory(context, key, descriptor, slot, rowDisabled),
1245
+ accessory: (key, descriptor, slot) => createAccessory(context, key, descriptor, slot),
1382
1246
  visual: (source, presentation) => createVisual(context, source, presentation),
1383
1247
  thumbnail: source => createImage(context, source, 'ok-native-list-thumbnail'),
1384
1248
  textStyle: applyTextStyleToSlot,
@@ -1388,7 +1252,7 @@ function rendererPrimitives(context, rowDisabled) {
1388
1252
  };
1389
1253
  }
1390
1254
  export function createRowBody(context, row) {
1391
- return rowRenderer(row).create(context.document, rendererPrimitives(context, Boolean(row.disabled)));
1255
+ return rowRenderer(row).create(context.document, rendererPrimitives(context));
1392
1256
  }
1393
1257
  export class NativeListWebEngine {
1394
1258
  rows = [];
@@ -1406,7 +1270,6 @@ export class NativeListWebEngine {
1406
1270
  rail: [],
1407
1271
  mediaTile: [],
1408
1272
  action: [],
1409
- buttonGroup: [],
1410
1273
  system: [],
1411
1274
  activity: [],
1412
1275
  dataRow: [],
@@ -1433,14 +1296,6 @@ export class NativeListWebEngine {
1433
1296
  lastViewportWidth = -1;
1434
1297
  lastViewportHeight = -1;
1435
1298
  destroyed = false;
1436
- hasAppliedSnapshot = false;
1437
- structuralAnimations = [];
1438
- structuralScrollInterrupted = false;
1439
- reactFooterHeight = 0;
1440
- structuralFooterCompensation = 0;
1441
- structuralFooterExpansion = 0;
1442
- structuralFooterFromHeight = 0;
1443
- structuralProgress = 0;
1444
1299
  sectionIndexAlignStart = false;
1445
1300
  // Renderers report intrinsic height after browser text wrapping.
1446
1301
  measuredRendererHeights = new Map();
@@ -1529,9 +1384,6 @@ export class NativeListWebEngine {
1529
1384
  });
1530
1385
  }
1531
1386
  (this.externalScrollHost ?? this.viewport).addEventListener('ok-collapsible-pager-cancel-scroll-command', this.handlePagerScrollCommandCancel);
1532
- for (const event of ['wheel', 'pointerdown', 'touchstart']) (this.externalScrollHost ?? this.viewport).addEventListener(event, this.handleStructuralUserScroll, {
1533
- passive: true
1534
- });
1535
1387
  this.viewport.addEventListener('scroll', this.handleScroll, {
1536
1388
  passive: true
1537
1389
  });
@@ -1547,7 +1399,6 @@ export class NativeListWebEngine {
1547
1399
  this.root.addEventListener('pointercancel', this.handleMarketPointerEnd);
1548
1400
  // OneKey patch: preserve web tooltip hover for section titles.
1549
1401
  this.root.addEventListener('pointerover', this.handleTitlePointerOver);
1550
- this.root.addEventListener('pointerdown', this.handleIconHelpPointerDown);
1551
1402
  this.root.addEventListener('focusin', this.handleTitlePointerOver);
1552
1403
  this.root.addEventListener('focusout', this.handleTitlePointerOut);
1553
1404
  this.root.addEventListener('pointerout', this.handleTitlePointerOut);
@@ -1671,162 +1522,8 @@ export class NativeListWebEngine {
1671
1522
  return next;
1672
1523
  });
1673
1524
  if (!validated) return;
1674
- this.pressedHelpElement = undefined;
1675
1525
  this.invalidateActionAnchor('snapshot');
1676
- const transition = validated.structuralTransition;
1677
- const isNewTransition = transition !== undefined && transition.id !== this.lastStructuralTransitionId;
1678
- if (transition) this.lastStructuralTransitionId = transition.id;
1679
- const nextRows = effectiveRows(validated);
1680
- const changedKeys = this.rows.length !== nextRows.length || this.rows.some((row, index) => row.key !== nextRows[index]?.key);
1681
- const shouldAnimate = this.hasAppliedSnapshot && isNewTransition && changedKeys && (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;
1682
- if (shouldAnimate && transition) this.applyStructuralSnapshot(validated, transition);else {
1683
- if (isNewTransition || changedKeys) this.cancelStructuralAnimation();
1684
- this.setSnapshot(validated);
1685
- }
1686
- this.hasAppliedSnapshot = true;
1687
- }
1688
- cancelStructuralAnimation() {
1689
- if (this.structuralFrame !== undefined) this.document.defaultView?.cancelAnimationFrame(this.structuralFrame);
1690
- if (this.structuralFinish !== undefined) this.document.defaultView?.clearTimeout(this.structuralFinish);
1691
- this.structuralFrame = undefined;
1692
- this.structuralFinish = undefined;
1693
- this.structuralAnimations.forEach(animation => animation.cancel());
1694
- this.structuralAnimations = [];
1695
- if (this.structuralFooterElement && this.structuralFooterStyles) {
1696
- this.structuralFooterElement.style.marginBottom = this.structuralFooterStyles.marginBottom;
1697
- this.structuralFooterElement.style.transform = this.structuralFooterStyles.transform;
1698
- this.structuralFooterElement.style.clipPath = this.structuralFooterStyles.clipPath;
1699
- }
1700
- this.structuralFooterElement = undefined;
1701
- this.structuralFooterStyles = undefined;
1702
- this.structuralScrollInterrupted = false;
1703
- this.structuralRenderedHeight = undefined;
1704
- this.structuralTargetHeight = undefined;
1705
- this.structuralFooterCompensation = 0;
1706
- this.structuralFooterExpansion = 0;
1707
- this.structuralProgress = 0;
1708
- const owner = this.externalScrollHost ?? this.viewport;
1709
- if (this.structuralAnchorStyles) {
1710
- owner.style.overflowAnchor = this.structuralAnchorStyles.owner;
1711
- this.content.style.overflowAnchor = this.structuralAnchorStyles.content;
1712
- this.structuralAnchorStyles = undefined;
1713
- }
1714
- }
1715
- handleStructuralUserScroll = event => {
1716
- if (event.type === 'pointerdown' && event.target !== (this.externalScrollHost ?? this.viewport) && event.pointerType !== 'touch') return;
1717
- this.structuralScrollInterrupted = true;
1718
- };
1719
- writeStructuralHeight(height) {
1720
- if (this.externalScrollHost) this.writeExternalHeight(height);else this.content.style.height = `${height}px`;
1721
- }
1722
- reactFooterElement() {
1723
- return this.contentBounds?.querySelector('[data-testid="native-list-footer-slot"]');
1724
- }
1725
- readReactFooterHeight() {
1726
- return this.reactFooterElement()?.getBoundingClientRect().height ?? 0;
1727
- }
1728
- applyStructuralFooterVisual(progress) {
1729
- const footer = this.structuralFooterElement;
1730
- if (!footer || this.structuralFooterExpansion <= 0) return;
1731
- const hidden = this.structuralFooterExpansion * (1 - progress);
1732
- footer.style.marginBottom = `${-hidden}px`;
1733
- footer.style.transform = `translateY(${-hidden}px)`;
1734
- footer.style.clipPath = `inset(${hidden}px 0 0 0)`;
1735
- }
1736
- applyStructuralSnapshot(next, transition) {
1737
- const owner = this.externalScrollHost ?? this.viewport;
1738
- const oldOffset = owner.scrollTop;
1739
- const oldScrollHeight = owner.scrollHeight;
1740
- const oldHeight = this.structuralRenderedHeight ?? (this.content.getBoundingClientRect().height || this.layout.contentHeight);
1741
- const nextFooterHeight = this.readReactFooterHeight();
1742
- const oldFooterHeight = this.structuralRenderedHeight === undefined ? this.reactFooterHeight : this.structuralFooterFromHeight + (this.reactFooterHeight - this.structuralFooterFromHeight) * this.structuralProgress;
1743
- const footerDifference = oldFooterHeight - nextFooterHeight;
1744
- const startHeight = oldHeight + Math.max(0, footerDifference);
1745
- const oldItems = this.layout.items;
1746
- const oldPositions = new Map();
1747
- this.mounted.forEach((element, index) => {
1748
- const row = this.rows[index];
1749
- if (row) oldPositions.set(row.key, element.getBoundingClientRect().top);
1750
- });
1751
- const nextKeys = new Set(effectiveRows(next).map(row => row.key));
1752
- const visibleOffset = this.currentOffset();
1753
- const visibleSurvivor = oldItems.find(item => item.y + item.height > visibleOffset && nextKeys.has(item.key));
1754
- const anchor = visibleSurvivor;
1755
- this.cancelStructuralAnimation();
1756
- this.structuralScrollInterrupted = false;
1757
- this.structuralAnchorStyles = {
1758
- owner: owner.style.overflowAnchor,
1759
- content: this.content.style.overflowAnchor
1760
- };
1761
- owner.style.overflowAnchor = 'none';
1762
- this.content.style.overflowAnchor = 'none';
1763
- this.structuralRenderedHeight = startHeight;
1764
- this.structuralFooterFromHeight = oldFooterHeight;
1765
- this.structuralFooterCompensation = Math.max(0, footerDifference);
1766
- this.structuralFooterExpansion = Math.max(0, -footerDifference);
1767
- this.structuralProgress = 0;
1768
- this.reactFooterHeight = nextFooterHeight;
1769
- this.structuralFooterElement = this.reactFooterElement() ?? undefined;
1770
- if (this.structuralFooterElement) {
1771
- const style = this.structuralFooterElement.style;
1772
- this.structuralFooterStyles = {
1773
- marginBottom: style.marginBottom,
1774
- transform: style.transform,
1775
- clipPath: style.clipPath
1776
- };
1777
- this.applyStructuralFooterVisual(0);
1778
- }
1779
- this.setSnapshot(next);
1780
- const newHeight = this.layout.contentHeight;
1781
- this.structuralTargetHeight = newHeight;
1782
- const nextAnchor = anchor && this.layout.items.find(item => item.key === anchor.key);
1783
- const delta = nextAnchor && anchor ? nextAnchor.y - anchor.y : 0;
1784
- const finalScrollHeight = oldScrollHeight + newHeight - oldHeight;
1785
- const finalMaxOffset = Math.max(0, finalScrollHeight - owner.clientHeight);
1786
- let targetOffset = Math.max(0, Math.min(oldOffset + delta, finalMaxOffset));
1787
- if (!visibleSurvivor && transition.anchorKey) {
1788
- const fallback = this.layout.items.find(item => item.key === transition.anchorKey);
1789
- if (fallback) {
1790
- const pagerStickyInset = Number.parseFloat(this.externalScrollHost?.style.getPropertyValue('--ok-collapsible-pager-sticky-inset') ?? '');
1791
- const effectiveStickyInset = Math.max(this.externalStickyInset, Number.isFinite(pagerStickyInset) ? pagerStickyInset : 0);
1792
- const fallbackTop = this.externalScrollHost ? this.externalGeometry().origin + fallback.y - effectiveStickyInset : resolveWebCollapsiblePagerRawOffset(Math.max(0, fallback.y - this.collapsiblePagerInsets().sticky), this.collapsiblePagerInsets().header);
1793
- targetOffset = Math.min(targetOffset, Math.max(0, fallbackTop));
1794
- }
1795
- }
1796
- const duration = transition.durationMs ?? 220;
1797
- const easing = 'cubic-bezier(0.42, 0, 0.58, 1)';
1798
- this.mounted.forEach((element, index) => {
1799
- const row = this.rows[index];
1800
- const previousTop = row && oldPositions.get(row.key);
1801
- if (previousTop === undefined || typeof element.animate !== 'function') return;
1802
- const offset = previousTop - element.getBoundingClientRect().top;
1803
- if (Math.abs(offset) < 0.5) return;
1804
- this.structuralAnimations.push(element.animate([{
1805
- transform: `translateY(${offset}px)`
1806
- }, {
1807
- transform: 'translateY(0)'
1808
- }], {
1809
- duration,
1810
- easing
1811
- }));
1812
- });
1813
- const startedAt = this.document.defaultView?.performance.now() ?? Date.now();
1814
- const step = time => {
1815
- const progress = Math.min(1, (time - startedAt) / duration);
1816
- const eased = progress * progress * (3 - 2 * progress);
1817
- this.structuralProgress = eased;
1818
- const renderedHeight = oldHeight + ((this.structuralTargetHeight ?? newHeight) - oldHeight) * eased + this.structuralFooterCompensation * (1 - eased);
1819
- this.structuralRenderedHeight = renderedHeight;
1820
- this.writeStructuralHeight(renderedHeight);
1821
- this.applyStructuralFooterVisual(eased);
1822
- if (!this.structuralScrollInterrupted) owner.scrollTop = oldOffset + (targetOffset - oldOffset) * eased;
1823
- if (progress < 1) this.structuralFrame = this.document.defaultView?.requestAnimationFrame(step);
1824
- };
1825
- this.structuralFrame = this.document.defaultView?.requestAnimationFrame(step);
1826
- this.structuralFinish = this.document.defaultView?.setTimeout(() => {
1827
- this.cancelStructuralAnimation();
1828
- this.recomputeLayout();
1829
- }, duration + 40);
1526
+ this.setSnapshot(validated);
1830
1527
  }
1831
1528
  currentContentHeight() {
1832
1529
  return this.layout.contentHeight;
@@ -1999,8 +1696,6 @@ export class NativeListWebEngine {
1999
1696
  }
2000
1697
  destroy() {
2001
1698
  if (this.destroyed) return;
2002
- this.cancelStructuralAnimation();
2003
- this.pressedHelpElement = undefined;
2004
1699
  this.invalidateActionAnchor('destroy');
2005
1700
  this.destroyed = true;
2006
1701
  if (this.frameHandle !== undefined) this.cancelFrame(this.frameHandle);
@@ -2013,7 +1708,6 @@ export class NativeListWebEngine {
2013
1708
  this.document.defaultView?.removeEventListener('resize', this.handleWindowResize);
2014
1709
  this.pendingScroll = undefined;
2015
1710
  (this.externalScrollHost ?? this.viewport).removeEventListener('ok-collapsible-pager-cancel-scroll-command', this.handlePagerScrollCommandCancel);
2016
- for (const event of ['wheel', 'pointerdown', 'touchstart']) (this.externalScrollHost ?? this.viewport).removeEventListener(event, this.handleStructuralUserScroll);
2017
1711
  this.viewport.removeEventListener('scroll', this.handleScroll);
2018
1712
  (this.externalScrollHost ?? this.viewport).removeEventListener('ok-collapsible-pager-insets-changed', this.handleCollapsiblePagerInsetsChanged);
2019
1713
  this.root.removeEventListener('click', this.handleClick);
@@ -2025,7 +1719,6 @@ export class NativeListWebEngine {
2025
1719
  this.root.removeEventListener('pointerup', this.handleMarketPointerEnd);
2026
1720
  this.root.removeEventListener('pointercancel', this.handleMarketPointerEnd);
2027
1721
  this.root.removeEventListener('pointerover', this.handleTitlePointerOver);
2028
- this.root.removeEventListener('pointerdown', this.handleIconHelpPointerDown);
2029
1722
  this.root.removeEventListener('focusin', this.handleTitlePointerOver);
2030
1723
  this.root.removeEventListener('focusout', this.handleTitlePointerOut);
2031
1724
  this.root.removeEventListener('pointerout', this.handleTitlePointerOut);
@@ -2064,7 +1757,6 @@ export class NativeListWebEngine {
2064
1757
  }
2065
1758
  setSnapshot(snapshot, selectedKeys) {
2066
1759
  this.cancelMarketPointer();
2067
- this.pressedHelpElement = undefined;
2068
1760
  this.measuredRendererHeights.clear();
2069
1761
  this.snapshot = snapshot;
2070
1762
  this.rows = effectiveRows(snapshot);
@@ -2082,7 +1774,6 @@ export class NativeListWebEngine {
2082
1774
  '--nl-row': theme.rowBackground,
2083
1775
  '--nl-selected': theme.rowSelectedBackground,
2084
1776
  '--nl-pressed': theme.rowPressedBackground,
2085
- '--nl-hover': theme.rowHoverBackground ?? theme.rowPressedBackground,
2086
1777
  '--nl-subdued': theme.subduedBackground,
2087
1778
  '--nl-strong': theme.strongBackground,
2088
1779
  '--nl-image-fallback-background': theme.imageFallbackBackground ?? 'transparent',
@@ -2099,7 +1790,6 @@ export class NativeListWebEngine {
2099
1790
  '--nl-separator': theme.separator,
2100
1791
  '--nl-accent': theme.accent,
2101
1792
  '--nl-positive': theme.positive,
2102
- '--nl-success-background': theme.successBackground,
2103
1793
  '--nl-negative': theme.negative,
2104
1794
  '--nl-critical': theme.criticalBackground,
2105
1795
  '--nl-inverse': theme.inverseBackground,
@@ -2160,23 +1850,10 @@ export class NativeListWebEngine {
2160
1850
  }
2161
1851
  recomputeLayout = () => {
2162
1852
  if (this.destroyed) return;
2163
- if (this.structuralRenderedHeight === undefined) this.reactFooterHeight = this.readReactFooterHeight();else {
2164
- const nextFooterHeight = this.readReactFooterHeight();
2165
- const footerDelta = this.reactFooterHeight - nextFooterHeight;
2166
- if (footerDelta !== 0) {
2167
- this.reactFooterHeight = nextFooterHeight;
2168
- const priorCompensation = this.structuralFooterCompensation;
2169
- const difference = this.structuralFooterFromHeight - nextFooterHeight;
2170
- this.structuralFooterCompensation = Math.max(0, difference);
2171
- this.structuralFooterExpansion = Math.max(0, -difference);
2172
- this.structuralRenderedHeight += (this.structuralFooterCompensation - priorCompensation) * (1 - this.structuralProgress);
2173
- this.applyStructuralFooterVisual(this.structuralProgress);
2174
- }
2175
- }
2176
1853
  const cachedWidth = this.lastViewportWidth;
2177
1854
  const cachedHeight = this.lastViewportHeight;
2178
1855
  const precomputedLayout = this.externalScrollHost && cachedWidth > 0 && cachedHeight > 0 ? this.computeLayout(cachedWidth, cachedHeight) : undefined;
2179
- if (precomputedLayout && this.structuralRenderedHeight === undefined) {
1856
+ if (precomputedLayout) {
2180
1857
  // Commit appended row extent before measuring React-owned slot changes.
2181
1858
  this.writeExternalHeight(Math.max(this.layout.contentHeight, precomputedLayout.contentHeight));
2182
1859
  }
@@ -2206,13 +1883,11 @@ export class NativeListWebEngine {
2206
1883
  const previousHorizontal = this.layout.horizontal;
2207
1884
  this.layout = precomputedLayout && viewportWidth === cachedWidth && viewportHeight === cachedHeight ? precomputedLayout : this.computeLayout(viewportWidth, viewportHeight);
2208
1885
  this.content.style.width = String(this.layout.contentWidth) + 'px';
2209
- const renderedHeight = this.structuralRenderedHeight ?? this.layout.contentHeight;
2210
- this.content.style.height = String(renderedHeight) + 'px';
1886
+ this.content.style.height = String(this.layout.contentHeight) + 'px';
2211
1887
  if (this.externalScrollHost) {
2212
- this.writeExternalHeight(renderedHeight);
1888
+ this.writeExternalHeight(this.layout.contentHeight);
2213
1889
  this.externalGeometryCache = undefined;
2214
1890
  }
2215
- if (this.structuralRenderedHeight !== undefined) this.structuralTargetHeight = this.layout.contentHeight;
2216
1891
  this.renderSectionIndex(this.viewport.clientHeight <= 0 ? DEFAULT_VIEWPORT_HEIGHT : Math.max(1, viewportHeight), stickyInset);
2217
1892
  if (previousHorizontal !== this.layout.horizontal) {
2218
1893
  this.viewport.scrollLeft = 0;
@@ -2365,7 +2040,7 @@ export class NativeListWebEngine {
2365
2040
  const body = reusableBody ?? createRowBody(context, row);
2366
2041
  if (reusableBody) {
2367
2042
  resetRowContainerStyle(body);
2368
- registered.bind(body, rendererPrimitives(context, Boolean(row.disabled)));
2043
+ registered.bind(body, rendererPrimitives(context));
2369
2044
  }
2370
2045
  // OneKey patch: explicit selector fields preserve original page geometry.
2371
2046
  element.style.contain = row.backgroundFullWidth ? 'layout style' : '';
@@ -2847,7 +2522,6 @@ export class NativeListWebEngine {
2847
2522
  return anchor.actionElement.isConnected && anchor.rowElement.isConnected && anchor.rowElement.contains(anchor.actionElement) && anchor.rowElement.dataset.nativeListBindingEpoch === anchor.bindingEpoch;
2848
2523
  }
2849
2524
  invalidateActionAnchorForElement(element) {
2850
- if (this.pressedHelpElement && element.contains(this.pressedHelpElement)) this.pressedHelpElement = undefined;
2851
2525
  const anchor = this.actionAnchor;
2852
2526
  if (anchor && (element === anchor.rowElement || element.contains(anchor.actionElement))) {
2853
2527
  this.invalidateActionAnchor('rebind');
@@ -2920,9 +2594,9 @@ export class NativeListWebEngine {
2920
2594
  if (event.target.closest('[data-native-list-action]')) return;
2921
2595
  const rowElement = event.target.closest('[data-native-list-row-key]');
2922
2596
  const row = this.rowAtElement(rowElement);
2923
- if (row?.type !== 'market' && row?.type !== 'identity' || !isRowPressEnabled(row)) return;
2597
+ if (row?.type !== 'market' || !isRowPressEnabled(row)) return;
2924
2598
  this.cancelMarketPointer();
2925
- if (row.type === 'market' && row.pressInActionKey) this.emitRowAction(row, row.pressInActionKey, rowElement ?? undefined, rowElement ?? undefined);
2599
+ if (row.pressInActionKey) this.emitRowAction(row, row.pressInActionKey, rowElement ?? undefined, rowElement ?? undefined);
2926
2600
  if (!row.longPressActionKey || !rowElement) return;
2927
2601
  markActionAnchorSource(rowElement, 'row');
2928
2602
  const bindingEpoch = rowElement.dataset.nativeListBindingEpoch;
@@ -2931,7 +2605,7 @@ export class NativeListWebEngine {
2931
2605
  if (!current || current.pointerId !== event.pointerId) return;
2932
2606
  const currentRow = this.rowAtElement(rowElement);
2933
2607
  this.marketPointer = undefined;
2934
- if (!rowElement.isConnected || rowElement.dataset.nativeListBindingEpoch !== bindingEpoch || currentRow?.key !== row.key || currentRow.type !== 'market' && currentRow.type !== 'identity' || !isRowPressEnabled(currentRow) || !currentRow.longPressActionKey) return;
2608
+ if (!rowElement.isConnected || rowElement.dataset.nativeListBindingEpoch !== bindingEpoch || currentRow?.key !== row.key || currentRow.type !== 'market' || !isRowPressEnabled(currentRow) || !currentRow.longPressActionKey) return;
2935
2609
  this.marketLongPressFired = true;
2936
2610
  this.emitRowAction(currentRow, currentRow.longPressActionKey, rowElement, rowElement, {
2937
2611
  x: event.clientX,
@@ -2942,7 +2616,7 @@ export class NativeListWebEngine {
2942
2616
  this.marketPointer = {
2943
2617
  pointerId: event.pointerId,
2944
2618
  pointerType: event.pointerType,
2945
- compact: row.type === 'identity' || !row.webTable,
2619
+ compact: !row.webTable,
2946
2620
  rowKey: row.key,
2947
2621
  startX: event.clientX,
2948
2622
  startY: event.clientY,
@@ -2978,14 +2652,7 @@ export class NativeListWebEngine {
2978
2652
  if (!(target instanceof Element)) return;
2979
2653
  const action = target.closest('[data-native-list-hover-action]');
2980
2654
  if (!action || event.relatedTarget instanceof Node && action.contains(event.relatedTarget)) return;
2981
- if (action.dataset.nativeListIconHelp === 'true') {
2982
- if (event.type === 'pointerover' && event.pointerType === 'touch') return;
2983
- if (this.pressedHelpElement === action) return;
2984
- }
2985
2655
  if (action.classList.contains('ok-native-list-market-subtitle-prefix') && action.scrollWidth <= action.clientWidth + 1) return;
2986
- this.emitHoverAction(action);
2987
- };
2988
- emitHoverAction(action) {
2989
2656
  const rowElement = action.closest('[data-native-list-row-key]');
2990
2657
  const row = this.rowAtElement(rowElement);
2991
2658
  const memberKey = action.closest('[data-native-list-group-member-key]')?.dataset.nativeListGroupMemberKey;
@@ -2994,26 +2661,12 @@ export class NativeListWebEngine {
2994
2661
  // Legacy Web: hover checks only the resolved source (the member for a
2995
2662
  // WalletGroup), not the enclosing row's `disabled`.
2996
2663
  if (sourceRow && !sourceRow.disabled && actionKey) this.emitRowAction(sourceRow, actionKey, action, rowElement ?? undefined);
2997
- }
2998
- handleIconHelpPointerDown = event => {
2999
- const target = event.target;
3000
- if (!(target instanceof Element)) return;
3001
- const action = target.closest('[data-native-list-icon-help="true"]');
3002
- if (!action) return;
3003
- if (event.pointerType === 'touch') {
3004
- if (this.actionAnchor?.actionElement === action && this.actionAnchor.open) this.invalidateActionAnchor('pointerLeave');else this.emitHoverAction(action);
3005
- } else {
3006
- this.pressedHelpElement = action;
3007
- if (this.actionAnchor?.actionElement === action) this.invalidateActionAnchor('pointerLeave');
3008
- }
3009
2664
  };
3010
2665
  handleTitlePointerOut = event => {
3011
2666
  const target = event.target;
3012
2667
  if (!(target instanceof Element)) return;
3013
2668
  const action = target.closest('[data-native-list-hover-action]');
3014
2669
  if (!action || event.relatedTarget instanceof Node && action.contains(event.relatedTarget)) return;
3015
- if (action.dataset.nativeListIconHelp === 'true' && event.type === 'pointerout' && event.pointerType === 'touch') return;
3016
- if (event.type === 'pointerout' && this.pressedHelpElement === action) this.pressedHelpElement = undefined;
3017
2670
  if (this.actionAnchor?.actionElement === action) this.invalidateActionAnchor('pointerLeave');
3018
2671
  };
3019
2672
  handleClick = event => {
@@ -3025,11 +2678,6 @@ export class NativeListWebEngine {
3025
2678
  }
3026
2679
  const target = event.target;
3027
2680
  if (!(target instanceof Element)) return;
3028
- if (target.closest('[data-native-list-icon-help="true"]')) {
3029
- event.preventDefault();
3030
- event.stopPropagation();
3031
- return;
3032
- }
3033
2681
  const rowElement = target.closest('[data-native-list-row-key]');
3034
2682
  const row = this.rowAtElement(rowElement);
3035
2683
  if (!row || row.disabled) return;
@@ -3041,8 +2689,6 @@ export class NativeListWebEngine {
3041
2689
  // member press is blocked by `isRowPressEnabled` in `handleRowPress`.
3042
2690
  const action = target.closest('[data-native-list-action]');
3043
2691
  if (action) {
3044
- if (action.tagName === 'BUTTON' && action.hasAttribute('disabled')) return;
3045
- if (action.classList.contains('ok-native-list-trailing-button')) event.stopPropagation();
3046
2692
  const scope = action.dataset.selectionScope;
3047
2693
  if (scope === 'row') this.activateSelection({
3048
2694
  scope: 'row'
@@ -3158,7 +2804,6 @@ export class NativeListWebEngine {
3158
2804
  };
3159
2805
  handleScroll = () => {
3160
2806
  this.externalGeometryCache = undefined;
3161
- this.pressedHelpElement = undefined;
3162
2807
  this.cancelMarketPointer();
3163
2808
  this.invalidateActionAnchor('scroll');
3164
2809
  this.scheduleFrame();