@onekeyfe/react-native-native-list 3.0.157 → 3.0.159

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 (199) hide show
  1. package/README.md +21 -5
  2. package/android/build.gradle +7 -0
  3. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +20 -0
  4. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +711 -0
  5. package/android/src/main/java/com/onekey/nativelist/NativeListActionRenderer.kt +169 -0
  6. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +179 -0
  7. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +264 -0
  8. package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +20 -6
  9. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +53 -0
  10. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +487 -0
  11. package/android/src/main/java/com/onekey/nativelist/NativeListEndAlignment.kt +5 -0
  12. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +820 -0
  13. package/android/src/main/java/com/onekey/nativelist/NativeListImageSlot.kt +147 -0
  14. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +453 -0
  15. package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +997 -0
  16. package/android/src/main/java/com/onekey/nativelist/NativeListMediaPreviewSlot.kt +268 -0
  17. package/android/src/main/java/com/onekey/nativelist/NativeListMediaTileRenderer.kt +243 -0
  18. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +232 -0
  19. package/android/src/main/java/com/onekey/nativelist/NativeListMetricCardRenderer.kt +551 -0
  20. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +27 -1
  21. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +475 -0
  22. package/android/src/main/java/com/onekey/nativelist/NativeListRailRenderer.kt +143 -0
  23. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +42 -0
  24. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +415 -0
  25. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +163 -0
  26. package/android/src/main/java/com/onekey/nativelist/NativeListRowHost.kt +70 -0
  27. package/android/src/main/java/com/onekey/nativelist/NativeListScrollPositionTracker.kt +59 -0
  28. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +763 -0
  29. package/android/src/main/java/com/onekey/nativelist/NativeListSystemRenderer.kt +464 -0
  30. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +25 -0
  31. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +432 -124
  32. package/android/src/main/java/com/onekey/nativelist/NativeListWalletGroupRenderer.kt +407 -0
  33. package/android/src/main/res/values/native_scroll_coordinator_ids.xml +5 -0
  34. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListEndAlignmentTest.kt +34 -0
  35. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListScrollPositionTrackerTest.kt +44 -0
  36. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListSelectorBackgroundColorTest.kt +34 -0
  37. package/docs/DESIGN.md +520 -9
  38. package/docs/MIGRATION_BASELINE.md +117 -0
  39. package/docs/ROW_TEMPLATES.md +404 -0
  40. package/docs/SPEC.md +621 -0
  41. package/docs/STYLE_SPEC.md +988 -0
  42. package/docs/images/list-capabilities.svg +39 -0
  43. package/docs/images/row-action.svg +17 -0
  44. package/docs/images/row-activity.svg +24 -0
  45. package/docs/images/row-data.svg +24 -0
  46. package/docs/images/row-identity.svg +25 -0
  47. package/docs/images/row-market.svg +23 -0
  48. package/docs/images/row-media-tile.svg +26 -0
  49. package/docs/images/row-message.svg +20 -0
  50. package/docs/images/row-metric-card.svg +33 -0
  51. package/docs/images/row-rail.svg +18 -0
  52. package/docs/images/row-section-header.svg +19 -0
  53. package/docs/images/row-style-regions.svg +30 -0
  54. package/docs/images/row-system.svg +30 -0
  55. package/docs/images/row-wallet-group.svg +26 -0
  56. package/ios/HybridNativeList.swift +30 -0
  57. package/ios/NativeListAccessoryStack.swift +680 -0
  58. package/ios/NativeListActionRenderer.swift +108 -0
  59. package/ios/NativeListActivityDetailsView.swift +291 -0
  60. package/ios/NativeListActivityRenderer.swift +201 -0
  61. package/ios/NativeListDataRowRenderer.swift +444 -0
  62. package/ios/NativeListIdentityRenderer.swift +685 -0
  63. package/ios/NativeListImageSlot.swift +140 -0
  64. package/ios/NativeListLeadingVisual.swift +372 -0
  65. package/ios/NativeListMarketRenderer.swift +698 -0
  66. package/ios/NativeListMediaPreviewSlot.swift +259 -0
  67. package/ios/NativeListMediaTileRenderer.swift +190 -0
  68. package/ios/NativeListMessageRenderer.swift +168 -0
  69. package/ios/NativeListMetricCardRenderer.swift +420 -0
  70. package/ios/NativeListModels.swift +36 -1
  71. package/ios/NativeListRailRenderer.swift +152 -0
  72. package/ios/NativeListRendererCell.swift +311 -0
  73. package/ios/NativeListRendererRegistry.swift +50 -0
  74. package/ios/NativeListResolvedText.swift +130 -0
  75. package/ios/NativeListRowHost.swift +63 -0
  76. package/ios/NativeListScrollPositionTracker.swift +30 -0
  77. package/ios/NativeListSectionHeaderRenderer.swift +734 -0
  78. package/ios/NativeListSystemRenderer.swift +568 -0
  79. package/ios/NativeListTextLabel.swift +42 -0
  80. package/ios/NativeListTextStyles.swift +236 -0
  81. package/ios/NativeListWalletGroupRenderer.swift +255 -0
  82. package/ios/RNCNativeListView.swift +282 -184
  83. package/ios/tests/NativeListActivityPresentationTests.swift +97 -0
  84. package/ios/tests/NativeListLifecycleTests.swift +241 -0
  85. package/ios/tests/NativeListMediaVisibilityTests.swift +109 -0
  86. package/ios/tests/NativeListScrollPositionTrackerTests.swift +25 -0
  87. package/lib/module/NativeList.js +56 -3
  88. package/lib/module/NativeList.web.js +5 -0
  89. package/lib/module/models.js +54 -0
  90. package/lib/module/validation.js +386 -28
  91. package/lib/module/web/NativeListWebEngine.js +148 -936
  92. package/lib/module/web/templates/ActionRowRenderer.js +97 -0
  93. package/lib/module/web/templates/ActivityRowRenderer.js +95 -0
  94. package/lib/module/web/templates/DataRowRenderer.js +145 -0
  95. package/lib/module/web/templates/IdentityRowRenderer.js +289 -0
  96. package/lib/module/web/templates/MarketRowRenderer.js +310 -0
  97. package/lib/module/web/templates/MediaTileRowRenderer.js +132 -0
  98. package/lib/module/web/templates/MessageRowRenderer.js +165 -0
  99. package/lib/module/web/templates/MetricCardRowRenderer.js +172 -0
  100. package/lib/module/web/templates/RailRowRenderer.js +98 -0
  101. package/lib/module/web/templates/RowContainerStyle.js +100 -0
  102. package/lib/module/web/templates/RowElements.js +93 -0
  103. package/lib/module/web/templates/RowRendererRegistry.js +70 -0
  104. package/lib/module/web/templates/RowText.js +121 -0
  105. package/lib/module/web/templates/RowVisual.js +43 -0
  106. package/lib/module/web/templates/SectionHeaderRowRenderer.js +146 -0
  107. package/lib/module/web/templates/SystemRowRenderer.js +161 -0
  108. package/lib/module/web/templates/WalletGroupRowRenderer.js +96 -0
  109. package/lib/nitrogen/generated/android/c++/JFunc_void_bool.hpp +75 -0
  110. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +39 -3
  111. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +6 -0
  112. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +15 -0
  113. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/Func_void_bool.kt +78 -0
  114. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +26 -0
  115. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/views/HybridNativeListManager.kt +24 -9
  116. package/lib/nitrogen/generated/android/nativelistOnLoad.cpp +2 -0
  117. package/lib/nitrogen/generated/ios/NativeListModule-Swift-Cxx-Bridge.cpp +8 -0
  118. package/lib/nitrogen/generated/ios/NativeListModule-Swift-Cxx-Bridge.hpp +37 -0
  119. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +23 -2
  120. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +32 -0
  121. package/lib/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
  122. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +3 -0
  123. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +54 -0
  124. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +6 -0
  125. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +8 -2
  126. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +6 -0
  127. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +11 -2
  128. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +3 -0
  129. package/lib/typescript/src/NativeList.nitro.d.ts +3 -0
  130. package/lib/typescript/src/NativeList.types.d.ts +14 -1
  131. package/lib/typescript/src/models.d.ts +199 -18
  132. package/lib/typescript/src/web/NativeListWebEngine.d.ts +18 -16
  133. package/lib/typescript/src/web/templates/ActionRowRenderer.d.ts +15 -0
  134. package/lib/typescript/src/web/templates/ActivityRowRenderer.d.ts +15 -0
  135. package/lib/typescript/src/web/templates/DataRowRenderer.d.ts +15 -0
  136. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +16 -0
  137. package/lib/typescript/src/web/templates/MarketRowRenderer.d.ts +30 -0
  138. package/lib/typescript/src/web/templates/MediaTileRowRenderer.d.ts +15 -0
  139. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +44 -0
  140. package/lib/typescript/src/web/templates/MetricCardRowRenderer.d.ts +15 -0
  141. package/lib/typescript/src/web/templates/RailRowRenderer.d.ts +28 -0
  142. package/lib/typescript/src/web/templates/RowContainerStyle.d.ts +9 -0
  143. package/lib/typescript/src/web/templates/RowElements.d.ts +38 -0
  144. package/lib/typescript/src/web/templates/RowRendererRegistry.d.ts +83 -0
  145. package/lib/typescript/src/web/templates/RowText.d.ts +9 -0
  146. package/lib/typescript/src/web/templates/RowVisual.d.ts +20 -0
  147. package/lib/typescript/src/web/templates/SectionHeaderRowRenderer.d.ts +15 -0
  148. package/lib/typescript/src/web/templates/SystemRowRenderer.d.ts +16 -0
  149. package/lib/typescript/src/web/templates/WalletGroupRowRenderer.d.ts +20 -0
  150. package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +75 -0
  151. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +39 -3
  152. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +6 -0
  153. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +15 -0
  154. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/Func_void_bool.kt +78 -0
  155. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +26 -0
  156. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/views/HybridNativeListManager.kt +24 -9
  157. package/nitrogen/generated/android/nativelistOnLoad.cpp +2 -0
  158. package/nitrogen/generated/ios/NativeListModule-Swift-Cxx-Bridge.cpp +8 -0
  159. package/nitrogen/generated/ios/NativeListModule-Swift-Cxx-Bridge.hpp +37 -0
  160. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +23 -2
  161. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +32 -0
  162. package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
  163. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +3 -0
  164. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +54 -0
  165. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +6 -0
  166. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +8 -2
  167. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +6 -0
  168. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +11 -2
  169. package/nitrogen/generated/shared/json/NativeListConfig.json +3 -0
  170. package/package.json +7 -6
  171. package/react-native-native-list.podspec +6 -0
  172. package/scripts/enable-container-slots.mjs +58 -0
  173. package/scripts/enable-container-slots.test.mjs +58 -0
  174. package/src/NativeList.nitro.ts +3 -0
  175. package/src/NativeList.tsx +84 -2
  176. package/src/NativeList.types.ts +14 -1
  177. package/src/NativeList.web.tsx +5 -0
  178. package/src/models.ts +320 -20
  179. package/src/validation.ts +641 -49
  180. package/src/web/NativeListWebEngine.ts +361 -1932
  181. package/src/web/templates/ActionRowRenderer.ts +123 -0
  182. package/src/web/templates/ActivityRowRenderer.ts +159 -0
  183. package/src/web/templates/DataRowRenderer.ts +212 -0
  184. package/src/web/templates/IdentityRowRenderer.ts +527 -0
  185. package/src/web/templates/MarketRowRenderer.ts +467 -0
  186. package/src/web/templates/MediaTileRowRenderer.ts +182 -0
  187. package/src/web/templates/MessageRowRenderer.ts +306 -0
  188. package/src/web/templates/MetricCardRowRenderer.ts +337 -0
  189. package/src/web/templates/RailRowRenderer.ts +136 -0
  190. package/src/web/templates/RowContainerStyle.ts +131 -0
  191. package/src/web/templates/RowElements.ts +160 -0
  192. package/src/web/templates/RowRendererRegistry.ts +111 -0
  193. package/src/web/templates/RowText.ts +181 -0
  194. package/src/web/templates/RowVisual.ts +115 -0
  195. package/src/web/templates/SectionHeaderRowRenderer.ts +243 -0
  196. package/src/web/templates/SystemRowRenderer.ts +282 -0
  197. package/src/web/templates/WalletGroupRowRenderer.ts +131 -0
  198. package/android/src/main/java/com/onekey/nativelist/NativeListRowView.kt +0 -4538
  199. package/ios/NativeListCell.swift +0 -4300
