@onekeyfe/react-native-native-list 6.7.0-2 → 6.7.0-21

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 (148) hide show
  1. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
  2. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +245 -9
  3. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +35 -7
  4. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +25 -3
  5. package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
  6. package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
  7. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
  8. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +102 -7
  9. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +225 -11
  10. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +147 -33
  11. package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
  12. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
  13. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +149 -3
  14. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +51 -0
  15. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
  16. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +2 -0
  17. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
  18. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
  19. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
  20. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1953 -117
  21. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +35 -0
  22. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
  23. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
  24. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
  25. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
  26. package/docs/ROW_TEMPLATES.md +70 -11
  27. package/docs/SPEC.md +1235 -20
  28. package/docs/STYLE_SPEC.md +6 -0
  29. package/ios/HybridNativeList.swift +21 -2
  30. package/ios/NativeListAccessoryStack.swift +235 -39
  31. package/ios/NativeListActivityDetailsView.swift +30 -11
  32. package/ios/NativeListActivityRenderer.swift +8 -2
  33. package/ios/NativeListButtonGroupRenderer.swift +89 -0
  34. package/ios/NativeListDataRowRenderer.swift +155 -27
  35. package/ios/NativeListDesignAssets.swift +9 -0
  36. package/ios/NativeListIdentityRenderer.swift +239 -31
  37. package/ios/NativeListLeadingVisual.swift +119 -22
  38. package/ios/NativeListMarketRenderer.swift +113 -18
  39. package/ios/NativeListMessageRenderer.swift +34 -1
  40. package/ios/NativeListModels.swift +42 -2
  41. package/ios/NativeListRendererRegistry.swift +1 -0
  42. package/ios/NativeListResolvedText.swift +2 -1
  43. package/ios/NativeListRowHost.swift +14 -0
  44. package/ios/NativeListSectionHeaderRenderer.swift +88 -0
  45. package/ios/RNCNativeListView.swift +1052 -58
  46. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +15 -0
  47. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +4 -0
  48. package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/Contents.json +1 -0
  49. package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/icon.svg +1 -0
  50. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/Contents.json +1 -0
  51. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/icon.svg +1 -0
  52. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +15 -0
  53. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +3 -0
  54. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/Contents.json +1 -0
  55. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/icon.svg +1 -0
  56. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +15 -0
  57. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +3 -0
  58. package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/Contents.json +1 -0
  59. package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/icon.svg +1 -0
  60. package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/Contents.json +1 -0
  61. package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/icon.svg +1 -0
  62. package/ios/tests/NativeListAccessoryStackTests.swift +89 -0
  63. package/ios/tests/NativeListActivityPresentationTests.swift +153 -0
  64. package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
  65. package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
  66. package/ios/tests/NativeListLifecycleTests.swift +2789 -3
  67. package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
  68. package/lib/module/NativeList.js +223 -36
  69. package/lib/module/NativeList.web.js +260 -33
  70. package/lib/module/index.js +1 -1
  71. package/lib/module/models.js +3 -0
  72. package/lib/module/selection.js +1 -1
  73. package/lib/module/validation.js +1386 -81
  74. package/lib/module/web/NativeListWebEngine.js +914 -80
  75. package/lib/module/web/templates/ActivityRowRenderer.js +487 -7
  76. package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
  77. package/lib/module/web/templates/DataRowRenderer.js +40 -5
  78. package/lib/module/web/templates/IdentityRowRenderer.js +145 -5
  79. package/lib/module/web/templates/MarketRowRenderer.js +8 -3
  80. package/lib/module/web/templates/MarketTableRowRenderer.js +577 -0
  81. package/lib/module/web/templates/MediaTileRowRenderer.js +260 -5
  82. package/lib/module/web/templates/MessageRowRenderer.js +18 -2
  83. package/lib/module/web/templates/RowContainerStyle.js +1 -0
  84. package/lib/module/web/templates/RowRendererRegistry.js +8 -3
  85. package/lib/module/web/templates/SectionHeaderRowRenderer.js +70 -3
  86. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  87. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  88. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  89. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  90. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  91. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  92. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  93. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  94. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  95. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  96. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  97. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  98. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  99. package/lib/typescript/src/NativeList.d.ts +3 -3
  100. package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
  101. package/lib/typescript/src/NativeList.types.d.ts +29 -1
  102. package/lib/typescript/src/NativeList.web.d.ts +2 -2
  103. package/lib/typescript/src/index.d.ts +2 -2
  104. package/lib/typescript/src/models.d.ts +196 -17
  105. package/lib/typescript/src/validation.d.ts +20 -0
  106. package/lib/typescript/src/web/NativeListWebEngine.d.ts +58 -1
  107. package/lib/typescript/src/web/templates/ActivityRowRenderer.d.ts +3 -3
  108. package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
  109. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
  110. package/lib/typescript/src/web/templates/MarketTableRowRenderer.d.ts +17 -0
  111. package/lib/typescript/src/web/templates/MediaTileRowRenderer.d.ts +3 -3
  112. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +10 -4
  113. package/lib/typescript/src/web/templates/RowRendererRegistry.d.ts +3 -1
  114. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  115. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  116. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  117. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  118. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  119. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  120. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  121. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  122. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  123. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  124. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  125. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  126. package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  127. package/package.json +3 -3
  128. package/react-native-native-list.podspec +1 -0
  129. package/src/NativeList.nitro.ts +2 -0
  130. package/src/NativeList.tsx +418 -89
  131. package/src/NativeList.types.ts +34 -1
  132. package/src/NativeList.web.tsx +417 -66
  133. package/src/index.ts +2 -0
  134. package/src/models.ts +355 -143
  135. package/src/selection.ts +1 -0
  136. package/src/validation.ts +3315 -166
  137. package/src/web/NativeListWebEngine.ts +1473 -113
  138. package/src/web/templates/ActivityRowRenderer.ts +732 -8
  139. package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
  140. package/src/web/templates/DataRowRenderer.ts +93 -20
  141. package/src/web/templates/IdentityRowRenderer.ts +217 -6
  142. package/src/web/templates/MarketRowRenderer.ts +19 -3
  143. package/src/web/templates/MarketTableRowRenderer.ts +755 -0
  144. package/src/web/templates/MediaTileRowRenderer.ts +313 -5
  145. package/src/web/templates/MessageRowRenderer.ts +23 -7
  146. package/src/web/templates/RowContainerStyle.ts +2 -0
  147. package/src/web/templates/RowRendererRegistry.ts +21 -6
  148. package/src/web/templates/SectionHeaderRowRenderer.ts +89 -5
