@onekeyfe/react-native-native-list 6.7.0-2 → 6.7.0-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +245 -9
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +7 -4
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +29 -3
- package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +87 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +193 -10
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +147 -33
- package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +145 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +51 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +2 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1920 -109
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +29 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
- package/docs/ROW_TEMPLATES.md +60 -9
- package/docs/SPEC.md +1004 -17
- package/docs/STYLE_SPEC.md +6 -0
- package/ios/HybridNativeList.swift +21 -2
- package/ios/NativeListAccessoryStack.swift +235 -39
- package/ios/NativeListActivityDetailsView.swift +18 -8
- package/ios/NativeListActivityRenderer.swift +8 -2
- package/ios/NativeListButtonGroupRenderer.swift +89 -0
- package/ios/NativeListDataRowRenderer.swift +155 -27
- package/ios/NativeListDesignAssets.swift +9 -0
- package/ios/NativeListIdentityRenderer.swift +191 -30
- package/ios/NativeListLeadingVisual.swift +119 -22
- package/ios/NativeListMessageRenderer.swift +34 -1
- package/ios/NativeListModels.swift +42 -2
- package/ios/NativeListRendererRegistry.swift +1 -0
- package/ios/NativeListResolvedText.swift +2 -1
- package/ios/NativeListRowHost.swift +14 -0
- package/ios/NativeListSectionHeaderRenderer.swift +88 -0
- package/ios/RNCNativeListView.swift +1031 -55
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +15 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +4 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +15 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +3 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +15 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +3 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/icon.svg +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/Contents.json +1 -0
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/icon.svg +1 -0
- package/ios/tests/NativeListAccessoryStackTests.swift +89 -0
- package/ios/tests/NativeListActivityPresentationTests.swift +56 -0
- package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
- package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
- package/ios/tests/NativeListLifecycleTests.swift +2720 -3
- package/lib/module/NativeList.js +200 -32
- package/lib/module/NativeList.web.js +262 -32
- package/lib/module/index.js +1 -1
- package/lib/module/models.js +1 -0
- package/lib/module/selection.js +1 -1
- package/lib/module/validation.js +776 -52
- package/lib/module/web/NativeListWebEngine.js +919 -79
- package/lib/module/web/templates/ActivityRowRenderer.js +487 -7
- package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
- package/lib/module/web/templates/DataRowRenderer.js +40 -5
- package/lib/module/web/templates/IdentityRowRenderer.js +90 -4
- package/lib/module/web/templates/MarketRowRenderer.js +8 -3
- package/lib/module/web/templates/MarketTableRowRenderer.js +577 -0
- package/lib/module/web/templates/MediaTileRowRenderer.js +260 -5
- package/lib/module/web/templates/MessageRowRenderer.js +18 -2
- package/lib/module/web/templates/RowContainerStyle.js +1 -0
- package/lib/module/web/templates/RowRendererRegistry.js +8 -3
- package/lib/module/web/templates/SectionHeaderRowRenderer.js +70 -3
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
- package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
- package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
- package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
- package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
- package/lib/typescript/src/NativeList.d.ts +3 -3
- package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
- package/lib/typescript/src/NativeList.types.d.ts +29 -1
- package/lib/typescript/src/NativeList.web.d.ts +2 -2
- package/lib/typescript/src/index.d.ts +2 -2
- package/lib/typescript/src/models.d.ts +176 -10
- package/lib/typescript/src/validation.d.ts +15 -0
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +58 -1
- package/lib/typescript/src/web/templates/ActivityRowRenderer.d.ts +3 -3
- package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
- package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
- package/lib/typescript/src/web/templates/MarketTableRowRenderer.d.ts +17 -0
- package/lib/typescript/src/web/templates/MediaTileRowRenderer.d.ts +3 -3
- package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +10 -4
- package/lib/typescript/src/web/templates/RowRendererRegistry.d.ts +3 -1
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
- package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
- package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
- package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
- package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
- package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
- package/package.json +3 -3
- package/react-native-native-list.podspec +1 -0
- package/src/NativeList.nitro.ts +2 -0
- package/src/NativeList.tsx +391 -82
- package/src/NativeList.types.ts +34 -1
- package/src/NativeList.web.tsx +420 -65
- package/src/index.ts +2 -0
- package/src/models.ts +210 -3
- package/src/selection.ts +1 -0
- package/src/validation.ts +1635 -76
- package/src/web/NativeListWebEngine.ts +1476 -112
- package/src/web/templates/ActivityRowRenderer.ts +732 -8
- package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
- package/src/web/templates/DataRowRenderer.ts +93 -20
- package/src/web/templates/IdentityRowRenderer.ts +150 -5
- package/src/web/templates/MarketRowRenderer.ts +19 -3
- package/src/web/templates/MarketTableRowRenderer.ts +755 -0
- package/src/web/templates/MediaTileRowRenderer.ts +313 -5
- package/src/web/templates/MessageRowRenderer.ts +23 -7
- package/src/web/templates/RowContainerStyle.ts +2 -0
- package/src/web/templates/RowRendererRegistry.ts +21 -6
- 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,27 @@ 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'];
|
|
376
431
|
subtitle?: string;
|
|
377
432
|
tertiary?: string;
|
|
378
433
|
tertiaryTone?: 'secondary' | 'info';
|
|
379
434
|
titleLines?: 1 | 2;
|
|
380
|
-
|
|
435
|
+
/** Zero displays the complete subtitle. */
|
|
436
|
+
subtitleLines?: 0 | 1 | 2;
|
|
381
437
|
badges?: readonly BadgeModel[];
|
|
382
438
|
trailing?: readonly TrailingAccessory[];
|
|
383
439
|
draggable?: boolean;
|
|
@@ -411,6 +467,7 @@ export type ActivityAmount = Readonly<{
|
|
|
411
467
|
export type ActivityRow = RowBase & Readonly<{
|
|
412
468
|
type: 'activity';
|
|
413
469
|
leading: LeadingVisual;
|
|
470
|
+
hideLeading?: boolean;
|
|
414
471
|
secondaryLeading?: LeadingVisual;
|
|
415
472
|
title: string;
|
|
416
473
|
description?: string;
|
|
@@ -434,11 +491,14 @@ export type ActivityRow = RowBase & Readonly<{
|
|
|
434
491
|
}>;
|
|
435
492
|
export type MessageRow = RowBase & Readonly<{
|
|
436
493
|
type: 'message';
|
|
494
|
+
/** Draws only top and bottom container borders when a border is supplied. */
|
|
495
|
+
presentation?: 'inlineWarning';
|
|
437
496
|
unread?: boolean;
|
|
438
497
|
leading?: LeadingVisual;
|
|
439
498
|
title: string;
|
|
440
499
|
body: string;
|
|
441
|
-
|
|
500
|
+
/** Zero displays the complete body. */
|
|
501
|
+
bodyLines?: 0 | 1 | 2 | 3;
|
|
442
502
|
time: string;
|
|
443
503
|
thumbnail?: ImageSource;
|
|
444
504
|
style?: MessageRowStyle;
|
|
@@ -446,8 +506,12 @@ export type MessageRow = RowBase & Readonly<{
|
|
|
446
506
|
export type DataColumn = Readonly<{
|
|
447
507
|
key: string;
|
|
448
508
|
text: string;
|
|
509
|
+
textSegments?: readonly ValueTextSegment[];
|
|
510
|
+
titleIcon?: IdentityRow['titleIcon'];
|
|
511
|
+
secondaryTitleIcon?: IdentityRow['titleIcon'];
|
|
449
512
|
secondaryLeadingText?: string;
|
|
450
513
|
secondaryText?: string;
|
|
514
|
+
secondaryTextSegments?: readonly ValueTextSegment[];
|
|
451
515
|
weight?: 1 | 2 | 3;
|
|
452
516
|
alignment?: 'start' | 'center' | 'end';
|
|
453
517
|
tone?: 'primary' | 'secondary' | 'positive' | 'negative';
|
|
@@ -457,6 +521,7 @@ export type DataRow = RowBase & Readonly<{
|
|
|
457
521
|
type: 'dataRow';
|
|
458
522
|
leading?: LeadingVisual;
|
|
459
523
|
columns: readonly DataColumn[];
|
|
524
|
+
trailing?: readonly TrailingAccessory[];
|
|
460
525
|
checkbox?: Extract<TrailingAccessory, {
|
|
461
526
|
kind: 'checkbox';
|
|
462
527
|
}>;
|
|
@@ -467,10 +532,69 @@ export type DataRow = RowBase & Readonly<{
|
|
|
467
532
|
favoriteActive?: boolean;
|
|
468
533
|
style?: DataRowStyle;
|
|
469
534
|
}>;
|
|
535
|
+
export type WebMarketTableColumn = Readonly<{
|
|
536
|
+
key: string;
|
|
537
|
+
width?: number;
|
|
538
|
+
minWidth?: number;
|
|
539
|
+
flex?: number;
|
|
540
|
+
alignment?: 'start' | 'center' | 'end';
|
|
541
|
+
paddingStart?: number;
|
|
542
|
+
paddingEnd?: number;
|
|
543
|
+
}>;
|
|
544
|
+
export type WebMarketTableText = Readonly<{
|
|
545
|
+
text: string;
|
|
546
|
+
segments?: readonly ValueTextSegment[];
|
|
547
|
+
tone?: TextTone;
|
|
548
|
+
style?: Pick<NativeListTextStyle, 'fontSize' | 'fontWeight' | 'lineHeight' | 'color'>;
|
|
549
|
+
}>;
|
|
550
|
+
export type WebMarketTableCell = Readonly<{
|
|
551
|
+
key: string;
|
|
552
|
+
}> & (Readonly<{
|
|
553
|
+
kind: 'favorite';
|
|
554
|
+
active: boolean;
|
|
555
|
+
disabled?: boolean;
|
|
556
|
+
testID?: string;
|
|
557
|
+
hoverActionKey?: string;
|
|
558
|
+
actionKey: string;
|
|
559
|
+
accessibilityLabel: string;
|
|
560
|
+
}> | Readonly<{
|
|
561
|
+
kind: 'asset';
|
|
562
|
+
leading: LeadingVisual;
|
|
563
|
+
title: WebMarketTableText;
|
|
564
|
+
secondary?: readonly WebMarketTableText[];
|
|
565
|
+
lineGap?: number;
|
|
566
|
+
secondaryBadges?: readonly Pick<MarketBadgeModel, 'key' | 'text' | 'style'>[];
|
|
567
|
+
hoverImages?: readonly (ImageSource | null)[];
|
|
568
|
+
hoverSecondary?: readonly WebMarketTableText[];
|
|
569
|
+
hoverActionKey?: string;
|
|
570
|
+
hoverActionLabel?: string;
|
|
571
|
+
badges?: readonly Pick<MarketBadgeModel, 'key' | 'text' | 'iconName' | 'icon' | 'textColor' | 'backgroundColor' | 'actionKey' | 'accessibilityLabel' | 'style'>[];
|
|
572
|
+
}> | Readonly<{
|
|
573
|
+
kind: 'text';
|
|
574
|
+
primary: readonly WebMarketTableText[];
|
|
575
|
+
partGap?: number;
|
|
576
|
+
secondary?: readonly WebMarketTableText[];
|
|
577
|
+
}> | Readonly<{
|
|
578
|
+
kind: 'sparkline';
|
|
579
|
+
points: readonly number[];
|
|
580
|
+
width: number;
|
|
581
|
+
height: number;
|
|
582
|
+
strokeColor: string;
|
|
583
|
+
fillColor: string;
|
|
584
|
+
}>);
|
|
585
|
+
export type WebMarketTablePresentation = Readonly<{
|
|
586
|
+
draggable?: boolean;
|
|
587
|
+
contextMenuActionKey?: string;
|
|
588
|
+
testID?: string;
|
|
589
|
+
columns: readonly WebMarketTableColumn[];
|
|
590
|
+
cells: readonly WebMarketTableCell[];
|
|
591
|
+
}>;
|
|
470
592
|
/** Native Market quote row. All values are already localized/formatted strings. */
|
|
471
593
|
export type MarketRow = RowBase & Readonly<{
|
|
472
594
|
type: 'market';
|
|
473
595
|
variant: 'token' | 'stock' | 'perp';
|
|
596
|
+
/** Web-only bounded table presentation; native reads the ordinary Market fields. */
|
|
597
|
+
webTable?: WebMarketTablePresentation;
|
|
474
598
|
leadingAction?: Extract<TrailingAccessory, {
|
|
475
599
|
kind: 'icon';
|
|
476
600
|
}>;
|
|
@@ -480,6 +604,8 @@ export type MarketRow = RowBase & Readonly<{
|
|
|
480
604
|
/** OneKey patch: localized name shrinks independently of the volume. */
|
|
481
605
|
subtitlePrefix?: Readonly<{
|
|
482
606
|
text: string;
|
|
607
|
+
/** Web-only anchored help for a truncated name. */
|
|
608
|
+
hoverActionKey?: string;
|
|
483
609
|
gap?: number;
|
|
484
610
|
maxWidth?: number;
|
|
485
611
|
style?: MarketTextStyle;
|
|
@@ -548,9 +674,11 @@ export type SectionHeaderRow = RowBase & Readonly<{
|
|
|
548
674
|
indexTitle?: string;
|
|
549
675
|
variant?: 'summary' | 'gallery' | 'history';
|
|
550
676
|
title: string;
|
|
677
|
+
leadingBadge?: BadgeModel;
|
|
551
678
|
titleLoading?: boolean;
|
|
552
679
|
subtitle?: string;
|
|
553
680
|
value?: string;
|
|
681
|
+
valueHelp?: RowTextHelp;
|
|
554
682
|
valueActionKey?: string;
|
|
555
683
|
titleIcon?: Extract<TrailingAccessory, {
|
|
556
684
|
kind: 'icon';
|
|
@@ -578,6 +706,19 @@ export type ActionRow = RowBase & Readonly<{
|
|
|
578
706
|
trailing?: readonly TrailingAccessory[];
|
|
579
707
|
style?: ActionRowStyle;
|
|
580
708
|
}>;
|
|
709
|
+
export type ButtonGroupRow = RowBase & Readonly<{
|
|
710
|
+
type: 'buttonGroup';
|
|
711
|
+
buttons: readonly Readonly<{
|
|
712
|
+
key: string;
|
|
713
|
+
label: string;
|
|
714
|
+
actionKey: string;
|
|
715
|
+
disabled?: boolean;
|
|
716
|
+
loading?: boolean;
|
|
717
|
+
testID?: string;
|
|
718
|
+
accessibilityLabel?: string;
|
|
719
|
+
}>[];
|
|
720
|
+
style?: TemplateBoxStyle<'buttonGroup'>;
|
|
721
|
+
}>;
|
|
581
722
|
export type SystemRow = RowBase & Readonly<{
|
|
582
723
|
style?: SystemRowStyle;
|
|
583
724
|
}> & (Readonly<{
|
|
@@ -614,7 +755,7 @@ export type SystemRow = RowBase & Readonly<{
|
|
|
614
755
|
variant: 'spacer';
|
|
615
756
|
height: number;
|
|
616
757
|
}>);
|
|
617
|
-
export type RowModel = IdentityRow | WalletGroupRow | RailRow | ActivityRow | MessageRow | DataRow | MarketRow | MediaTileRow | MetricCardRow | SectionHeaderRow | ActionRow | SystemRow;
|
|
758
|
+
export type RowModel = IdentityRow | WalletGroupRow | RailRow | ActivityRow | MessageRow | DataRow | MarketRow | MediaTileRow | MetricCardRow | SectionHeaderRow | ActionRow | ButtonGroupRow | SystemRow;
|
|
618
759
|
export type NativeListTheme = Readonly<{
|
|
619
760
|
checkboxBackground?: string;
|
|
620
761
|
checkboxBorder?: string;
|
|
@@ -624,8 +765,12 @@ export type NativeListTheme = Readonly<{
|
|
|
624
765
|
rowBackground: string;
|
|
625
766
|
rowSelectedBackground: string;
|
|
626
767
|
rowPressedBackground?: string;
|
|
768
|
+
/** Web-only enabled-row hover color; defaults to rowPressedBackground. */
|
|
769
|
+
rowHoverBackground?: string;
|
|
627
770
|
subduedBackground?: string;
|
|
628
771
|
strongBackground?: string;
|
|
772
|
+
/** Web-only background for a displayed declared image fallback. */
|
|
773
|
+
imageFallbackBackground?: string;
|
|
629
774
|
primaryText: string;
|
|
630
775
|
secondaryText: string;
|
|
631
776
|
disabledText?: string;
|
|
@@ -634,6 +779,8 @@ export type NativeListTheme = Readonly<{
|
|
|
634
779
|
separator: string;
|
|
635
780
|
accent: string;
|
|
636
781
|
positive: string;
|
|
782
|
+
/** Optional exact background for the success tone of section leading badges. */
|
|
783
|
+
successBackground?: string;
|
|
637
784
|
negative: string;
|
|
638
785
|
criticalBackground?: string;
|
|
639
786
|
inverseBackground?: string;
|
|
@@ -675,6 +822,16 @@ export type NativeListListStyle = Readonly<{
|
|
|
675
822
|
export type NativeListSnapshot = Readonly<{
|
|
676
823
|
schemaVersion: 1;
|
|
677
824
|
generation: number;
|
|
825
|
+
/** One-shot animation for a user-initiated row-key insertion or removal. */
|
|
826
|
+
structuralTransition?: Readonly<{
|
|
827
|
+
id: string;
|
|
828
|
+
durationMs?: number;
|
|
829
|
+
anchorKey?: string;
|
|
830
|
+
}>;
|
|
831
|
+
disclosure?: Readonly<{
|
|
832
|
+
expanded: boolean;
|
|
833
|
+
expandedTrailingInset?: number;
|
|
834
|
+
}>;
|
|
678
835
|
layout: Readonly<{
|
|
679
836
|
kind: NativeListLayout;
|
|
680
837
|
orientation?: NativeListOrientation;
|
|
@@ -710,7 +867,7 @@ type CommonPatchFields = 'revision' | 'disabled' | 'selected' | 'separator' | 'h
|
|
|
710
867
|
export type RowPatch = Readonly<{
|
|
711
868
|
type: 'identity';
|
|
712
869
|
key: string;
|
|
713
|
-
changes: Partial<Pick<IdentityRow, CommonPatchFields | 'title' | 'subtitle' | 'tertiary' | 'tertiaryTone' | 'badges' | 'trailing' | 'leading' | 'leadingAction' | 'titleMatch' | 'titleActionKey' | 'titleActionOnHover' | 'subtitleSegments'>>;
|
|
870
|
+
changes: Partial<Pick<IdentityRow, CommonPatchFields | 'title' | 'titleSuffixes' | 'titleIcon' | 'secondaryTitleIcon' | 'subtitle' | 'subtitleLines' | 'contentHeight' | 'longPressActionKey' | 'tertiary' | 'tertiaryTone' | 'badges' | 'trailing' | 'leading' | 'leadingAction' | 'titleMatch' | 'titleActionKey' | 'titleActionOnHover' | 'subtitleSegments'>>;
|
|
714
871
|
}> | Readonly<{
|
|
715
872
|
type: 'rail';
|
|
716
873
|
key: string;
|
|
@@ -718,19 +875,19 @@ export type RowPatch = Readonly<{
|
|
|
718
875
|
}> | Readonly<{
|
|
719
876
|
type: 'activity';
|
|
720
877
|
key: string;
|
|
721
|
-
changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'secondaryLeading' | 'footerActions'>>;
|
|
878
|
+
changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'hideLeading' | 'secondaryLeading' | 'footerActions'>>;
|
|
722
879
|
}> | Readonly<{
|
|
723
880
|
type: 'message';
|
|
724
881
|
key: string;
|
|
725
|
-
changes: Partial<Pick<MessageRow, CommonPatchFields | 'unread' | 'title' | 'body' | 'bodyLines' | 'time' | 'thumbnail'>>;
|
|
882
|
+
changes: Partial<Pick<MessageRow, CommonPatchFields | 'unread' | 'title' | 'body' | 'bodyLines' | 'presentation' | 'time' | 'thumbnail'>>;
|
|
726
883
|
}> | Readonly<{
|
|
727
884
|
type: 'dataRow';
|
|
728
885
|
key: string;
|
|
729
|
-
changes: Partial<Pick<DataRow, CommonPatchFields | 'leading' | 'columns' | 'checkbox' | 'index' | 'badge' | 'badges' | 'favorite' | 'favoriteActive'>>;
|
|
886
|
+
changes: Partial<Pick<DataRow, CommonPatchFields | 'leading' | 'columns' | 'trailing' | 'checkbox' | 'index' | 'badge' | 'badges' | 'favorite' | 'favoriteActive'>>;
|
|
730
887
|
}> | Readonly<{
|
|
731
888
|
type: 'market';
|
|
732
889
|
key: string;
|
|
733
|
-
changes: Partial<Pick<MarketRow, CommonPatchFields | 'leadingAction' | 'leading' | 'title' | 'subtitle' | 'subtitleSegments' | 'price' | 'priceSegments' | 'change' | 'badges' | 'pressActionKey' | 'pressInActionKey' | 'longPressActionKey' | 'diagnostics' | 'style'>>;
|
|
890
|
+
changes: Partial<Pick<MarketRow, CommonPatchFields | 'leadingAction' | 'leading' | 'title' | 'subtitle' | 'subtitleSegments' | 'price' | 'priceSegments' | 'change' | 'badges' | 'pressActionKey' | 'pressInActionKey' | 'longPressActionKey' | 'diagnostics' | 'webTable' | 'style'>>;
|
|
734
891
|
}> | Readonly<{
|
|
735
892
|
type: 'mediaTile';
|
|
736
893
|
key: string;
|
|
@@ -742,11 +899,15 @@ export type RowPatch = Readonly<{
|
|
|
742
899
|
}> | Readonly<{
|
|
743
900
|
type: 'sectionHeader';
|
|
744
901
|
key: string;
|
|
745
|
-
changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>>;
|
|
902
|
+
changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | 'valueHelp' | 'leadingBadge' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>>;
|
|
746
903
|
}> | Readonly<{
|
|
747
904
|
type: 'action';
|
|
748
905
|
key: string;
|
|
749
906
|
changes: Partial<Pick<ActionRow, CommonPatchFields | 'title' | 'tone' | 'icon' | 'checkbox' | 'trailing'>>;
|
|
907
|
+
}> | Readonly<{
|
|
908
|
+
type: 'buttonGroup';
|
|
909
|
+
key: string;
|
|
910
|
+
changes: Partial<Pick<ButtonGroupRow, CommonPatchFields | 'buttons'>>;
|
|
750
911
|
}> | Readonly<{
|
|
751
912
|
type: 'system';
|
|
752
913
|
key: string;
|
|
@@ -756,7 +917,7 @@ export type RowPatch = Readonly<{
|
|
|
756
917
|
message?: string;
|
|
757
918
|
}>;
|
|
758
919
|
}>;
|
|
759
|
-
export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'description' | 'mediaClose';
|
|
920
|
+
export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'buttonGroup' | 'description' | 'mediaClose';
|
|
760
921
|
export type NativeListWindowRect = Readonly<{
|
|
761
922
|
x: number;
|
|
762
923
|
y: number;
|
|
@@ -779,6 +940,11 @@ export type NativeListActionAnchor = Readonly<{
|
|
|
779
940
|
layoutDirection: 'ltr' | 'rtl';
|
|
780
941
|
}>;
|
|
781
942
|
export type RowActionEvent = Readonly<{
|
|
943
|
+
/** Web-only client/window CSS pixel pointer location. */
|
|
944
|
+
windowPoint?: Readonly<{
|
|
945
|
+
x: number;
|
|
946
|
+
y: number;
|
|
947
|
+
}>;
|
|
782
948
|
rowKey?: string;
|
|
783
949
|
actionKey: string;
|
|
784
950
|
sectionKey?: string;
|
|
@@ -1,7 +1,22 @@
|
|
|
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;
|
|
4
13
|
export declare function applyRowPatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): NativeListSnapshot;
|
|
14
|
+
/** Native wrapper only: preserve full public validation for unsupported patches. */
|
|
15
|
+
export declare function applyOwnedNativePatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): {
|
|
16
|
+
patches: readonly RowPatch[];
|
|
17
|
+
snapshot: NativeListSnapshot;
|
|
18
|
+
json: string;
|
|
19
|
+
};
|
|
5
20
|
export declare function serializeSnapshot(snapshot: NativeListSnapshot): string;
|
|
6
21
|
export declare function serializePatches(patches: readonly RowPatch[]): string;
|
|
7
22
|
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -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) =>
|
|
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: (
|
|
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: (
|
|
11
|
+
measure: (row: MediaTileRow, width: number) => number;
|
|
12
12
|
measureRendered: (_body: HTMLElement, _row: MediaTileRow) => number | undefined;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -3,15 +3,21 @@ import type { MessageRow, NativeListTextStyle } from '../../models';
|
|
|
3
3
|
export declare function resolveMessageRow(row: MessageRow): {
|
|
4
4
|
title: Readonly<{
|
|
5
5
|
value: string;
|
|
6
|
-
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight"
|
|
6
|
+
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight">> & Omit<NativeListTextStyle, "lines"> & {
|
|
7
|
+
lines: 0 | 1 | 2 | 3;
|
|
8
|
+
};
|
|
7
9
|
}>;
|
|
8
10
|
body: Readonly<{
|
|
9
11
|
value: string;
|
|
10
|
-
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight"
|
|
12
|
+
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight">> & Omit<NativeListTextStyle, "lines"> & {
|
|
13
|
+
lines: 0 | 1 | 2 | 3;
|
|
14
|
+
};
|
|
11
15
|
}>;
|
|
12
16
|
time: Readonly<{
|
|
13
17
|
value: string;
|
|
14
|
-
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight"
|
|
18
|
+
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight">> & Omit<NativeListTextStyle, "lines"> & {
|
|
19
|
+
lines: 0 | 1 | 2 | 3;
|
|
20
|
+
};
|
|
15
21
|
}>;
|
|
16
22
|
horizontalPadding: number;
|
|
17
23
|
verticalPadding: number;
|
|
@@ -28,7 +34,7 @@ export declare function resolveMessageRow(row: MessageRow): {
|
|
|
28
34
|
}> | undefined;
|
|
29
35
|
automaticHeight: boolean;
|
|
30
36
|
};
|
|
31
|
-
export declare function classifyMessageUpdate(old: MessageRow | undefined, row: MessageRow): "replace" | "
|
|
37
|
+
export declare function classifyMessageUpdate(old: MessageRow | undefined, row: MessageRow): "replace" | "content" | "unchanged" | "assets";
|
|
32
38
|
export declare function bindMessageRow(body: HTMLElement, row: MessageRow, primitives: RowPrimitives): void;
|
|
33
39
|
export declare function createMessageRow(document: Document, row: MessageRow, primitives: RowPrimitives): HTMLElement;
|
|
34
40
|
export declare function recycleMessageRow(body: HTMLElement): void;
|