@@ -29,43 +29,157 @@ export type BadgeModel = Readonly<{
29
29
  text: string;
30
30
  tone?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
31
31
  }>;
32
- export type MarketTextStyle = Readonly<{
32
+ /**
33
+ * Named typography steps, shared with the application's design scale. Resolved
34
+ * to fontSize/lineHeight/fontWeight in JavaScript before the snapshot is
35
+ * serialized, so no native renderer needs to know the vocabulary.
36
+ * See docs/STYLE_SPEC.md §3.2.
37
+ */
38
+ export type NativeListTypographyToken = '$headingXl' | '$headingLg' | '$headingMd' | '$headingSm' | '$headingXs' | '$bodyLg' | '$bodyMd' | '$bodySm' | '$bodyXs';
39
+ export type NativeListTextStyle = Readonly<{
40
+ token?: NativeListTypographyToken;
33
41
  fontSize?: number;
34
42
  fontWeight?: 'regular' | 'medium' | 'semibold' | 'bold';
35
43
  color?: string;
36
44
  lineHeight?: number;
37
- lines?: 1 | 2;
45
+ /** Maximum visible lines; does not reserve empty lines or enlarge the row. */
46
+ lines?: 1 | 2 | 3;
47
+ truncate?: 'tail' | 'clip';
38
48
  alignment?: 'start' | 'center' | 'end';
49
+ verticalAlignment?: 'top' | 'center' | 'bottom';
50
+ /** Optical translation in logical units; does not affect layout. */
51
+ offsetY?: number;
39
52
  }>;
40
- export type MarketImageStyle = Readonly<{
53
+ /** Retained alias: Market shipped this name before the style surface was shared. */
54
+ export type MarketTextStyle = NativeListTextStyle;
55
+ export type NativeListImageStyle = Readonly<{
41
56
  width?: number;
42
57
  height?: number;
43
58
  shape?: 'circle' | 'rounded' | 'square';
44
59
  cornerRadius?: number;
45
60
  contentFit?: ImageContentFit;
46
61
  }>;
47
- export type MarketRowStyle = Readonly<{
62
+ export type MarketImageStyle = NativeListImageStyle;
63
+ export type NativeListRowContainerStyle = Readonly<{
64
+ /** Explicit row height in logical units; overrides RowBase.height. */
65
+ height?: number;
66
+ backgroundColor?: string;
67
+ opacity?: number;
68
+ cornerRadius?: number;
69
+ borderWidth?: number;
70
+ borderColor?: string;
71
+ contentVerticalAlignment?: 'top' | 'center' | 'bottom';
72
+ }>;
73
+ /** Local box vocabulary. Each template exposes only parameters for its own slots. */
74
+ export type RowBoxStyle = Readonly<{
75
+ container?: NativeListRowContainerStyle;
48
76
  horizontalPadding?: number;
49
77
  verticalPadding?: number;
50
78
  leadingGap?: number;
51
- /** Space between title and subtitle; 0 by default, bounded to 0..16. */
79
+ /** Gap between the template's text rows. Omission preserves its default. */
52
80
  lineGap?: number;
53
81
  titleBadgeGap?: number;
82
+ trailingGap?: number;
83
+ image?: NativeListImageStyle;
84
+ }>;
85
+ /** Template-owned slots determine which local box parameters exist, on every platform. */
86
+ export declare const ROW_BOX_STYLE_KEYS_BY_TYPE: {
87
+ readonly identity: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "titleBadgeGap", "trailingGap", "image"];
88
+ readonly walletGroup: readonly ["horizontalPadding", "verticalPadding"];
89
+ readonly rail: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "titleBadgeGap", "trailingGap", "image"];
90
+ readonly activity: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "titleBadgeGap", "trailingGap", "image"];
91
+ readonly message: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "image"];
92
+ readonly dataRow: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "titleBadgeGap", "image"];
93
+ readonly market: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "titleBadgeGap", "trailingGap", "image"];
94
+ readonly mediaTile: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "image"];
95
+ readonly metricCard: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "image"];
96
+ readonly sectionHeader: readonly ["horizontalPadding", "verticalPadding", "lineGap", "trailingGap"];
97
+ readonly action: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "trailingGap", "image"];
98
+ readonly system: readonly ["horizontalPadding", "verticalPadding", "lineGap"];
99
+ };
100
+ type TemplateBoxStyle<T extends keyof typeof ROW_BOX_STYLE_KEYS_BY_TYPE> = Pick<RowBoxStyle, (typeof ROW_BOX_STYLE_KEYS_BY_TYPE)[T][number] | 'container'>;
101
+ /**
102
+ * A style key names the model field it modifies, never the view that carries
103
+ * it. Each template renderer owns its views and maps the key to whichever view
104
+ * renders that field (for example metricCard `value` is its large number), so
105
+ * the same key name keeps one meaning across platforms. See docs/STYLE_SPEC.md §4.
106
+ */
107
+ export type IdentityRowStyle = TemplateBoxStyle<'identity'> & Readonly<{
108
+ title?: NativeListTextStyle;
109
+ subtitle?: NativeListTextStyle;
110
+ tertiary?: NativeListTextStyle;
111
+ badge?: NativeListTextStyle;
112
+ value?: NativeListTextStyle;
113
+ valueSecondary?: NativeListTextStyle;
114
+ }>;
115
+ export type WalletGroupRowStyle = TemplateBoxStyle<'walletGroup'>;
116
+ export type RailRowStyle = TemplateBoxStyle<'rail'> & Readonly<{
117
+ title?: NativeListTextStyle;
118
+ badge?: NativeListTextStyle;
119
+ status?: NativeListTextStyle;
120
+ }>;
121
+ export type ActivityRowStyle = TemplateBoxStyle<'activity'> & Readonly<{
122
+ title?: NativeListTextStyle;
123
+ description?: NativeListTextStyle;
124
+ status?: NativeListTextStyle;
125
+ primaryAmount?: NativeListTextStyle;
126
+ secondaryAmount?: NativeListTextStyle;
127
+ }>;
128
+ export type MessageRowStyle = TemplateBoxStyle<'message'> & Readonly<{
129
+ title?: NativeListTextStyle;
130
+ body?: NativeListTextStyle;
131
+ time?: NativeListTextStyle;
132
+ }>;
133
+ export type DataRowStyle = TemplateBoxStyle<'dataRow'> & Readonly<{
134
+ columns?: NativeListTextStyle;
135
+ columnSecondary?: NativeListTextStyle;
136
+ index?: NativeListTextStyle;
137
+ }>;
138
+ export type MarketRowStyle = TemplateBoxStyle<'market'> & Readonly<{
54
139
  /** OneKey patch: keep badges next to the intrinsic title width. */
55
140
  titleBadgeLayout?: 'inline';
56
- trailingGap?: number;
57
141
  /** OneKey patch: preserve separate Market content and subtitle insets. */
58
142
  contentTrailingGap?: number;
59
143
  subtitleTrailingPadding?: number;
60
- image?: MarketImageStyle;
61
- title?: MarketTextStyle;
62
- subtitle?: MarketTextStyle;
63
- price?: MarketTextStyle;
64
- change?: MarketTextStyle;
144
+ title?: NativeListTextStyle;
145
+ subtitle?: NativeListTextStyle;
146
+ price?: NativeListTextStyle;
147
+ change?: NativeListTextStyle;
65
148
  changeWidth?: number;
66
149
  changeHeight?: number;
67
150
  changeCornerRadius?: number;
68
151
  }>;