@@ -22,6 +22,8 @@ export type ImageSource = Readonly<{
22
22
  /** Defaults to `none` in NativeList; use `static` or `skeleton` to opt into loading UI. */
23
23
  loadingStrategy?: ImageLoadingStrategy;
24
24
  fallbackUri?: string;
25
+ /** Web-only ordered continuation; retries each source before advancing. */
26
+ fallbackUris?: readonly string[];
25
27
  retryTimes?: number;
26
28
  }>;
27
29
  export type BadgeModel = Readonly<{
@@ -95,6 +97,7 @@ export declare const ROW_BOX_STYLE_KEYS_BY_TYPE: {
95
97
  readonly metricCard: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "image"];
96
98
  readonly sectionHeader: readonly ["horizontalPadding", "verticalPadding", "lineGap", "trailingGap"];
97
99
  readonly action: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "trailingGap", "image"];
100
+ readonly buttonGroup: readonly [];
98
101
  readonly system: readonly ["horizontalPadding", "verticalPadding", "lineGap"];
99
102
  };
100
103
  type TemplateBoxStyle<T extends keyof typeof ROW_BOX_STYLE_KEYS_BY_TYPE> = Pick<RowBoxStyle, (typeof ROW_BOX_STYLE_KEYS_BY_TYPE)[T][number] | 'container'>;
@@ -105,6 +108,7 @@ type TemplateBoxStyle<T extends keyof typeof ROW_BOX_STYLE_KEYS_BY_TYPE> = Pick<
105
108
  * the same key name keeps one meaning across platforms. See docs/STYLE_SPEC.md §4.
106
109
  */
107
110
  export type IdentityRowStyle = TemplateBoxStyle<'identity'> & Readonly<{
111
+ leadingContentMaxWidthRatio?: number;
108
112
  title?: NativeListTextStyle;
109
113
  subtitle?: NativeListTextStyle;
110
114
  tertiary?: NativeListTextStyle;
@@ -166,6 +170,13 @@ export type SectionHeaderRowStyle = TemplateBoxStyle<'sectionHeader'> & Readonly
166
170
  title?: NativeListTextStyle;
167
171
  subtitle?: NativeListTextStyle;
168
172
  value?: NativeListTextStyle;
173
+ valuePlacement?: 'afterTitle';
174
+ titleDecoration?: 'none' | 'dashed';
175
+ }>;
176
+ export type RowTextHelp = Readonly<{
177
+ actionKey: string;
178
+ presentation: 'tooltip' | 'popover';
179
+ underline?: 'dashed';
169
180
  }>;
