@onekeyfe/react-native-native-list 6.7.0-alpha.354 → 6.7.0-alpha.362
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 +0 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +7 -240
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +4 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +3 -6
- package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +0 -12
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +7 -87
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +1 -135
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +14 -43
- package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +0 -25
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +2 -17
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +0 -22
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +0 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +0 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +2 -3
- package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +0 -69
- package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +1 -55
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +21 -585
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +0 -1
- package/docs/ROW_TEMPLATES.md +9 -60
- package/docs/SPEC.md +5 -317
- package/docs/STYLE_SPEC.md +0 -6
- package/ios/HybridNativeList.swift +0 -10
- package/ios/NativeListAccessoryStack.swift +37 -220
- package/ios/NativeListActivityDetailsView.swift +8 -18
- package/ios/NativeListActivityRenderer.swift +2 -8
- package/ios/NativeListDataRowRenderer.swift +8 -105
- package/ios/NativeListDesignAssets.swift +0 -3
- package/ios/NativeListIdentityRenderer.swift +4 -119
- package/ios/NativeListLeadingVisual.swift +14 -49
- package/ios/NativeListMessageRenderer.swift +1 -34
- package/ios/NativeListModels.swift +2 -16
- package/ios/NativeListRendererRegistry.swift +0 -1
- package/ios/NativeListResolvedText.swift +1 -2
- package/ios/NativeListRowHost.swift +0 -14
- package/ios/NativeListSectionHeaderRenderer.swift +0 -88
- package/ios/RNCNativeListView.swift +29 -331
- package/ios/tests/NativeListActivityPresentationTests.swift +0 -56
- package/ios/tests/NativeListLifecycleTests.swift +3 -890
- package/lib/module/NativeList.js +21 -39
- package/lib/module/NativeList.web.js +4 -51
- package/lib/module/models.js +0 -1
- package/lib/module/selection.js +1 -1
- package/lib/module/validation.js +8 -320
- package/lib/module/web/NativeListWebEngine.js +18 -373
- package/lib/module/web/templates/ActivityRowRenderer.js +7 -8
- package/lib/module/web/templates/DataRowRenderer.js +5 -40
- package/lib/module/web/templates/IdentityRowRenderer.js +4 -90
- package/lib/module/web/templates/MessageRowRenderer.js +2 -18
- package/lib/module/web/templates/RowContainerStyle.js +0 -1
- package/lib/module/web/templates/RowRendererRegistry.js +0 -3
- package/lib/module/web/templates/SectionHeaderRowRenderer.js +2 -36
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
- package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
- package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
- package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
- package/lib/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
- package/lib/typescript/src/NativeList.nitro.d.ts +0 -1
- package/lib/typescript/src/NativeList.types.d.ts +0 -8
- package/lib/typescript/src/models.d.ts +9 -101
- package/lib/typescript/src/validation.d.ts +0 -10
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +0 -26
- package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
- package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +3 -9
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
- package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
- package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
- package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
- package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
- package/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
- package/package.json +3 -3
- package/react-native-native-list.podspec +0 -1
- package/src/NativeList.nitro.ts +0 -1
- package/src/NativeList.tsx +24 -72
- package/src/NativeList.types.ts +0 -9
- package/src/NativeList.web.tsx +8 -72
- package/src/models.ts +3 -113
- package/src/selection.ts +0 -1
- package/src/validation.ts +6 -721
- package/src/web/NativeListWebEngine.ts +19 -568
- package/src/web/templates/ActivityRowRenderer.ts +6 -14
- package/src/web/templates/DataRowRenderer.ts +20 -93
- package/src/web/templates/IdentityRowRenderer.ts +5 -150
- package/src/web/templates/MessageRowRenderer.ts +7 -23
- package/src/web/templates/RowContainerStyle.ts +0 -2
- package/src/web/templates/RowRendererRegistry.ts +1 -11
- package/src/web/templates/SectionHeaderRowRenderer.ts +4 -47
- package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +0 -102
- package/ios/NativeListButtonGroupRenderer.swift +0 -89
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +0 -4
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +0 -3
- package/lib/module/web/templates/ButtonGroupRowRenderer.js +0 -47
- package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +0 -14
- package/src/web/templates/ButtonGroupRowRenderer.ts +0 -58
|
@@ -8,7 +8,6 @@ export interface NativeListNativeProps extends HybridViewProps {
|
|
|
8
8
|
snapshotJson: string;
|
|
9
9
|
fontFamiliesJson: string;
|
|
10
10
|
containerSlotHeightsJson: string;
|
|
11
|
-
sidecarLayoutJson: string;
|
|
12
11
|
topScrollEdgeEffect: NativeListScrollEdgeEffect;
|
|
13
12
|
topOverlayHeight: number;
|
|
14
13
|
scrollPositionThresholdsJson: string;
|
|
@@ -49,11 +49,6 @@ export type NativeListWebScrollHost = Readonly<{
|
|
|
49
49
|
clientHeight: number;
|
|
50
50
|
scrollTop: number;
|
|
51
51
|
}>;
|
|
52
|
-
export type NativeListSidecarLayout = Readonly<{
|
|
53
|
-
width: number;
|
|
54
|
-
gap: number;
|
|
55
|
-
maxContentWidth: number;
|
|
56
|
-
}>;
|
|
57
52
|
type InitialScrollProps = Readonly<{
|
|
58
53
|
initialScrollIndex?: never;
|
|
59
54
|
initialScrollKey?: never;
|
|
@@ -91,9 +86,6 @@ export type NativeListProps = Omit<ViewProps, 'children'> & Readonly<{
|
|
|
91
86
|
listHeader?: ReactNode;
|
|
92
87
|
listFooter?: ReactNode;
|
|
93
88
|
listEmpty?: ReactNode;
|
|
94
|
-
/** Scrolling right column for a vertical linear list. Requires sidecarLayout. */
|
|
95
|
-
listSidecar?: ReactNode;
|
|
96
|
-
sidecarLayout?: NativeListSidecarLayout;
|
|
97
89
|
/** Fixed overlay above scrolling rows on iOS 26 and newer. */
|
|
98
90
|
topOverlay?: ReactNode;
|
|
99
91
|
/** Selects UIKit's top scroll-edge effect on iOS 26 and newer. */
|
|
@@ -97,7 +97,6 @@ export declare const ROW_BOX_STYLE_KEYS_BY_TYPE: {
|
|
|
97
97
|
readonly metricCard: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "lineGap", "image"];
|
|
98
98
|
readonly sectionHeader: readonly ["horizontalPadding", "verticalPadding", "lineGap", "trailingGap"];
|
|
99
99
|
readonly action: readonly ["horizontalPadding", "verticalPadding", "leadingGap", "trailingGap", "image"];
|
|
100
|
-
readonly buttonGroup: readonly [];
|
|
101
100
|
readonly system: readonly ["horizontalPadding", "verticalPadding", "lineGap"];
|
|
102
101
|
};
|
|
103
102
|
type TemplateBoxStyle<T extends keyof typeof ROW_BOX_STYLE_KEYS_BY_TYPE> = Pick<RowBoxStyle, (typeof ROW_BOX_STYLE_KEYS_BY_TYPE)[T][number] | 'container'>;
|
|
@@ -108,7 +107,6 @@ type TemplateBoxStyle<T extends keyof typeof ROW_BOX_STYLE_KEYS_BY_TYPE> = Pick<
|
|
|
108
107
|
* the same key name keeps one meaning across platforms. See docs/STYLE_SPEC.md §4.
|
|
109
108
|
*/
|
|
110
109
|
export type IdentityRowStyle = TemplateBoxStyle<'identity'> & Readonly<{
|
|
111
|
-
leadingContentMaxWidthRatio?: number;
|
|
112
110
|
title?: NativeListTextStyle;
|
|
113
111
|
subtitle?: NativeListTextStyle;
|
|
114
112
|
tertiary?: NativeListTextStyle;
|
|
@@ -170,13 +168,6 @@ export type SectionHeaderRowStyle = TemplateBoxStyle<'sectionHeader'> & Readonly
|
|
|
170
168
|
title?: NativeListTextStyle;
|
|
171
169
|
subtitle?: NativeListTextStyle;
|
|
172
170
|
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';
|
|
180
171
|
}>;
|
|
181
172
|
export type ActionRowStyle = TemplateBoxStyle<'action'> & Readonly<{
|
|
182
173
|
title?: NativeListTextStyle;
|
|
@@ -234,13 +225,8 @@ export type VisualOverlay = Readonly<{
|
|
|
234
225
|
offsetX?: number;
|
|
235
226
|
offsetY?: number;
|
|
236
227
|
image?: ImageSource;
|
|
237
|
-
fallbackIcon?: Readonly<{
|
|
238
|
-
name: string;
|
|
239
|
-
tintColor?: string;
|
|
240
|
-
}>;
|
|
241
228
|
name?: string;
|
|
242
229
|
text?: string;
|
|
243
|
-
fontWeight?: NativeListTextStyle['fontWeight'];
|
|
244
230
|
tintColor?: string;
|
|
245
231
|
backgroundColor?: string;
|
|
246
232
|
}>;
|
|
@@ -248,15 +234,12 @@ type VisualWithImage = Readonly<{
|
|
|
248
234
|
fallbackIcon?: Readonly<{
|
|
249
235
|
name: string;
|
|
250
236
|
tintColor?: string;
|
|
251
|
-
size?: number;
|
|
252
|
-
backgroundColor?: string;
|
|
253
237
|
}>;
|
|
254
238
|
overlays?: readonly VisualOverlay[];
|
|
255
239
|
borderStyle?: 'dashed';
|
|
256
240
|
borderColor?: string;
|
|
257
241
|
image?: ImageSource;
|
|
258
242
|
fallbackText?: string;
|
|
259
|
-
fallbackTextColor?: string;
|
|
260
243
|
backgroundColor?: string;
|
|
261
244
|
shape?: 'circle' | 'rounded' | 'square';
|
|
262
245
|
cornerIcon?: Readonly<{
|
|
@@ -308,24 +291,8 @@ export type TrailingAccessory = Readonly<{
|
|
|
308
291
|
kind: 'valuePair';
|
|
309
292
|
primary: string;
|
|
310
293
|
secondary: string;
|
|
311
|
-
primaryFontWeight?: 'medium';
|
|
312
|
-
primaryHelp?: RowTextHelp;
|
|
313
|
-
primaryTextSegments?: readonly ValueTextSegment[];
|
|
314
|
-
secondaryTextSegments?: readonly ValueTextSegment[];
|
|
315
294
|
primaryTone?: TextTone;
|
|
316
295
|
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;
|
|
329
296
|
}> | Readonly<{
|
|
330
297
|
kind: 'checkbox';
|
|
331
298
|
state: CheckboxState;
|
|
@@ -356,7 +323,6 @@ export type TrailingAccessory = Readonly<{
|
|
|
356
323
|
kind: 'icon';
|
|
357
324
|
name: string;
|
|
358
325
|
tintColor?: string;
|
|
359
|
-
buttonStyle?: 'tertiary';
|
|
360
326
|
disabled?: boolean;
|
|
361
327
|
actionKey?: string;
|
|
362
328
|
testID?: string;
|
|
@@ -396,10 +362,6 @@ export type RowBase = Readonly<{
|
|
|
396
362
|
}>;
|
|
397
363
|
export type IdentityRow = RowBase & Readonly<{
|
|
398
364
|
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;
|
|
403
365
|
titleMatch?: readonly Readonly<{
|
|
404
366
|
start: number;
|
|
405
367
|
end: number;
|
|
@@ -413,27 +375,11 @@ export type IdentityRow = RowBase & Readonly<{
|
|
|
413
375
|
kind: 'icon';
|
|
414
376
|
}>;
|
|
415
377
|
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
378
|
subtitle?: string;
|
|
432
379
|
tertiary?: string;
|
|
433
380
|
tertiaryTone?: 'secondary' | 'info';
|
|
434
381
|
titleLines?: 1 | 2;
|
|
435
|
-
|
|
436
|
-
subtitleLines?: 0 | 1 | 2;
|
|
382
|
+
subtitleLines?: 1 | 2;
|
|
437
383
|
badges?: readonly BadgeModel[];
|
|
438
384
|
trailing?: readonly TrailingAccessory[];
|
|
439
385
|
draggable?: boolean;
|
|
@@ -467,7 +413,6 @@ export type ActivityAmount = Readonly<{
|
|
|
467
413
|
export type ActivityRow = RowBase & Readonly<{
|
|
468
414
|
type: 'activity';
|
|
469
415
|
leading: LeadingVisual;
|
|
470
|
-
hideLeading?: boolean;
|
|
471
416
|
secondaryLeading?: LeadingVisual;
|
|
472
417
|
title: string;
|
|
473
418
|
description?: string;
|
|
@@ -491,14 +436,11 @@ export type ActivityRow = RowBase & Readonly<{
|
|
|
491
436
|
}>;
|
|
492
437
|
export type MessageRow = RowBase & Readonly<{
|
|
493
438
|
type: 'message';
|
|
494
|
-
/** Draws only top and bottom container borders when a border is supplied. */
|
|
495
|
-
presentation?: 'inlineWarning';
|
|
496
439
|
unread?: boolean;
|
|
497
440
|
leading?: LeadingVisual;
|
|
498
441
|
title: string;
|
|
499
442
|
body: string;
|
|
500
|
-
|
|
501
|
-
bodyLines?: 0 | 1 | 2 | 3;
|
|
443
|
+
bodyLines?: 1 | 2 | 3;
|
|
502
444
|
time: string;
|
|
503
445
|
thumbnail?: ImageSource;
|
|
504
446
|
style?: MessageRowStyle;
|
|
@@ -506,12 +448,8 @@ export type MessageRow = RowBase & Readonly<{
|
|
|
506
448
|
export type DataColumn = Readonly<{
|
|
507
449
|
key: string;
|
|
508
450
|
text: string;
|
|
509
|
-
textSegments?: readonly ValueTextSegment[];
|
|
510
|
-
titleIcon?: IdentityRow['titleIcon'];
|
|
511
|
-
secondaryTitleIcon?: IdentityRow['titleIcon'];
|
|
512
451
|
secondaryLeadingText?: string;
|
|
513
452
|
secondaryText?: string;
|
|
514
|
-
secondaryTextSegments?: readonly ValueTextSegment[];
|
|
515
453
|
weight?: 1 | 2 | 3;
|
|
516
454
|
alignment?: 'start' | 'center' | 'end';
|
|
517
455
|
tone?: 'primary' | 'secondary' | 'positive' | 'negative';
|
|
@@ -521,7 +459,6 @@ export type DataRow = RowBase & Readonly<{
|
|
|
521
459
|
type: 'dataRow';
|
|
522
460
|
leading?: LeadingVisual;
|
|
523
461
|
columns: readonly DataColumn[];
|
|
524
|
-
trailing?: readonly TrailingAccessory[];
|
|
525
462
|
checkbox?: Extract<TrailingAccessory, {
|
|
526
463
|
kind: 'checkbox';
|
|
527
464
|
}>;
|
|
@@ -674,11 +611,9 @@ export type SectionHeaderRow = RowBase & Readonly<{
|
|
|
674
611
|
indexTitle?: string;
|
|
675
612
|
variant?: 'summary' | 'gallery' | 'history';
|
|
676
613
|
title: string;
|
|
677
|
-
leadingBadge?: BadgeModel;
|
|
678
614
|
titleLoading?: boolean;
|
|
679
615
|
subtitle?: string;
|
|
680
616
|
value?: string;
|
|
681
|
-
valueHelp?: RowTextHelp;
|
|
682
617
|
valueActionKey?: string;
|
|
683
618
|
titleIcon?: Extract<TrailingAccessory, {
|
|
684
619
|
kind: 'icon';
|
|
@@ -706,19 +641,6 @@ export type ActionRow = RowBase & Readonly<{
|
|
|
706
641
|
trailing?: readonly TrailingAccessory[];
|
|
707
642
|
style?: ActionRowStyle;
|
|
708
643
|
}>;
|
|
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
|
-
}>;
|
|
722
644
|
export type SystemRow = RowBase & Readonly<{
|
|
723
645
|
style?: SystemRowStyle;
|
|
724
646
|
}> & (Readonly<{
|
|
@@ -755,7 +677,7 @@ export type SystemRow = RowBase & Readonly<{
|
|
|
755
677
|
variant: 'spacer';
|
|
756
678
|
height: number;
|
|
757
679
|
}>);
|
|
758
|
-
export type RowModel = IdentityRow | WalletGroupRow | RailRow | ActivityRow | MessageRow | DataRow | MarketRow | MediaTileRow | MetricCardRow | SectionHeaderRow | ActionRow |
|
|
680
|
+
export type RowModel = IdentityRow | WalletGroupRow | RailRow | ActivityRow | MessageRow | DataRow | MarketRow | MediaTileRow | MetricCardRow | SectionHeaderRow | ActionRow | SystemRow;
|
|
759
681
|
export type NativeListTheme = Readonly<{
|
|
760
682
|
checkboxBackground?: string;
|
|
761
683
|
checkboxBorder?: string;
|
|
@@ -765,8 +687,6 @@ export type NativeListTheme = Readonly<{
|
|
|
765
687
|
rowBackground: string;
|
|
766
688
|
rowSelectedBackground: string;
|
|
767
689
|
rowPressedBackground?: string;
|
|
768
|
-
/** Web-only enabled-row hover color; defaults to rowPressedBackground. */
|
|
769
|
-
rowHoverBackground?: string;
|
|
770
690
|
subduedBackground?: string;
|
|
771
691
|
strongBackground?: string;
|
|
772
692
|
/** Web-only background for a displayed declared image fallback. */
|
|
@@ -779,8 +699,6 @@ export type NativeListTheme = Readonly<{
|
|
|
779
699
|
separator: string;
|
|
780
700
|
accent: string;
|
|
781
701
|
positive: string;
|
|
782
|
-
/** Optional exact background for the success tone of section leading badges. */
|
|
783
|
-
successBackground?: string;
|
|
784
702
|
negative: string;
|
|
785
703
|
criticalBackground?: string;
|
|
786
704
|
inverseBackground?: string;
|
|
@@ -822,12 +740,6 @@ export type NativeListListStyle = Readonly<{
|
|
|
822
740
|
export type NativeListSnapshot = Readonly<{
|
|
823
741
|
schemaVersion: 1;
|
|
824
742
|
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
743
|
layout: Readonly<{
|
|
832
744
|
kind: NativeListLayout;
|
|
833
745
|
orientation?: NativeListOrientation;
|
|
@@ -863,7 +775,7 @@ type CommonPatchFields = 'revision' | 'disabled' | 'selected' | 'separator' | 'h
|
|
|
863
775
|
export type RowPatch = Readonly<{
|
|
864
776
|
type: 'identity';
|
|
865
777
|
key: string;
|
|
866
|
-
changes: Partial<Pick<IdentityRow, CommonPatchFields | 'title' | '
|
|
778
|
+
changes: Partial<Pick<IdentityRow, CommonPatchFields | 'title' | 'subtitle' | 'tertiary' | 'tertiaryTone' | 'badges' | 'trailing' | 'leading' | 'leadingAction' | 'titleMatch' | 'titleActionKey' | 'titleActionOnHover' | 'subtitleSegments'>>;
|
|
867
779
|
}> | Readonly<{
|
|
868
780
|
type: 'rail';
|
|
869
781
|
key: string;
|
|
@@ -871,15 +783,15 @@ export type RowPatch = Readonly<{
|
|
|
871
783
|
}> | Readonly<{
|
|
872
784
|
type: 'activity';
|
|
873
785
|
key: string;
|
|
874
|
-
changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | '
|
|
786
|
+
changes: Partial<Pick<ActivityRow, CommonPatchFields | 'title' | 'description' | 'status' | 'amounts' | 'badges' | 'presentation' | 'fee' | 'descriptionActionKey' | 'primaryAmount' | 'secondaryAmount' | 'leading' | 'secondaryLeading' | 'footerActions'>>;
|
|
875
787
|
}> | Readonly<{
|
|
876
788
|
type: 'message';
|
|
877
789
|
key: string;
|
|
878
|
-
changes: Partial<Pick<MessageRow, CommonPatchFields | 'unread' | 'title' | 'body' | 'bodyLines' | '
|
|
790
|
+
changes: Partial<Pick<MessageRow, CommonPatchFields | 'unread' | 'title' | 'body' | 'bodyLines' | 'time' | 'thumbnail'>>;
|
|
879
791
|
}> | Readonly<{
|
|
880
792
|
type: 'dataRow';
|
|
881
793
|
key: string;
|
|
882
|
-
changes: Partial<Pick<DataRow, CommonPatchFields | 'leading' | 'columns' | '
|
|
794
|
+
changes: Partial<Pick<DataRow, CommonPatchFields | 'leading' | 'columns' | 'checkbox' | 'index' | 'badge' | 'badges' | 'favorite' | 'favoriteActive'>>;
|
|
883
795
|
}> | Readonly<{
|
|
884
796
|
type: 'market';
|
|
885
797
|
key: string;
|
|
@@ -895,15 +807,11 @@ export type RowPatch = Readonly<{
|
|
|
895
807
|
}> | Readonly<{
|
|
896
808
|
type: 'sectionHeader';
|
|
897
809
|
key: string;
|
|
898
|
-
changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | '
|
|
810
|
+
changes: Partial<Pick<SectionHeaderRow, CommonPatchFields | 'variant' | 'titleLoading' | 'title' | 'subtitle' | 'value' | 'valueActionKey' | 'titleActionKey' | 'titleActionOnHover' | 'titleIcon' | 'valueIcon' | 'checkbox'>>;
|
|
899
811
|
}> | Readonly<{
|
|
900
812
|
type: 'action';
|
|
901
813
|
key: string;
|
|
902
814
|
changes: Partial<Pick<ActionRow, CommonPatchFields | 'title' | 'tone' | 'icon' | 'checkbox' | 'trailing'>>;
|
|
903
|
-
}> | Readonly<{
|
|
904
|
-
type: 'buttonGroup';
|
|
905
|
-
key: string;
|
|
906
|
-
changes: Partial<Pick<ButtonGroupRow, CommonPatchFields | 'buttons'>>;
|
|
907
815
|
}> | Readonly<{
|
|
908
816
|
type: 'system';
|
|
909
817
|
key: string;
|
|
@@ -913,7 +821,7 @@ export type RowPatch = Readonly<{
|
|
|
913
821
|
message?: string;
|
|
914
822
|
}>;
|
|
915
823
|
}>;
|
|
916
|
-
export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | '
|
|
824
|
+
export type NativeListActionSource = 'row' | 'marketBadge' | 'leadingAction' | 'trailingAccessory' | 'footerAction' | 'description' | 'mediaClose';
|
|
917
825
|
export type NativeListWindowRect = Readonly<{
|
|
918
826
|
x: number;
|
|
919
827
|
y: number;
|
|
@@ -3,18 +3,8 @@ import type { NativeListSnapshot, RowPatch } from './models';
|
|
|
3
3
|
export declare function containNativeListInput<T>(operation: () => T): T | undefined;
|
|
4
4
|
export declare function emptyNativeListSnapshot(): NativeListSnapshot;
|
|
5
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;
|
|
10
6
|
export declare function validatePatches(patches: readonly RowPatch[]): readonly RowPatch[];
|
|
11
7
|
export declare function applyRowPatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): NativeListSnapshot;
|
|
12
|
-
/** Native wrapper only: preserve full public validation for unsupported patches. */
|
|
13
|
-
export declare function applyOwnedNativePatches(snapshot: NativeListSnapshot, patches: readonly RowPatch[]): {
|
|
14
|
-
patches: readonly RowPatch[];
|
|
15
|
-
snapshot: NativeListSnapshot;
|
|
16
|
-
json: string;
|
|
17
|
-
};
|
|
18
8
|
export declare function serializeSnapshot(snapshot: NativeListSnapshot): string;
|
|
19
9
|
export declare function serializePatches(patches: readonly RowPatch[]): string;
|
|
20
10
|
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -145,7 +145,6 @@ export declare class NativeListWebEngine {
|
|
|
145
145
|
private pullDistance;
|
|
146
146
|
private virtualizationEnabled;
|
|
147
147
|
private actionAnchor;
|
|
148
|
-
private pressedHelpElement;
|
|
149
148
|
private readonly actionAnchorInstanceId;
|
|
150
149
|
private actionAnchorCounter;
|
|
151
150
|
private bindingEpochCounter;
|
|
@@ -154,22 +153,6 @@ export declare class NativeListWebEngine {
|
|
|
154
153
|
private lastViewportWidth;
|
|
155
154
|
private lastViewportHeight;
|
|
156
155
|
private destroyed;
|
|
157
|
-
private hasAppliedSnapshot;
|
|
158
|
-
private lastStructuralTransitionId;
|
|
159
|
-
private structuralFrame;
|
|
160
|
-
private structuralFinish;
|
|
161
|
-
private structuralAnimations;
|
|
162
|
-
private structuralScrollInterrupted;
|
|
163
|
-
private structuralRenderedHeight;
|
|
164
|
-
private structuralTargetHeight;
|
|
165
|
-
private reactFooterHeight;
|
|
166
|
-
private structuralFooterCompensation;
|
|
167
|
-
private structuralFooterExpansion;
|
|
168
|
-
private structuralFooterFromHeight;
|
|
169
|
-
private structuralFooterElement;
|
|
170
|
-
private structuralFooterStyles;
|
|
171
|
-
private structuralProgress;
|
|
172
|
-
private structuralAnchorStyles;
|
|
173
156
|
private sectionIndexAlignStart;
|
|
174
157
|
private measuredRendererHeights;
|
|
175
158
|
private notifyScrollCommandAccepted;
|
|
@@ -185,13 +168,6 @@ export declare class NativeListWebEngine {
|
|
|
185
168
|
updateCallbacks(callbacks: NativeListWebCallbacks): void;
|
|
186
169
|
setVirtualizationEnabled(enabled: boolean): void;
|
|
187
170
|
applySnapshot(snapshot: NativeListSnapshot): void;
|
|
188
|
-
private cancelStructuralAnimation;
|
|
189
|
-
private handleStructuralUserScroll;
|
|
190
|
-
private writeStructuralHeight;
|
|
191
|
-
private reactFooterElement;
|
|
192
|
-
private readReactFooterHeight;
|
|
193
|
-
private applyStructuralFooterVisual;
|
|
194
|
-
private applyStructuralSnapshot;
|
|
195
171
|
currentContentHeight(): number;
|
|
196
172
|
currentSnapshot(): NativeListSnapshot;
|
|
197
173
|
applyPatches(patches: readonly RowPatch[]): void;
|
|
@@ -263,8 +239,6 @@ export declare class NativeListWebEngine {
|
|
|
263
239
|
private handleMarketTouchMove;
|
|
264
240
|
private handleMarketPointerEnd;
|
|
265
241
|
private handleTitlePointerOver;
|
|
266
|
-
private emitHoverAction;
|
|
267
|
-
private handleIconHelpPointerDown;
|
|
268
242
|
private handleTitlePointerOut;
|
|
269
243
|
private handleClick;
|
|
270
244
|
private handleKeyDown;
|
|
@@ -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
|
|
@@ -3,21 +3,15 @@ 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"
|
|
7
|
-
lines: 0 | 1 | 2 | 3;
|
|
8
|
-
};
|
|
6
|
+
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight" | "lines">> & NativeListTextStyle;
|
|
9
7
|
}>;
|
|
10
8
|
body: Readonly<{
|
|
11
9
|
value: string;
|
|
12
|
-
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight"
|
|
13
|
-
lines: 0 | 1 | 2 | 3;
|
|
14
|
-
};
|
|
10
|
+
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight" | "lines">> & NativeListTextStyle;
|
|
15
11
|
}>;
|
|
16
12
|
time: Readonly<{
|
|
17
13
|
value: string;
|
|
18
|
-
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight"
|
|
19
|
-
lines: 0 | 1 | 2 | 3;
|
|
20
|
-
};
|
|
14
|
+
style: Required<Pick<NativeListTextStyle, "fontSize" | "lineHeight" | "lines">> & NativeListTextStyle;
|
|
21
15
|
}>;
|
|
22
16
|
horizontalPadding: number;
|
|
23
17
|
verticalPadding: number;
|
|
@@ -88,15 +88,6 @@ namespace margelo::nitro::nativelist {
|
|
|
88
88
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* containerSlotHeightsJson */)>("setContainerSlotHeightsJson");
|
|
89
89
|
method(_javaPart, jni::make_jstring(containerSlotHeightsJson));
|
|
90
90
|
}
|
|
91
|
-
std::string JHybridNativeListSpec::getSidecarLayoutJson() {
|
|
92
|
-
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getSidecarLayoutJson");
|
|
93
|
-
auto __result = method(_javaPart);
|
|
94
|
-
return __result->toStdString();
|
|
95
|
-
}
|
|
96
|
-
void JHybridNativeListSpec::setSidecarLayoutJson(const std::string& sidecarLayoutJson) {
|
|
97
|
-
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* sidecarLayoutJson */)>("setSidecarLayoutJson");
|
|
98
|
-
method(_javaPart, jni::make_jstring(sidecarLayoutJson));
|
|
99
|
-
}
|
|
100
91
|
NativeListScrollEdgeEffect JHybridNativeListSpec::getTopScrollEdgeEffect() {
|
|
101
92
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNativeListScrollEdgeEffect>()>("getTopScrollEdgeEffect");
|
|
102
93
|
auto __result = method(_javaPart);
|
|
@@ -56,8 +56,6 @@ namespace margelo::nitro::nativelist {
|
|
|
56
56
|
void setFontFamiliesJson(const std::string& fontFamiliesJson) override;
|
|
57
57
|
std::string getContainerSlotHeightsJson() override;
|
|
58
58
|
void setContainerSlotHeightsJson(const std::string& containerSlotHeightsJson) override;
|
|
59
|
-
std::string getSidecarLayoutJson() override;
|
|
60
|
-
void setSidecarLayoutJson(const std::string& sidecarLayoutJson) override;
|
|
61
59
|
NativeListScrollEdgeEffect getTopScrollEdgeEffect() override;
|
|
62
60
|
void setTopScrollEdgeEffect(NativeListScrollEdgeEffect topScrollEdgeEffect) override;
|
|
63
61
|
double getTopOverlayHeight() override;
|
|
@@ -68,11 +68,6 @@ void JHybridNativeListStateUpdater::updateViewProps(jni::alias_ref<jni::JClass>
|
|
|
68
68
|
: !newProps->containerSlotHeightsJson.hasSameValue(oldProps->containerSlotHeightsJson)) {
|
|
69
69
|
hybridView->setContainerSlotHeightsJson(newProps->containerSlotHeightsJson.get());
|
|
70
70
|
}
|
|
71
|
-
if (oldProps == nullptr
|
|
72
|
-
? newProps->sidecarLayoutJson.isProvided()
|
|
73
|
-
: !newProps->sidecarLayoutJson.hasSameValue(oldProps->sidecarLayoutJson)) {
|
|
74
|
-
hybridView->setSidecarLayoutJson(newProps->sidecarLayoutJson.get());
|
|
75
|
-
}
|
|
76
71
|
if (oldProps == nullptr
|
|
77
72
|
? newProps->topScrollEdgeEffect.isProvided()
|
|
78
73
|
: !newProps->topScrollEdgeEffect.hasSameValue(oldProps->topScrollEdgeEffect)) {
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt
CHANGED
|
@@ -45,12 +45,6 @@ abstract class HybridNativeListSpec: HybridView() {
|
|
|
45
45
|
@set:Keep
|
|
46
46
|
abstract var containerSlotHeightsJson: String
|
|
47
47
|
|
|
48
|
-
@get:DoNotStrip
|
|
49
|
-
@get:Keep
|
|
50
|
-
@set:DoNotStrip
|
|
51
|
-
@set:Keep
|
|
52
|
-
abstract var sidecarLayoutJson: String
|
|
53
|
-
|
|
54
48
|
@get:DoNotStrip
|
|
55
49
|
@get:Keep
|
|
56
50
|
@set:DoNotStrip
|
|
@@ -96,13 +96,6 @@ namespace margelo::nitro::nativelist {
|
|
|
96
96
|
inline void setContainerSlotHeightsJson(const std::string& containerSlotHeightsJson) noexcept override {
|
|
97
97
|
_swiftPart.setContainerSlotHeightsJson(containerSlotHeightsJson);
|
|
98
98
|
}
|
|
99
|
-
inline std::string getSidecarLayoutJson() noexcept override {
|
|
100
|
-
auto __result = _swiftPart.getSidecarLayoutJson();
|
|
101
|
-
return __result;
|
|
102
|
-
}
|
|
103
|
-
inline void setSidecarLayoutJson(const std::string& sidecarLayoutJson) noexcept override {
|
|
104
|
-
_swiftPart.setSidecarLayoutJson(sidecarLayoutJson);
|
|
105
|
-
}
|
|
106
99
|
inline NativeListScrollEdgeEffect getTopScrollEdgeEffect() noexcept override {
|
|
107
100
|
auto __result = _swiftPart.getTopScrollEdgeEffect();
|
|
108
101
|
return static_cast<NativeListScrollEdgeEffect>(__result);
|
|
@@ -130,12 +130,6 @@ using namespace margelo::nitro::nativelist::views;
|
|
|
130
130
|
: !newViewProps.containerSlotHeightsJson.hasSameValue(oldViewProps->containerSlotHeightsJson)) {
|
|
131
131
|
swiftPart.setContainerSlotHeightsJson(newViewProps.containerSlotHeightsJson.get());
|
|
132
132
|
}
|
|
133
|
-
// sidecarLayoutJson: string
|
|
134
|
-
if (oldViewProps == nullptr
|
|
135
|
-
? newViewProps.sidecarLayoutJson.isProvided()
|
|
136
|
-
: !newViewProps.sidecarLayoutJson.hasSameValue(oldViewProps->sidecarLayoutJson)) {
|
|
137
|
-
swiftPart.setSidecarLayoutJson(newViewProps.sidecarLayoutJson.get());
|
|
138
|
-
}
|
|
139
133
|
// topScrollEdgeEffect: enum
|
|
140
134
|
if (oldViewProps == nullptr
|
|
141
135
|
? newViewProps.topScrollEdgeEffect.isProvided()
|
|
@@ -13,7 +13,6 @@ public protocol HybridNativeListSpec_protocol: HybridObject, HybridView {
|
|
|
13
13
|
var snapshotJson: String { get set }
|
|
14
14
|
var fontFamiliesJson: String { get set }
|
|
15
15
|
var containerSlotHeightsJson: String { get set }
|
|
16
|
-
var sidecarLayoutJson: String { get set }
|
|
17
16
|
var topScrollEdgeEffect: NativeListScrollEdgeEffect { get set }
|
|
18
17
|
var topOverlayHeight: Double { get set }
|
|
19
18
|
var scrollPositionThresholdsJson: String { get set }
|
|
@@ -154,17 +154,6 @@ open class HybridNativeListSpec_cxx {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
public final var sidecarLayoutJson: std.string {
|
|
158
|
-
@inline(__always)
|
|
159
|
-
get {
|
|
160
|
-
return std.string(self.__implementation.sidecarLayoutJson)
|
|
161
|
-
}
|
|
162
|
-
@inline(__always)
|
|
163
|
-
set {
|
|
164
|
-
self.__implementation.sidecarLayoutJson = String(newValue)
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
157
|
public final var topScrollEdgeEffect: Int32 {
|
|
169
158
|
@inline(__always)
|
|
170
159
|
get {
|
|
@@ -20,8 +20,6 @@ namespace margelo::nitro::nativelist {
|
|
|
20
20
|
prototype.registerHybridSetter("fontFamiliesJson", &HybridNativeListSpec::setFontFamiliesJson);
|
|
21
21
|
prototype.registerHybridGetter("containerSlotHeightsJson", &HybridNativeListSpec::getContainerSlotHeightsJson);
|
|
22
22
|
prototype.registerHybridSetter("containerSlotHeightsJson", &HybridNativeListSpec::setContainerSlotHeightsJson);
|
|
23
|
-
prototype.registerHybridGetter("sidecarLayoutJson", &HybridNativeListSpec::getSidecarLayoutJson);
|
|
24
|
-
prototype.registerHybridSetter("sidecarLayoutJson", &HybridNativeListSpec::setSidecarLayoutJson);
|
|
25
23
|
prototype.registerHybridGetter("topScrollEdgeEffect", &HybridNativeListSpec::getTopScrollEdgeEffect);
|
|
26
24
|
prototype.registerHybridSetter("topScrollEdgeEffect", &HybridNativeListSpec::setTopScrollEdgeEffect);
|
|
27
25
|
prototype.registerHybridGetter("topOverlayHeight", &HybridNativeListSpec::getTopOverlayHeight);
|
|
@@ -63,8 +63,6 @@ namespace margelo::nitro::nativelist {
|
|
|
63
63
|
virtual void setFontFamiliesJson(const std::string& fontFamiliesJson) = 0;
|
|
64
64
|
virtual std::string getContainerSlotHeightsJson() = 0;
|
|
65
65
|
virtual void setContainerSlotHeightsJson(const std::string& containerSlotHeightsJson) = 0;
|
|
66
|
-
virtual std::string getSidecarLayoutJson() = 0;
|
|
67
|
-
virtual void setSidecarLayoutJson(const std::string& sidecarLayoutJson) = 0;
|
|
68
66
|
virtual NativeListScrollEdgeEffect getTopScrollEdgeEffect() = 0;
|
|
69
67
|
virtual void setTopScrollEdgeEffect(NativeListScrollEdgeEffect topScrollEdgeEffect) = 0;
|
|
70
68
|
virtual double getTopOverlayHeight() = 0;
|
|
@@ -23,7 +23,6 @@ namespace margelo::nitro::nativelist::views {
|
|
|
23
23
|
snapshotJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "snapshotJson", rawProps, sourceProps.snapshotJson)),
|
|
24
24
|
fontFamiliesJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "fontFamiliesJson", rawProps, sourceProps.fontFamiliesJson)),
|
|
25
25
|
containerSlotHeightsJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "containerSlotHeightsJson", rawProps, sourceProps.containerSlotHeightsJson)),
|
|
26
|
-
sidecarLayoutJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "sidecarLayoutJson", rawProps, sourceProps.sidecarLayoutJson)),
|
|
27
26
|
topScrollEdgeEffect(nitro::ReactProp<NativeListScrollEdgeEffect>::fromRawValue("NativeList", "topScrollEdgeEffect", rawProps, sourceProps.topScrollEdgeEffect)),
|
|
28
27
|
topOverlayHeight(nitro::ReactProp<double>::fromRawValue("NativeList", "topOverlayHeight", rawProps, sourceProps.topOverlayHeight)),
|
|
29
28
|
scrollPositionThresholdsJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "scrollPositionThresholdsJson", rawProps, sourceProps.scrollPositionThresholdsJson)),
|
|
@@ -43,7 +42,6 @@ namespace margelo::nitro::nativelist::views {
|
|
|
43
42
|
case hashString("snapshotJson"): return true;
|
|
44
43
|
case hashString("fontFamiliesJson"): return true;
|
|
45
44
|
case hashString("containerSlotHeightsJson"): return true;
|
|
46
|
-
case hashString("sidecarLayoutJson"): return true;
|
|
47
45
|
case hashString("topScrollEdgeEffect"): return true;
|
|
48
46
|
case hashString("topOverlayHeight"): return true;
|
|
49
47
|
case hashString("scrollPositionThresholdsJson"): return true;
|
|
@@ -49,7 +49,6 @@ namespace margelo::nitro::nativelist::views {
|
|
|
49
49
|
nitro::ReactProp<std::string> snapshotJson;
|
|
50
50
|
nitro::ReactProp<std::string> fontFamiliesJson;
|
|
51
51
|
nitro::ReactProp<std::string> containerSlotHeightsJson;
|
|
52
|
-
nitro::ReactProp<std::string> sidecarLayoutJson;
|
|
53
52
|
nitro::ReactProp<NativeListScrollEdgeEffect> topScrollEdgeEffect;
|
|
54
53
|
nitro::ReactProp<double> topOverlayHeight;
|
|
55
54
|
nitro::ReactProp<std::string> scrollPositionThresholdsJson;
|
|
@@ -69,7 +68,6 @@ namespace margelo::nitro::nativelist::views {
|
|
|
69
68
|
return snapshotJson.hasSameValue(other.snapshotJson) &&
|
|
70
69
|
fontFamiliesJson.hasSameValue(other.fontFamiliesJson) &&
|
|
71
70
|
containerSlotHeightsJson.hasSameValue(other.containerSlotHeightsJson) &&
|
|
72
|
-
sidecarLayoutJson.hasSameValue(other.sidecarLayoutJson) &&
|
|
73
71
|
topScrollEdgeEffect.hasSameValue(other.topScrollEdgeEffect) &&
|
|
74
72
|
topOverlayHeight.hasSameValue(other.topOverlayHeight) &&
|
|
75
73
|
scrollPositionThresholdsJson.hasSameValue(other.scrollPositionThresholdsJson) &&
|
|
@@ -90,7 +88,6 @@ namespace margelo::nitro::nativelist::views {
|
|
|
90
88
|
return snapshotJson.isProvided() ||
|
|
91
89
|
fontFamiliesJson.isProvided() ||
|
|
92
90
|
containerSlotHeightsJson.isProvided() ||
|
|
93
|
-
sidecarLayoutJson.isProvided() ||
|
|
94
91
|
topScrollEdgeEffect.isProvided() ||
|
|
95
92
|
topOverlayHeight.isProvided() ||
|
|
96
93
|
scrollPositionThresholdsJson.isProvided() ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-list",
|
|
3
|
-
"version": "6.7.0-alpha.
|
|
3
|
+
"version": "6.7.0-alpha.362",
|
|
4
4
|
"description": "Template-driven native RecyclerView and UICollectionView for React Native",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/module/index.js",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"typescript": "^5.9.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@onekeyfe/react-native-image": "6.7.0-alpha.
|
|
90
|
-
"@onekeyfe/react-native-native-logger": "6.7.0-alpha.
|
|
89
|
+
"@onekeyfe/react-native-image": "6.7.0-alpha.362",
|
|
90
|
+
"@onekeyfe/react-native-native-logger": "6.7.0-alpha.362",
|
|
91
91
|
"react": "*",
|
|
92
92
|
"react-native": "*",
|
|
93
93
|
"react-native-nitro-modules": "0.37.0"
|
|
@@ -33,7 +33,6 @@ Pod::Spec.new do |s|
|
|
|
33
33
|
s.dependency "React-callinvoker"
|
|
34
34
|
|
|
35
35
|
s.test_spec "Tests" do |test_spec|
|
|
36
|
-
test_spec.requires_app_host = true
|
|
37
36
|
test_spec.source_files = "ios/tests/**/*.swift"
|
|
38
37
|
test_spec.pod_target_xcconfig = {
|
|
39
38
|
"PRODUCT_MODULE_NAME" => "NativeListModuleTests",
|