152
+ export type MediaTileRowStyle = TemplateBoxStyle<'mediaTile'> & Readonly<{
153
+ title?: NativeListTextStyle;
154
+ subtitle?: NativeListTextStyle;
155
+ badge?: NativeListTextStyle;
156
+ }>;
157
+ export type MetricCardRowStyle = TemplateBoxStyle<'metricCard'> & Readonly<{
158
+ /** Standard-card label or composite-card heading. */
159
+ title?: NativeListTextStyle;
160
+ /** Large number in the standard template; absent in composite variants. */
161
+ value?: NativeListTextStyle;
162
+ subtitle?: NativeListTextStyle;
163
+ trend?: NativeListTextStyle;
164
+ }>;
165
+ export type SectionHeaderRowStyle = TemplateBoxStyle<'sectionHeader'> & Readonly<{
166
+ title?: NativeListTextStyle;
167
+ subtitle?: NativeListTextStyle;
168
+ value?: NativeListTextStyle;
169
+ }>;
170
+ export type ActionRowStyle = TemplateBoxStyle<'action'> & Readonly<{
171
+ title?: NativeListTextStyle;
172
+ value?: NativeListTextStyle;
173
+ }>;
174
+ export type SystemRowStyle = TemplateBoxStyle<'system'> & Readonly<{
175
+ title?: NativeListTextStyle;
176
+ message?: NativeListTextStyle;
177
+ /**
178
+ * Retry button text. Web draws a retry button only for the Market retry;
179
+ * a non-Market Web retry is message-only, so this has no target there.
180
+ */
181
+ actionText?: NativeListTextStyle;
182
+ }>;
69
183
  export type MarketBadgeModel = Readonly<{
70
184
  key: string;
71
185
  text?: string;
@@ -267,12 +381,14 @@ export type IdentityRow = RowBase & Readonly<{
267
381
  badges?: readonly BadgeModel[];
268
382
  trailing?: readonly TrailingAccessory[];
269
383
  draggable?: boolean;
384
+ style?: IdentityRowStyle;
270
385
  }>;
271
386
  export type WalletGroupRow = RowBase & Readonly<{
272
387
  type: 'walletGroup';
273
388
  parent: IdentityRow;
274
389
  children: readonly IdentityRow[];
275
390
  draggable?: boolean;
391
+ style?: WalletGroupRowStyle;
276
392
  }>;
277
393
  export type RailRow = RowBase & Readonly<{
278
394
  type: 'rail';
@@ -281,6 +397,16 @@ export type RailRow = RowBase & Readonly<{
281
397
  status?: 'none' | 'online' | 'warning' | 'error';
282
398
  badge?: BadgeModel;
283
399
  draggable?: boolean;
400
+ style?: RailRowStyle;
401
+ }>;
402
+ export type ActivityAmount = Readonly<{
403
+ key: string;
404
+ text: string;
405
+ textSegments?: readonly ValueTextSegment[];
406
+ leading?: LeadingVisual;
407
+ tone?: TextTone;
408
+ secondaryText?: string;
409
+ secondaryTextSegments?: readonly ValueTextSegment[];
284
410
  }>;
285
411
  export type ActivityRow = RowBase & Readonly<{
286
412
  type: 'activity';
@@ -291,7 +417,20 @@ export type ActivityRow = RowBase & Readonly<{
291
417
  status?: string;
292
418
  primaryAmount?: string;
293
419
  secondaryAmount?: string;
420
+ amounts?: readonly ActivityAmount[];
421
+ badges?: readonly BadgeModel[];
422
+ presentation?: 'stacked' | 'table';
423
+ fee?: Readonly<{
424
+ label?: string;
425
+ primary: string;
426
+ primaryTextSegments?: readonly ValueTextSegment[];
427
+ secondary?: string;
428
+ secondaryTextSegments?: readonly ValueTextSegment[];
429
+ hidden?: boolean;
430
+ }>;
431
+ descriptionActionKey?: string;
294
432
  footerActions?: readonly FooterAction[];
433
+ style?: ActivityRowStyle;
295
434
  }>;
296
435
  export type MessageRow = RowBase & Readonly<{
297
436
  type: 'message';
@@ -302,6 +441,7 @@ export type MessageRow = RowBase & Readonly<{
302
441
  bodyLines?: 1 | 2 | 3;
303
442
  time: string;
304
443
  thumbnail?: ImageSource;
444
+ style?: MessageRowStyle;
305
445
  }>;
306
446
  export type DataColumn = Readonly<{
307
447
  key: string;
@@ -325,6 +465,7 @@ export type DataRow = RowBase & Readonly<{
325
465
  badges?: readonly BadgeModel[];
326
466
  favorite?: boolean;
327
467
  favoriteActive?: boolean;
468
+ style?: DataRowStyle;
328
469
  }>;
329
470
  /** Native Market quote row. All values are already localized/formatted strings. */
330
471
  export type MarketRow = RowBase & Readonly<{
@@ -359,6 +500,11 @@ export type MarketRow = RowBase & Readonly<{
359
500
  export type MediaTileRow = RowBase & Readonly<{
360
501
  type: 'mediaTile';
361
502
  variant: 'gallery' | 'browserPreview';
503
+ /** Native preview; video candidates display a silent first frame, never autoplay. */
504
+ media?: Readonly<{
505
+ source: ImageSource;
506
+ probeOrder: readonly ('image' | 'video')[];
507
+ }>;
362
508
  image?: ImageSource;
363
509
  imageState?: 'empty' | 'error';
364
510
  networkImage?: ImageSource;
@@ -366,6 +512,7 @@ export type MediaTileRow = RowBase & Readonly<{
366
512
  subtitle?: string;
367
513
  badge?: BadgeModel;
368
514
  closeActionKey?: string;
515
+ style?: MediaTileRowStyle;
369
516
  }>;
370
517
  /** Compact KPI card for dashboards and grids. */
371
518
  export type MetricValue = Readonly<{
@@ -387,6 +534,7 @@ export type MetricCardRow = RowBase & Readonly<{
387
534
  badge?: BadgeModel;
388
535
  metrics?: readonly MetricValue[];
389
536
  progress?: number;
537
+ style?: MetricCardRowStyle;
390
538
  }>;
391
539
  export type SectionHeaderRow = RowBase & Readonly<{
392
540
  type: 'sectionHeader';
@@ -400,6 +548,7 @@ export type SectionHeaderRow = RowBase & Readonly<{
400
548
  indexTitle?: string;
401
549
  variant?: 'summary' | 'gallery' | 'history';
402
550
  title: string;
551
+ titleLoading?: boolean;
403
552
  subtitle?: string;
404
553
  value?: string;
405
554
  valueActionKey?: string;
@@ -412,6 +561,7 @@ export type SectionHeaderRow = RowBase & Readonly<{
412
561
  checkbox?: Extract<TrailingAccessory, {
413
562
  kind: 'checkbox';
414
563
  }>;
564
+ style?: SectionHeaderRowStyle;
415
565
  }>;
416
566
  export type ActionRow = RowBase & Readonly<{
417
567
  type: 'action';
@@ -426,8 +576,11 @@ export type ActionRow = RowBase & Readonly<{
426
576
  kind: 'checkbox';
427
577
  }>;
428
578
  trailing?: readonly TrailingAccessory[];
579
+ style?: ActionRowStyle;
429
580
  }>;
430
- export type SystemRow = RowBase & (Readonly<{
581
+ export type SystemRow = RowBase & Readonly<{
582
+ style?: SystemRowStyle;
583
+ }> & (Readonly<{
431
584
  type: 'system';
432
585
  variant: 'loading';
433
586
  presentation?: 'market';
@@ -493,13 +646,39 @@ export type SectionIndexConfig = Readonly<{
493
646
  hapticsEnabled?: boolean;
494
647
  centeredInWindow?: boolean;
495
648
  }>;
649
+ export type NativeListSeparatorStyle = Readonly<{
650
+ /**
651
+ * Leading inset in logical pixels. Omitted keeps each platform's own default,
652
+ * which is not the same everywhere — see docs/STYLE_SPEC.md §6.2.
653
+ */
654
+ inset?: number;
655
+ /**
656
+ * Overrides the `separator` theme token for this list only. Must be
657
+ * `#RRGGBB` or `#RRGGBBAA`, like every row style color.
658
+ */
659
+ color?: string;
660
+ }>;
661
+ /**
662
+ * List chrome that every platform can honour. Pull to refresh, the section index
663
+ * rail and the reorder preview are deliberately absent: the first two are system
664
+ * controls or three independent constant sets, and the third is drawn with
665
+ * platform-specific primitives. See docs/STYLE_SPEC.md §5.
666
+ */
667
+ export type NativeListListStyle = Readonly<{
668
+ separator?: NativeListSeparatorStyle;
669
+ /**
670
+ * Corner radius of a `groupId` card, `0…40` logical units. Does not affect
671
+ * rail or media tiles.
672
+ */
673
+ groupCornerRadius?: number;
674
+ }>;
496
675
  export type NativeListSnapshot = Readonly<{
497
676
  schemaVersion: 1;
498
677
  generation: number;
499
678
  layout: Readonly<{
500
679
  kind: NativeListLayout;
501
680
  orientation?: NativeListOrientation;
502
- gridColumns?: 2 | 3 | 4;
681
+ gridColumns?: 2 | 3 | 4 | 5 | 6 | 7;
503
682
  stickyHeaders?: boolean;
504
683
  contentPadding?: number;
505
684
  contentPaddingHorizontal?: number;
@@ -517,6 +696,7 @@ export type NativeListSnapshot = Readonly<{
517
696
  reorderable?: boolean;
518
697
  pullToRefresh?: boolean;
519
698
  refreshing?: boolean;
699
+ refreshTriggerDistance?: number;
520
700
  loadMore?: boolean;
521
701
  endReachedThreshold?: number;
522
702
  sectionIndex?: SectionIndexConfig;
@@ -524,8 +704,9 @@ export type NativeListSnapshot = Readonly<{
524
704
  emptyState?: ActionRow | SystemRow;
525
705
  fixedFooter?: ActionRow | SystemRow;
526
706
  theme?: NativeListTheme;
707
+ listStyle?: NativeListListStyle;
527
708
  }>;
528
- type CommonPatchFields = 'revision' | 'disabled' | 'selected' | 'separator' | 'height' | 'heightRounding' | 'opacity' | 'pressDisabled' | 'accessibilityLabel';
709
+ type CommonPatchFields = 'revision' | 'disabled' | 'selected' | 'separator' | 'height' | 'heightRounding' | 'opacity' | 'pressDisabled' | 'accessibilityLabel' | 'style';
529
710
  export type RowPatch = Readonly<{
530
711
  type: 'identity';
531
712
  key: string;
@@ -537,7 +718,7 @@ export type RowPatch = Readonly<{
537
718
  }> | Readonly<{
538
719
  type: 'activity';
539
720
  key: string;
540
- changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'secondaryLeading' | 'footerActions'>>;
721
+ changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'secondaryLeading' | 'footerActions'>>;
541
722
  }> | Readonly<{
542
723
  type: 'message';
543
724
  key: string;
@@ -553,7 +734,7 @@ export type RowPatch = Readonly<{
553
734
  }> | Readonly<{
554
735
  type: 'mediaTile';
555
736
  key: string;
556
- changes: Partial<Pick<MediaTileRow, CommonPatchFields | 'image' | 'imageState' | 'networkImage' | 'title' | 'subtitle' | 'badge' | 'closeActionKey'>>;
737
+ changes: Partial<Pick<MediaTileRow, CommonPatchFields | 'image' | 'imageState' | 'media' | 'networkImage' | 'title' | 'subtitle' | 'badge' | 'closeActionKey'>>;
557
738
  }> | Readonly<{
558
739
  type: 'metricCard';
559
740
  key: string;
@@ -561,7 +742,7 @@ export type RowPatch = Readonly<{
561
742
  }> | Readonly<{
562
743
  type: 'sectionHeader';
563
744
  key: string;
564
- changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'title' | 'subtitle' | 'value' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>>;
745
+ changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>>;
565
746
  }> | Readonly<{
566
747
  type: 'action';
567
748
  key: string;
@@ -575,7 +756,7 @@ export type RowPatch = Readonly<{
575
756
  message?: string;
576
757
  }>;
577
758
  }>;
578
- export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'mediaClose';
759
+ export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'description' | 'mediaClose';
579
760
  export type NativeListWindowRect = Readonly<{
580
761
  x: number;
581
762
  y: number;
@@ -1,4 +1,5 @@
1
- import type { ActionAnchorInvalidatedEvent, MarketRow, NativeListSnapshot, NativeListActionAnchor, NativeListActionSource, ReorderEvent, RowActionEvent, RowModel, RowPatch, SelectionDeltaEvent, VisibleRangeChangedEvent } from '../models';
1
+ export { resolveWebMarketLayoutStyle, type WebMarketLayoutStyle, } from './templates/MarketRowRenderer';
2
+ import type { ActionAnchorInvalidatedEvent, NativeListSnapshot, NativeListActionAnchor, NativeListActionSource, ReorderEvent, RowActionEvent, RowModel, RowPatch, SelectionDeltaEvent, VisibleRangeChangedEvent } from '../models';
2
3
  import type { ActionAnchorState, ScrollToIndexFailedInfo, ScrollToLocationParams } from '../NativeList.types';
3
4
  import { type NormalizedPositionScroll } from '../scrolling';
4
5
  export declare const WEB_REORDER_ANIMATION: {
@@ -32,21 +33,7 @@ export declare function webSectionIndexContainerLayout(entryCount: number, conta
32
33
  };
33
34
  export declare function webSectionIndexInverseScale(layoutHeight: number, renderedHeight: number): number;
34
35
  export declare function webSectionIndexActiveKey(rows: readonly RowModel[], layout: WebListLayout, offset: number, viewportLength: number): string | undefined;
35
- export type WebMarketLayoutStyle = Readonly<{
36
- horizontalPadding: number;
37
- verticalPadding: number;
38
- leadingGap: number;
39
- titleBadgeGap: number;
40
- trailingGap: number;
41
- imageWidth: number;
42
- imageHeight: number;
43
- imageCornerRadius: number;
44
- changeWidth: number;
45
- changeHeight: number;
46
- changeCornerRadius: number;
47
- }>;
48
36
  /** Resolves every reusable Market geometry field, including legacy defaults. */
49
- export declare function resolveWebMarketLayoutStyle(row: MarketRow): WebMarketLayoutStyle;
50
37
  export type NativeListWebCallbacks = Readonly<{
51
38
  onRowAction?: (event: RowActionEvent) => void;
52
39
  onActionAnchorInvalidated?: (event: ActionAnchorInvalidatedEvent) => void;
@@ -66,6 +53,12 @@ export declare function webActionAnchorPayload(token: string, rect: Readonly<{
66
53
  width: number;
67
54
  height: number;
68
55
  }>, source: NativeListActionSource, generation: number, layoutDirection: 'ltr' | 'rtl', slot?: number): NativeListActionAnchor;
56
+ type RenderContext = Readonly<{
57
+ document: Document;
58
+ snapshot: NativeListSnapshot;
59
+ selectedKeys: ReadonlySet<string>;
60
+ itemIndex: number;
61
+ }>;
69
62
  export declare function isWebRowReorderable(snapshot: NativeListSnapshot, row: RowModel): boolean;
70
63
  export declare function moveWebReorderRow(rows: readonly RowModel[], fromIndex: number, toIndex: number): readonly RowModel[];
71
64
  export declare function cancelWebReorderRows(originalRows: readonly RowModel[]): readonly RowModel[];
@@ -89,6 +82,7 @@ export declare function isWebMarketQuotePatch(patch: RowPatch): boolean;
89
82
  /** Number of Market image-binding passes caused by one Web patch transaction. */
90
83
  export declare function webMarketImageBindDeltaForPatches(patches: readonly RowPatch[]): 0 | 1;
91
84
  export declare const WEB_LIST_CSS: string;
85
+ export declare function createRowBody(context: RenderContext, row: RowModel): HTMLElement;
92
86
  export declare class NativeListWebEngine {
93
87
  private readonly document;
94
88
  private readonly root;
@@ -109,6 +103,7 @@ export declare class NativeListWebEngine {
109
103
  private layout;
110
104
  private readonly mounted;
111
105
  private readonly pool;
106
+ private readonly rendererKeys;
112
107
  private frameHandle;
113
108
  private resizeObserver;
114
109
  private sectionIndexTransformObserver;
@@ -146,7 +141,7 @@ export declare class NativeListWebEngine {
146
141
  private lastViewportHeight;
147
142
  private destroyed;
148
143
  private sectionIndexAlignStart;
149
- private measuredWarningHeights;
144
+ private measuredRendererHeights;
150
145
  constructor(host: HTMLElement, snapshot: NativeListSnapshot, callbacks: NativeListWebCallbacks, virtualizationEnabled?: boolean, sectionIndexContainer?: HTMLElement | null);
151
146
  updateCallbacks(callbacks: NativeListWebCallbacks): void;
152
147
  setVirtualizationEnabled(enabled: boolean): void;
@@ -163,6 +158,12 @@ export declare class NativeListWebEngine {
163
158
  destroy(): void;
164
159
  private setSnapshot;
165
160
  private applyTheme;
161
+ /**
162
+ * List chrome from `snapshot.listStyle`. Every value is absent by default and
163
+ * the stylesheet carries today's number as the fallback, so an untouched list
164
+ * renders exactly as before. See docs/STYLE_SPEC.md §5.
165
+ */
166
+ private applyListStyle;
166
167
  private recomputeLayout;
167
168
  private updateAvatarWindow;
168
169
  private renderWindow;
@@ -266,4 +267,5 @@ export declare class NativeListWebEngine {
266
267
  private remapMountedRows;
267
268
  private updateReorderVisualState;
268
269
  }
270
+ export declare function applyRowStyle(body: HTMLElement, row: RowModel): void;
269
271
  //# sourceMappingURL=NativeListWebEngine.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { ActionRow } from '../../models';
2
+ import { type RowPrimitives } from './RowVisual';
3
+ declare function bind(body: HTMLElement, row: ActionRow, primitives: RowPrimitives): void;
4
+ declare function create(document: Document, row: ActionRow, primitives: RowPrimitives): HTMLDivElement;
5
+ declare function recycle(body: HTMLElement): void;
6
+ export declare const actionRowRenderer: {
7
+ key: "action";
8
+ create: typeof create;
9
+ bind: typeof bind;
10
+ recycle: typeof recycle;
11
+ measure: (row: ActionRow, _width: number) => 48 | 60 | 44;
12
+ measureRendered: (_body: HTMLElement, _row: ActionRow) => number | undefined;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=ActionRowRenderer.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { ActivityRow } from '../../models';
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
+ declare function recycle(body: HTMLElement): void;
6
+ export declare const activityRowRenderer: {
7
+ key: "activity";
8
+ create: typeof create;
9
+ bind: typeof bind;
10
+ recycle: typeof recycle;
11
+ measure: (row: ActivityRow, _width: number) => 60 | 100;
12
+ measureRendered: (_body: HTMLElement, _row: ActivityRow) => number | undefined;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=ActivityRowRenderer.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { DataRow } from '../../models';
2
+ import { type RowPrimitives } from './RowVisual';
3
+ declare function bind(body: HTMLElement, row: DataRow, primitives: RowPrimitives): void;
4
+ declare function create(document: Document, row: DataRow, primitives: RowPrimitives): HTMLElement;
5
+ declare function recycle(body: HTMLElement): void;
6
+ export declare const dataRowRenderer: {
7
+ key: "dataRow";
8
+ create: typeof create;
9
+ bind: typeof bind;
10
+ recycle: typeof recycle;
11
+ measure: (row: DataRow, _width: number, layout?: string) => number;
12
+ measureRendered: (_body: HTMLElement, _row: DataRow) => number | undefined;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=DataRowRenderer.d.ts.map
@@ -0,0 +1,16 @@
1
+ import type { IdentityRow } from '../../models';
2
+ import { type RowPrimitives } from './RowVisual';
3
+ declare function bind(body: HTMLElement, row: IdentityRow, primitives: RowPrimitives): void;
4
+ declare function create(document: Document, row: IdentityRow, primitives: RowPrimitives): HTMLDivElement;
5
+ declare function recycle(body: HTMLElement): void;
6
+ export declare const identityRowRenderer: {
7
+ key: "identity";
8
+ create: typeof create;
9
+ bind: typeof bind;
10
+ recycle: typeof recycle;
11
+ appliesSizePreset: (row: IdentityRow) => boolean;
12
+ measure: (row: IdentityRow, _width: number) => number;
13
+ measureRendered: (_body: HTMLElement, _row: IdentityRow) => number | undefined;
14
+ };
15
+ export {};
16
+ //# sourceMappingURL=IdentityRowRenderer.d.ts.map
@@ -0,0 +1,30 @@
1
+ import type { MarketRow } from '../../models';
2
+ import { type RowPrimitives } from './RowVisual';
3
+ export type WebMarketLayoutStyle = Readonly<{
4
+ horizontalPadding: number;
5
+ verticalPadding: number;
6
+ leadingGap: number;
7
+ titleBadgeGap: number;
8
+ trailingGap: number;
9
+ imageWidth: number;
10
+ imageHeight: number;
11
+ imageCornerRadius: number;
12
+ changeWidth: number;
13
+ changeHeight: number;
14
+ changeCornerRadius: number;
15
+ }>;
16
+ export declare function resolveWebMarketLayoutStyle(row: MarketRow): WebMarketLayoutStyle;
17
+ export declare function setMarketQuoteContent(element: HTMLElement, row: MarketRow): void;
18
+ declare function bind(body: HTMLElement, row: MarketRow, primitives: RowPrimitives): void;
19
+ declare function create(document: Document, row: MarketRow, primitives: RowPrimitives): HTMLDivElement;
20
+ declare function recycle(body: HTMLElement): void;
21
+ export declare const marketRowRenderer: {
22
+ key: "market";
23
+ create: typeof create;
24
+ bind: typeof bind;
25
+ recycle: typeof recycle;
26
+ measure: (row: MarketRow, _width: number) => number;
27
+ measureRendered: (_body: HTMLElement, _row: MarketRow) => number | undefined;
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=MarketRowRenderer.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { MediaTileRow } from '../../models';
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
+ declare function recycle(body: HTMLElement): void;
6
+ export declare const mediaTileRowRenderer: {
7
+ key: "mediaTile";
8
+ create: typeof create;
9
+ bind: typeof bind;
10
+ recycle: typeof recycle;
11
+ measure: (_row: MediaTileRow, _width: number) => number;
12
+ measureRendered: (_body: HTMLElement, _row: MediaTileRow) => number | undefined;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=MediaTileRowRenderer.d.ts.map
@@ -0,0 +1,44 @@
1
+ import type { RowPrimitives } from './RowVisual';
2
+ import type { MessageRow, NativeListTextStyle } from '../../models';
3
+ export declare function resolveMessageRow(row: MessageRow): {
4
+ title: Readonly<{
5
+ value: string;
6
+ style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight" | "lines">> & NativeListTextStyle;
7
+ }>;
8
+ body: Readonly<{
9
+ value: string;
10
+ style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight" | "lines">> & NativeListTextStyle;
11
+ }>;
12
+ time: Readonly<{
13
+ value: string;
14
+ style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight" | "lines">> & NativeListTextStyle;
15
+ }>;
16
+ horizontalPadding: number;
17
+ verticalPadding: number;
18
+ lineGap: number;
19
+ leadingGap: number;
20
+ imageWidth: number;
21
+ imageHeight: number;
22
+ image: Readonly<{
23
+ width?: number;
24
+ height?: number;
25
+ shape?: "circle" | "rounded" | "square";
26
+ cornerRadius?: number;
27
+ contentFit?: import("../..").ImageContentFit;
28
+ }> | undefined;
29
+ automaticHeight: boolean;
30
+ };
31
+ export declare function classifyMessageUpdate(old: MessageRow | undefined, row: MessageRow): "replace" | "unchanged" | "assets" | "content";
32
+ export declare function bindMessageRow(body: HTMLElement, row: MessageRow, primitives: RowPrimitives): void;
33
+ export declare function createMessageRow(document: Document, row: MessageRow, primitives: RowPrimitives): HTMLElement;
34
+ export declare function recycleMessageRow(body: HTMLElement): void;
35
+ export declare function measureMessageRow(row: MessageRow, availableWidth: number): number;
36
+ export declare const messageRowRenderer: {
37
+ key: "message";
38
+ create: typeof createMessageRow;
39
+ bind: typeof bindMessageRow;
40
+ recycle: typeof recycleMessageRow;
41
+ measure: typeof measureMessageRow;
42
+ measureRendered: (body: HTMLElement, row: MessageRow) => number | undefined;
43
+ };
44
+ //# sourceMappingURL=MessageRowRenderer.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { MetricCardRow } from '../../models';
2
+ import { type RowPrimitives } from './RowVisual';
3
+ declare function bind(body: HTMLElement, row: MetricCardRow, primitives: RowPrimitives): void;
4
+ declare function create(document: Document, row: MetricCardRow, primitives: RowPrimitives): HTMLDivElement;
5
+ declare function recycle(body: HTMLElement): void;
6
+ export declare const metricCardRowRenderer: {
7
+ key: "metricCard";
8
+ create: typeof create;
9
+ bind: typeof bind;
10
+ recycle: typeof recycle;
11
+ measure: (row: MetricCardRow, _width: number) => 161 | 178 | 132;
12
+ measureRendered: (_body: HTMLElement, _row: MetricCardRow) => number | undefined;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=MetricCardRowRenderer.d.ts.map