170
181
  export type ActionRowStyle = TemplateBoxStyle<'action'> & Readonly<{
171
182
  title?: NativeListTextStyle;
@@ -223,8 +234,13 @@ export type VisualOverlay = Readonly<{
223
234
  offsetX?: number;
224
235
  offsetY?: number;
225
236
  image?: ImageSource;
237
+ fallbackIcon?: Readonly<{
238
+ name: string;
239
+ tintColor?: string;
240
+ }>;
226
241
  name?: string;
227
242
  text?: string;
243
+ fontWeight?: NativeListTextStyle['fontWeight'];
228
244
  tintColor?: string;
229
245
  backgroundColor?: string;
230
246
  }>;
@@ -232,12 +248,15 @@ type VisualWithImage = Readonly<{
232
248
  fallbackIcon?: Readonly<{
233
249
  name: string;
234
250
  tintColor?: string;
251
+ size?: number;
252
+ backgroundColor?: string;
235
253
  }>;
236
254
  overlays?: readonly VisualOverlay[];
237
255
  borderStyle?: 'dashed';
238
256
  borderColor?: string;
239
257
  image?: ImageSource;
240
258
  fallbackText?: string;
259
+ fallbackTextColor?: string;
241
260
  backgroundColor?: string;
242
261
  shape?: 'circle' | 'rounded' | 'square';
243
262
  cornerIcon?: Readonly<{
@@ -289,8 +308,24 @@ export type TrailingAccessory = Readonly<{
289
308
  kind: 'valuePair';
290
309
  primary: string;
291
310
  secondary: string;
311
+ primaryFontWeight?: 'medium';
312
+ primaryHelp?: RowTextHelp;
313
+ primaryTextSegments?: readonly ValueTextSegment[];
314
+ secondaryTextSegments?: readonly ValueTextSegment[];
292
315
  primaryTone?: TextTone;
293
316
  secondaryTone?: TextTone;
317
+ }> | Readonly<{
318
+ kind: 'button';
319
+ label: string;
320
+ actionKey: string;
321
+ disabled?: boolean;
322
+ testID?: string;
323
+ accessibilityLabel?: string;
324
+ textColor?: string;
325
+ backgroundColor?: string;
326
+ pressedBackgroundColor?: string;
327
+ hoverBackgroundColor?: string;
328
+ focusRingColor?: string;
294
329
  }> | Readonly<{
295
330
  kind: 'checkbox';
296
331
  state: CheckboxState;
@@ -321,6 +356,7 @@ export type TrailingAccessory = Readonly<{
321
356
  kind: 'icon';
322
357
  name: string;
323
358
  tintColor?: string;
359
+ buttonStyle?: 'tertiary';
324
360
  disabled?: boolean;
325
361
  actionKey?: string;
326
362
  testID?: string;
@@ -360,6 +396,10 @@ export type RowBase = Readonly<{
360
396
  }>;
361
397
  export type IdentityRow = RowBase & Readonly<{
362
398
  type: 'identity';
399
+ /** Opt in to content-based height; explicit row/container height still wins. */
400
+ contentHeight?: 'auto';
401
+ /** Emits a row action instead of a press after a successful long press. */
402
+ longPressActionKey?: string;
363
403
  titleMatch?: readonly Readonly<{
364
404
  start: number;
365
405
  end: number;
@@ -373,11 +413,34 @@ export type IdentityRow = RowBase & Readonly<{
373
413
  kind: 'icon';
374
414
  }>;
375
415
  title: string;
416
+ /** Plain 12/16 labels beside the title, preserving independent tones. */
417
+ titleSuffixes?: readonly Readonly<{
418
+ text: string;
419
+ tone: 'secondary' | 'disabled';
420
+ maxWidth?: number;
421
+ }>[];
422
+ titleIcon?: Readonly<{
423
+ name: string;
424
+ tintColor?: string;
425
+ accessibilityLabel?: string;
426
+ /** Web-only anchored help from this icon; does not add a click action. */
427
+ hoverActionKey?: string;
428
+ }>;
429
+ /** Web-only additional help icon after titleIcon. */
430
+ secondaryTitleIcon?: IdentityRow['titleIcon'];
431
+ /** Circular image after title icons; image dimensions must be square, 1...40. */
432
+ titleImage?: Readonly<{
433
+ image: ImageSource;
434
+ accessibilityLabel?: string;
435
+ /** Web-only help anchor; the consumer owns tooltip content. */
436
+ hoverActionKey?: string;
437
+ }>;
376
438
  subtitle?: string;
377
439
  tertiary?: string;
378
440
  tertiaryTone?: 'secondary' | 'info';
379
441
  titleLines?: 1 | 2;
380
- subtitleLines?: 1 | 2;
442
+ /** Zero displays the complete subtitle. */
443
+ subtitleLines?: 0 | 1 | 2;
381
444
  badges?: readonly BadgeModel[];
382
445
  trailing?: readonly TrailingAccessory[];
383
446
  draggable?: boolean;
@@ -411,6 +474,7 @@ export type ActivityAmount = Readonly<{
411
474
  export type ActivityRow = RowBase & Readonly<{
412
475
  type: 'activity';
413
476
  leading: LeadingVisual;
477
+ hideLeading?: boolean;
414
478
  secondaryLeading?: LeadingVisual;
415
479
  title: string;
416
480
  description?: string;
@@ -434,11 +498,14 @@ export type ActivityRow = RowBase & Readonly<{
434
498
  }>;
435
499
  export type MessageRow = RowBase & Readonly<{
436
500
  type: 'message';
501
+ /** Draws only top and bottom container borders when a border is supplied. */
502
+ presentation?: 'inlineWarning';
437
503
  unread?: boolean;
438
504
  leading?: LeadingVisual;
439
505
  title: string;
440
506
  body: string;
441
- bodyLines?: 1 | 2 | 3;
507
+ /** Zero displays the complete body. */
508
+ bodyLines?: 0 | 1 | 2 | 3;
442
509
  time: string;
443
510
  thumbnail?: ImageSource;
444
511
  style?: MessageRowStyle;
@@ -446,8 +513,12 @@ export type MessageRow = RowBase & Readonly<{
446
513
  export type DataColumn = Readonly<{
447
514
  key: string;
448
515
  text: string;
516
+ textSegments?: readonly ValueTextSegment[];
517
+ titleIcon?: IdentityRow['titleIcon'];
518
+ secondaryTitleIcon?: IdentityRow['titleIcon'];
449
519
  secondaryLeadingText?: string;
450
520
  secondaryText?: string;
521
+ secondaryTextSegments?: readonly ValueTextSegment[];
451
522
  weight?: 1 | 2 | 3;
452
523
  alignment?: 'start' | 'center' | 'end';
453
524
  tone?: 'primary' | 'secondary' | 'positive' | 'negative';
@@ -457,6 +528,7 @@ export type DataRow = RowBase & Readonly<{
457
528
  type: 'dataRow';
458
529
  leading?: LeadingVisual;
459
530
  columns: readonly DataColumn[];
531
+ trailing?: readonly TrailingAccessory[];
460
532
  checkbox?: Extract<TrailingAccessory, {
461
533
  kind: 'checkbox';
462
534
  }>;
@@ -467,10 +539,71 @@ export type DataRow = RowBase & Readonly<{
467
539
  favoriteActive?: boolean;
468
540
  style?: DataRowStyle;
469
541
  }>;
542
+ export type WebMarketTableColumn = Readonly<{
543
+ key: string;
544
+ width?: number;
545
+ minWidth?: number;
546
+ flex?: number;
547
+ alignment?: 'start' | 'center' | 'end';
548
+ paddingStart?: number;
549
+ paddingEnd?: number;
550
+ }>;
551
+ export type WebMarketTableText = Readonly<{
552
+ text: string;
553
+ segments?: readonly ValueTextSegment[];
554
+ tone?: TextTone;
555
+ style?: Pick<NativeListTextStyle, 'fontSize' | 'fontWeight' | 'lineHeight' | 'color'>;
556
+ }>;
557
+ export type WebMarketTableCell = Readonly<{
558
+ key: string;
559
+ }> & (Readonly<{
560
+ kind: 'favorite';
561
+ active: boolean;
562
+ disabled?: boolean;
563
+ testID?: string;
564
+ hoverActionKey?: string;
565
+ actionKey: string;
566
+ accessibilityLabel: string;
567
+ }> | Readonly<{
568
+ kind: 'asset';
569
+ leading: LeadingVisual;
570
+ title: WebMarketTableText;
571
+ secondary?: readonly WebMarketTableText[];
572
+ lineGap?: number;
573
+ secondaryBadges?: readonly Pick<MarketBadgeModel, 'key' | 'text' | 'style'>[];
574
+ hoverImages?: readonly (ImageSource | null)[];
575
+ hoverSecondary?: readonly WebMarketTableText[];
576
+ hoverActionKey?: string;
577
+ hoverActionLabel?: string;
578
+ badges?: readonly Pick<MarketBadgeModel, 'key' | 'text' | 'iconName' | 'icon' | 'textColor' | 'backgroundColor' | 'actionKey' | 'accessibilityLabel' | 'style'>[];
579
+ }> | Readonly<{
580
+ kind: 'text';
581
+ primary: readonly WebMarketTableText[];
582
+ partGap?: number;
583
+ secondary?: readonly WebMarketTableText[];
584
+ }> | Readonly<{
585
+ kind: 'sparkline';
586
+ points: readonly number[];
587
+ width: number;
588
+ height: number;
589
+ strokeColor: string;
590
+ fillColor: string;
591
+ }>);
592
+ export type WebMarketTablePresentation = Readonly<{
593
+ draggable?: boolean;
594
+ contextMenuActionKey?: string;
595
+ testID?: string;
596
+ columns: readonly WebMarketTableColumn[];
597
+ cells: readonly WebMarketTableCell[];
598
+ }>;
470
599
  /** Native Market quote row. All values are already localized/formatted strings. */
471
600
  export type MarketRow = RowBase & Readonly<{
472
601
  type: 'market';
473
602
  variant: 'token' | 'stock' | 'perp';
603
+ /** Web-only bounded table presentation; native reads the ordinary Market fields. */
604
+ webTable?: WebMarketTablePresentation;
605
+ /** Two or three ordered native text metrics; omitting them keeps the compact quote. */
606
+ metrics?: readonly Pick<DataColumn, 'key' | 'text' | 'textSegments' | 'secondaryText' | 'secondaryTextSegments' | 'weight' | 'alignment' | 'tone' | 'secondaryTone'>[];
474
607
  leadingAction?: Extract<TrailingAccessory, {
475
608
  kind: 'icon';
476
609
  }>;
@@ -480,6 +613,8 @@ export type MarketRow = RowBase & Readonly<{
480
613
  /** OneKey patch: localized name shrinks independently of the volume. */
481
614
  subtitlePrefix?: Readonly<{
482
615
  text: string;
616
+ /** Web-only anchored help for a truncated name. */
617
+ hoverActionKey?: string;
483
618
  gap?: number;
484
619
  maxWidth?: number;
485
620
  style?: MarketTextStyle;
@@ -548,9 +683,11 @@ export type SectionHeaderRow = RowBase & Readonly<{
548
683
  indexTitle?: string;
549
684
  variant?: 'summary' | 'gallery' | 'history';
550
685
  title: string;
686
+ leadingBadge?: BadgeModel;
551
687
  titleLoading?: boolean;
552
688
  subtitle?: string;
553
689
  value?: string;
690
+ valueHelp?: RowTextHelp;
554
691
  valueActionKey?: string;
555
692
  titleIcon?: Extract<TrailingAccessory, {
556
693
  kind: 'icon';
@@ -578,6 +715,19 @@ export type ActionRow = RowBase & Readonly<{
578
715
  trailing?: readonly TrailingAccessory[];
579
716
  style?: ActionRowStyle;
580
717
  }>;
718
+ export type ButtonGroupRow = RowBase & Readonly<{
719
+ type: 'buttonGroup';
720
+ buttons: readonly Readonly<{
721
+ key: string;
722
+ label: string;
723
+ actionKey: string;
724
+ disabled?: boolean;
725
+ loading?: boolean;
726
+ testID?: string;
727
+ accessibilityLabel?: string;
728
+ }>[];
729
+ style?: TemplateBoxStyle<'buttonGroup'>;
730
+ }>;
581
731
  export type SystemRow = RowBase & Readonly<{
582
732
  style?: SystemRowStyle;
583
733
  }> & (Readonly<{
@@ -614,7 +764,7 @@ export type SystemRow = RowBase & Readonly<{
614
764
  variant: 'spacer';
615
765
  height: number;
616
766
  }>);
617
- export type RowModel = IdentityRow | WalletGroupRow | RailRow | ActivityRow | MessageRow | DataRow | MarketRow | MediaTileRow | MetricCardRow | SectionHeaderRow | ActionRow | SystemRow;
767
+ export type RowModel = IdentityRow | WalletGroupRow | RailRow | ActivityRow | MessageRow | DataRow | MarketRow | MediaTileRow | MetricCardRow | SectionHeaderRow | ActionRow | ButtonGroupRow | SystemRow;
618
768
  export type NativeListTheme = Readonly<{
619
769
  checkboxBackground?: string;
620
770
  checkboxBorder?: string;
@@ -624,8 +774,12 @@ export type NativeListTheme = Readonly<{
624
774
  rowBackground: string;
625
775
  rowSelectedBackground: string;
626
776
  rowPressedBackground?: string;
777
+ /** Web-only enabled-row hover color; defaults to rowPressedBackground. */
778
+ rowHoverBackground?: string;
627
779
  subduedBackground?: string;
628
780
  strongBackground?: string;
781
+ /** Web-only background for a displayed declared image fallback. */
782
+ imageFallbackBackground?: string;
629
783
  primaryText: string;
630
784
  secondaryText: string;
631
785
  disabledText?: string;
@@ -634,6 +788,8 @@ export type NativeListTheme = Readonly<{
634
788
  separator: string;
635
789
  accent: string;
636
790
  positive: string;
791
+ /** Optional exact background for the success tone of section leading badges. */
792
+ successBackground?: string;
637
793
  negative: string;
638
794
  criticalBackground?: string;
639
795
  inverseBackground?: string;
@@ -675,6 +831,16 @@ export type NativeListListStyle = Readonly<{
675
831
  export type NativeListSnapshot = Readonly<{
676
832
  schemaVersion: 1;
677
833
  generation: number;
834
+ /** One-shot animation for a user-initiated row-key insertion or removal. */
835
+ structuralTransition?: Readonly<{
836
+ id: string;
837
+ durationMs?: number;
838
+ anchorKey?: string;
839
+ }>;
840
+ disclosure?: Readonly<{
841
+ expanded: boolean;
842
+ expandedTrailingInset?: number;
843
+ }>;
678
844
  layout: Readonly<{
679
845
  kind: NativeListLayout;
680
846
  orientation?: NativeListOrientation;
@@ -707,56 +873,64 @@ export type NativeListSnapshot = Readonly<{
707
873
  listStyle?: NativeListListStyle;
708
874
  }>;
709
875
  type CommonPatchFields = 'revision' | 'disabled' | 'selected' | 'separator' | 'height' | 'heightRounding' | 'opacity' | 'pressDisabled' | 'accessibilityLabel' | 'style';
876
+ /** Null removes optional fields; undefined leaves the existing value unchanged. */
877
+ export type PatchClearableChanges<Row, Keys extends keyof Row> = Readonly<{
878
+ [K in Keys]?: undefined extends Row[K] ? Row[K] | null : Row[K];
879
+ }>;
710
880
  export type RowPatch = Readonly<{
711
881
  type: 'identity';
712
882
  key: string;
713
- changes: Partial<Pick<IdentityRow, CommonPatchFields | 'title' | 'subtitle' | 'tertiary' | 'tertiaryTone' | 'badges' | 'trailing' | 'leading' | 'leadingAction' | 'titleMatch' | 'titleActionKey' | 'titleActionOnHover' | 'subtitleSegments'>>;
883
+ changes: PatchClearableChanges<IdentityRow, CommonPatchFields | 'title' | 'titleSuffixes' | 'titleIcon' | 'secondaryTitleIcon' | 'titleImage' | 'subtitle' | 'subtitleLines' | 'contentHeight' | 'longPressActionKey' | 'tertiary' | 'tertiaryTone' | 'badges' | 'trailing' | 'leading' | 'leadingAction' | 'titleMatch' | 'titleActionKey' | 'titleActionOnHover' | 'subtitleSegments'>;
714
884
  }> | Readonly<{
715
885
  type: 'rail';
716
886
  key: string;
717
- changes: Partial<Pick<RailRow, CommonPatchFields | 'title' | 'status' | 'badge' | 'visual'>>;
887
+ changes: PatchClearableChanges<RailRow, CommonPatchFields | 'title' | 'status' | 'badge' | 'visual'>;
718
888
  }> | Readonly<{
719
889
  type: 'activity';
720
890
  key: string;
721
- changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'secondaryLeading' | 'footerActions'>>;
891
+ changes: PatchClearableChanges<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'hideLeading' | 'secondaryLeading' | 'footerActions'>;
722
892
  }> | Readonly<{
723
893
  type: 'message';
724
894
  key: string;
725
- changes: Partial<Pick<MessageRow, CommonPatchFields | 'unread' | 'title' | 'body' | 'bodyLines' | 'time' | 'thumbnail'>>;
895
+ changes: PatchClearableChanges<MessageRow, CommonPatchFields | 'unread' | 'title' | 'body' | 'bodyLines' | 'presentation' | 'time' | 'thumbnail'>;
726
896
  }> | Readonly<{
727
897
  type: 'dataRow';
728
898
  key: string;
729
- changes: Partial<Pick<DataRow, CommonPatchFields | 'leading' | 'columns' | 'checkbox' | 'index' | 'badge' | 'badges' | 'favorite' | 'favoriteActive'>>;
899
+ changes: PatchClearableChanges<DataRow, CommonPatchFields | 'leading' | 'columns' | 'trailing' | 'checkbox' | 'index' | 'badge' | 'badges' | 'favorite' | 'favoriteActive'>;
730
900
  }> | Readonly<{
731
901
  type: 'market';
732
902
  key: string;
733
- changes: Partial<Pick<MarketRow, CommonPatchFields | 'leadingAction' | 'leading' | 'title' | 'subtitle' | 'subtitleSegments' | 'price' | 'priceSegments' | 'change' | 'badges' | 'pressActionKey' | 'pressInActionKey' | 'longPressActionKey' | 'diagnostics' | 'style'>>;
903
+ changes: PatchClearableChanges<MarketRow, CommonPatchFields | 'leadingAction' | 'leading' | 'title' | 'subtitle' | 'subtitleSegments' | 'price' | 'priceSegments' | 'change' | 'badges' | 'pressActionKey' | 'pressInActionKey' | 'longPressActionKey' | 'diagnostics' | 'webTable' | 'metrics' | 'style'>;
734
904
  }> | Readonly<{
735
905
  type: 'mediaTile';
736
906
  key: string;
737
- changes: Partial<Pick<MediaTileRow, CommonPatchFields | 'image' | 'imageState' | 'media' | 'networkImage' | 'title' | 'subtitle' | 'badge' | 'closeActionKey'>>;
907
+ changes: PatchClearableChanges<MediaTileRow, CommonPatchFields | 'image' | 'imageState' | 'media' | 'networkImage' | 'title' | 'subtitle' | 'badge' | 'closeActionKey'>;
738
908
  }> | Readonly<{
739
909
  type: 'metricCard';
740
910
  key: string;
741
- changes: Partial<Pick<MetricCardRow, CommonPatchFields | 'variant' | 'title' | 'value' | 'subtitle' | 'trend' | 'trendTone' | 'visual' | 'badge' | 'metrics' | 'progress'>>;
911
+ changes: PatchClearableChanges<MetricCardRow, CommonPatchFields | 'variant' | 'title' | 'value' | 'subtitle' | 'trend' | 'trendTone' | 'visual' | 'badge' | 'metrics' | 'progress'>;
742
912
  }> | Readonly<{
743
913
  type: 'sectionHeader';
744
914
  key: string;
745
- changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>>;
915
+ changes: PatchClearableChanges<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | 'valueHelp' | 'leadingBadge' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>;
746
916
  }> | Readonly<{
747
917
  type: 'action';
748
918
  key: string;
749
- changes: Partial<Pick<ActionRow, CommonPatchFields | 'title' | 'tone' | 'icon' | 'checkbox' | 'trailing'>>;
919
+ changes: PatchClearableChanges<ActionRow, CommonPatchFields | 'title' | 'tone' | 'icon' | 'checkbox' | 'trailing'>;
920
+ }> | Readonly<{
921
+ type: 'buttonGroup';
922
+ key: string;
923
+ changes: PatchClearableChanges<ButtonGroupRow, CommonPatchFields | 'buttons'>;
750
924
  }> | Readonly<{
751
925
  type: 'system';
752
926
  key: string;
753
927
  changes: Readonly<{
754
- revision?: number;
755
- disabled?: boolean;
756
- message?: string;
928
+ revision?: number | null;
929
+ disabled?: boolean | null;
930
+ message?: string | null;
757
931
  }>;
758
932
  }>;
759
- export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'description' | 'mediaClose';
933
+ export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'buttonGroup' | 'description' | 'mediaClose';
760
934
  export type NativeListWindowRect = Readonly<{
761
935
  x: number;
762
936
  y: number;
@@ -779,6 +953,11 @@ export type NativeListActionAnchor = Readonly<{
779
953
  layoutDirection: 'ltr' | 'rtl';
780
954
  }>;
781
955
  export type RowActionEvent = Readonly<{
956
+ /** Web-only client/window CSS pixel pointer location. */
957
+ windowPoint?: Readonly<{
958
+ x: number;
959
+ y: number;
960
+ }>;
782
961
  rowKey?: string;
783
962
  actionKey: string;
784
963
  sectionKey?: string;
@@ -1,6 +1,26 @@
1
1
  import type { NativeListSnapshot, RowPatch } from './models';
2
+ /** Component boundaries report locations, never caller-controlled payload values. */
3
+ export declare function containNativeListInput<T>(operation: () => T): T | undefined;
4
+ export declare function emptyNativeListSnapshot(): NativeListSnapshot;
2
5
  export declare function validateSnapshot(snapshot: NativeListSnapshot): NativeListSnapshot;
6
+ /** Capture caller data once before validation, including accessor values. */
7
+ export declare function captureNativeListInput<T>(value: T): T;
8
+ /** Private native-wrapper ownership; exported validators keep their public identity. */
9
+ export declare function ownValidatedNativeSnapshot(snapshot: NativeListSnapshot): NativeListSnapshot;
3
10
  export declare function validatePatches(patches: readonly RowPatch[]): readonly RowPatch[];
11
+ /** Plan value-only patches; callers own valid immutable snapshots and commit state. */
12
+ export declare function planNativeListPatches(previous: NativeListSnapshot, next: NativeListSnapshot): readonly RowPatch[] | undefined;
13
+ /** One canonical batch owns both accepted rows and the native wire payload. */
14
+ export declare function applyValidatedRowPatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): {
15
+ patches: readonly RowPatch[];
16
+ snapshot: NativeListSnapshot;
17
+ json: string;
18
+ };
19
+ export declare function applyOwnedNativePatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): {
20
+ patches: readonly RowPatch[];
21
+ snapshot: NativeListSnapshot;
22
+ json: string;
23
+ };
4
24
  export declare function applyRowPatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): NativeListSnapshot;
5
25
  export declare function serializeSnapshot(snapshot: NativeListSnapshot): string;
6
26
  export declare function serializePatches(patches: readonly RowPatch[]): string;
@@ -83,7 +83,20 @@ export declare function isWebMarketQuotePatch(patch: RowPatch): boolean;
83
83
  export declare function webMarketImageBindDeltaForPatches(patches: readonly RowPatch[]): 0 | 1;
84
84
  export declare const WEB_LIST_CSS: string;
85
85
  export declare function createRowBody(context: RenderContext, row: RowModel): HTMLElement;
86
+ export type NativeListWebScrollOptions = Readonly<{
87
+ scrollHost?: HTMLElement;
88
+ contentBounds?: HTMLElement;
89
+ stickyInset?: number;
90
+ ownsRefresh?: boolean;
91
+ }>;
86
92
  export declare class NativeListWebEngine {
93
+ private readonly externalScrollHost;
94
+ private readonly ownsRefresh;
95
+ private readonly pullTarget;
96
+ private readonly contentBounds;
97
+ private externalStickyInset;
98
+ private externalOrigin;
99
+ private externalGeometryCache;
87
100
  private readonly document;
88
101
  private readonly root;
89
102
  private readonly viewportFrame;
@@ -132,6 +145,7 @@ export declare class NativeListWebEngine {
132
145
  private pullDistance;
133
146
  private virtualizationEnabled;
134
147
  private actionAnchor;
148
+ private pressedHelpElement;
135
149
  private readonly actionAnchorInstanceId;
136
150
  private actionAnchorCounter;
137
151
  private bindingEpochCounter;
@@ -140,17 +154,52 @@ export declare class NativeListWebEngine {
140
154
  private lastViewportWidth;
141
155
  private lastViewportHeight;
142
156
  private destroyed;
157
+ private hasAppliedSnapshot;
158
+ private lastStructuralTransitionId;
159
+ private structuralFrame;
160
+ private structuralFinish;
161
+ private structuralRevision;
162
+ private structuralAnimations;
163
+ private structuralScrollInterrupted;
164
+ private structuralRenderedHeight;
165
+ private structuralTargetHeight;
166
+ private reactFooterHeight;
167
+ private structuralFooterCompensation;
168
+ private structuralFooterExpansion;
169
+ private structuralFooterFromHeight;
170
+ private structuralFooterElement;
171
+ private structuralFooterStyles;
172
+ private structuralProgress;
173
+ private structuralAnchorStyles;
174
+ private structuralContentOverflow;
175
+ private structuralPrefixTransition;
176
+ private structuralTail;
143
177
  private sectionIndexAlignStart;
144
178
  private measuredRendererHeights;
145
179
  private notifyScrollCommandAccepted;
146
180
  private readonly handlePagerScrollCommandCancel;
147
- constructor(host: HTMLElement, snapshot: NativeListSnapshot, callbacks: NativeListWebCallbacks, virtualizationEnabled?: boolean, sectionIndexContainer?: HTMLElement | null, fontFamiliesJson?: string);
181
+ constructor(host: HTMLElement, snapshot: NativeListSnapshot, callbacks: NativeListWebCallbacks, virtualizationEnabled?: boolean, sectionIndexContainer?: HTMLElement | null, fontFamiliesJson?: string, scrollOptions?: NativeListWebScrollOptions);
182
+ private validateStickyInset;
183
+ setStickyInset(value?: number): void;
184
+ private externalGeometry;
185
+ private readExternalGeometry;
148
186
  private fontFamiliesJson;
149
187
  private applyFontFamilies;
150
188
  setFontFamiliesJson(json: string): void;
151
189
  updateCallbacks(callbacks: NativeListWebCallbacks): void;
152
190
  setVirtualizationEnabled(enabled: boolean): void;
153
191
  applySnapshot(snapshot: NativeListSnapshot): void;
192
+ private applyValidatedSnapshot;
193
+ private cancelStructuralAnimation;
194
+ private handleStructuralUserScroll;
195
+ private updateStructuralTailWindow;
196
+ private writeStructuralHeight;
197
+ private reactFooterElement;
198
+ private readReactFooterHeight;
199
+ private applyStructuralFooterVisual;
200
+ private applyStructuralSnapshot;
201
+ currentContentHeight(): number;
202
+ currentSnapshot(): NativeListSnapshot;
154
203
  applyPatches(patches: readonly RowPatch[]): void;
155
204
  reconcileSelection(keys: readonly string[]): void;
156
205
  scrollToIndex(index: number, scroll: NormalizedPositionScroll): void;
@@ -169,6 +218,8 @@ export declare class NativeListWebEngine {
169
218
  * renders exactly as before. See docs/STYLE_SPEC.md §5.
170
219
  */
171
220
  private applyListStyle;
221
+ private computeLayout;
222
+ private writeExternalHeight;
172
223
  private recomputeLayout;
173
224
  private updateAvatarWindow;
174
225
  private renderWindow;
@@ -197,6 +248,7 @@ export declare class NativeListWebEngine {
197
248
  private collapsiblePagerInsets;
198
249
  private verticalScrollMetrics;
199
250
  private handleCollapsiblePagerInsetsChanged;
251
+ private writeExternalOffset;
200
252
  private scrollToAbsoluteOffset;
201
253
  private performPendingScroll;
202
254
  private rowAtElement;
@@ -211,10 +263,14 @@ export declare class NativeListWebEngine {
211
263
  private emitActionAnchorInvalidated;
212
264
  private handleRowPress;
213
265
  private cancelMarketPointer;
266
+ private handleMarketContextMenu;
214
267
  private handleMarketPointerDown;
215
268
  private handleMarketPointerMove;
269
+ private handleMarketTouchMove;
216
270
  private handleMarketPointerEnd;
217
271
  private handleTitlePointerOver;
272
+ private emitHoverAction;
273
+ private handleIconHelpPointerDown;
218
274
  private handleTitlePointerOut;
219
275
  private handleClick;
220
276
  private handleKeyDown;
@@ -222,6 +278,7 @@ export declare class NativeListWebEngine {
222
278
  private moveKeyboardReorder;
223
279
  private finishKeyboardReorder;
224
280
  private cancelKeyboardReorder;
281
+ private handleExternalScroll;
225
282
  private handleScroll;
226
283
  private handleWindowResize;
227
284
  private scheduleFrame;
@@ -1,14 +1,14 @@
1
1
  import type { ActivityRow } from '../../models';
2
2
  import { type RowPrimitives } from './RowVisual';
3
- declare function bind(body: HTMLElement, row: ActivityRow, primitives: RowPrimitives): void;
4
- declare function create(document: Document, row: ActivityRow, primitives: RowPrimitives): HTMLElement;
5
3
  declare function recycle(body: HTMLElement): void;
4
+ declare function bind(body: HTMLElement, row: ActivityRow, primitives: RowPrimitives): void;
5
+ declare function create(document: Document, row: ActivityRow, primitives: RowPrimitives): HTMLDivElement;
6
6
  export declare const activityRowRenderer: {
7
7
  key: "activity";
8
8
  create: typeof create;
9
9
  bind: typeof bind;
10
10
  recycle: typeof recycle;
11
- measure: (row: ActivityRow, _width: number) => 60 | 100;
11
+ measure: (row: ActivityRow, _width: number) => number;
12
12
  measureRendered: (_body: HTMLElement, _row: ActivityRow) => number | undefined;
13
13
  };
14
14
  export {};
@@ -0,0 +1,14 @@
1
+ import type { ButtonGroupRow } from '../../models';
2
+ import type { RowPrimitives } from './RowVisual';
3
+ declare function bind(body: HTMLElement, row: ButtonGroupRow): void;
4
+ declare function create(document: Document, row: ButtonGroupRow, _primitives: RowPrimitives): HTMLDivElement;
5
+ export declare const buttonGroupRowRenderer: {
6
+ key: "buttonGroup";
7
+ create: typeof create;
8
+ bind: typeof bind;
9
+ recycle: (body: HTMLElement) => void;
10
+ measure: (_row: ButtonGroupRow, _width: number) => number;
11
+ measureRendered: (body: HTMLElement) => number;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=ButtonGroupRowRenderer.d.ts.map
@@ -10,7 +10,7 @@ export declare const identityRowRenderer: {
10
10
  recycle: typeof recycle;
11
11
  appliesSizePreset: (row: IdentityRow) => boolean;
12
12
  measure: (row: IdentityRow, _width: number) => number;
13
- measureRendered: (_body: HTMLElement, _row: IdentityRow) => number | undefined;
13
+ measureRendered: (body: HTMLElement, row: IdentityRow) => number | undefined;
14
14
  };
15
15
  export {};
16
16
  //# sourceMappingURL=IdentityRowRenderer.d.ts.map
@@ -0,0 +1,17 @@
1
+ import type { MarketRow } from '../../models';
2
+ import type { RowPrimitives } from './RowVisual';
3
+ export declare function canPatchMarketTableValues(previous: MarketRow, next: MarketRow): boolean;
4
+ declare function bind(body: HTMLElement, row: MarketRow, primitives: RowPrimitives): void;
5
+ declare function create(document: Document, row: MarketRow, primitives: RowPrimitives): HTMLElement;
6
+ export declare function updateMarketTableValues(element: HTMLElement, row: MarketRow): void;
7
+ export declare const marketTableRowRenderer: {
8
+ key: string;
9
+ appliesSizePreset: () => boolean;
10
+ create: typeof create;
11
+ bind: typeof bind;
12
+ measure: () => number;
13
+ measureRendered: () => undefined;
14
+ recycle: (body: HTMLElement) => void;
15
+ };
16
+ export {};
17
+ //# sourceMappingURL=MarketTableRowRenderer.d.ts.map
@@ -1,14 +1,14 @@
1
1
  import type { MediaTileRow } from '../../models';
2
2
  import type { RowPrimitives } from './RowVisual';
3
- declare function bind(body: HTMLElement, row: MediaTileRow, primitives: RowPrimitives): void;
4
- declare function create(document: Document, row: MediaTileRow, primitives: RowPrimitives): HTMLElement;
5
3
  declare function recycle(body: HTMLElement): void;
4
+ declare function bind(body: HTMLElement, row: MediaTileRow, primitives: RowPrimitives): void;
5
+ declare function create(document: Document, row: MediaTileRow, primitives: RowPrimitives): HTMLDivElement;
6
6
  export declare const mediaTileRowRenderer: {
7
7
  key: "mediaTile";
8
8
  create: typeof create;
9
9
  bind: typeof bind;
10
10
  recycle: typeof recycle;
11
- measure: (_row: MediaTileRow, _width: number) => number;
11
+ measure: (row: MediaTileRow, width: number) => number;
12
12
  measureRendered: (_body: HTMLElement, _row: MediaTileRow) => number | undefined;
13
13
  };
14
14
  export {};