@terreno/ui 0.30.0 → 56.0.0-beta.0
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/dist/ActionSheet.d.ts +1 -1
- package/dist/Avatar.js +1 -4
- package/dist/Avatar.js.map +1 -1
- package/dist/Box.js +45 -9
- package/dist/Box.js.map +1 -1
- package/dist/Common.d.ts +21 -0
- package/dist/Common.js.map +1 -1
- package/dist/ConflictSheet.d.ts +53 -0
- package/dist/ConflictSheet.js +132 -0
- package/dist/ConflictSheet.js.map +1 -0
- package/dist/DateTimeActionSheet.d.ts +2 -1
- package/dist/DecimalRangeActionSheet.d.ts +1 -1
- package/dist/EmojiSelector.d.ts +1 -1
- package/dist/ErrorPage.d.ts +1 -1
- package/dist/HeightActionSheet.d.ts +1 -1
- package/dist/Hyperlink.d.ts +2 -1
- package/dist/Hyperlink.js +2 -1
- package/dist/Hyperlink.js.map +1 -1
- package/dist/Image.d.ts +1 -1
- package/dist/ImageBackground.d.ts +1 -1
- package/dist/MobileAddressAutoComplete.d.ts +1 -1
- package/dist/NumberPickerActionSheet.d.ts +1 -1
- package/dist/Page.d.ts +3 -3
- package/dist/PickerSelect.d.ts +1 -1
- package/dist/SidebarNavigation.js +1 -1
- package/dist/SidebarNavigation.js.map +1 -1
- package/dist/SidebarNavigation.native.js +1 -1
- package/dist/SidebarNavigation.native.js.map +1 -1
- package/dist/SplitPage.d.ts +1 -1
- package/dist/SplitPage.js +1 -4
- package/dist/SplitPage.js.map +1 -1
- package/dist/SplitPage.native.d.ts +1 -1
- package/dist/SyncStatusBanner.d.ts +46 -0
- package/dist/SyncStatusBanner.js +29 -0
- package/dist/SyncStatusBanner.js.map +1 -0
- package/dist/Theme.d.ts +1 -1
- package/dist/Toast.d.ts +9 -1
- package/dist/Toast.js +20 -7
- package/dist/Toast.js.map +1 -1
- package/dist/ToastNotifications.js +23 -1
- package/dist/ToastNotifications.js.map +1 -1
- package/dist/UnifiedAddressAutoComplete.d.ts +1 -1
- package/dist/Unifier.js +1 -1
- package/dist/Unifier.js.map +1 -1
- package/dist/conflictFieldDiff.d.ts +14 -0
- package/dist/conflictFieldDiff.js +62 -0
- package/dist/conflictFieldDiff.js.map +1 -0
- package/dist/icons/OfflineIcon.d.ts +1 -1
- package/dist/icons/OnlineIcon.d.ts +1 -1
- package/dist/icons/OutOfficeIcon.d.ts +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/pdfHtmlTemplate.d.ts +30 -0
- package/dist/pdfHtmlTemplate.js +170 -0
- package/dist/pdfHtmlTemplate.js.map +1 -0
- package/dist/table/TableTitle.js +1 -3
- package/dist/table/TableTitle.js.map +1 -1
- package/dist/useAppLaunchOrForeground.d.ts +9 -0
- package/dist/useAppLaunchOrForeground.js +27 -0
- package/dist/useAppLaunchOrForeground.js.map +1 -0
- package/package.json +44 -37
- package/src/Box.test.tsx +39 -9
- package/src/Box.tsx +46 -7
- package/src/Common.ts +21 -3
- package/src/ConflictSheet.test.tsx +461 -0
- package/src/ConflictSheet.tsx +399 -0
- package/src/DataTable.test.tsx +15 -21
- package/src/Hyperlink.tsx +1 -1
- package/src/SidebarNavigation.native.tsx +1 -1
- package/src/SidebarNavigation.tsx +1 -1
- package/src/SyncStatusBanner.test.tsx +204 -0
- package/src/SyncStatusBanner.tsx +148 -0
- package/src/TapToEdit.test.tsx +8 -14
- package/src/TerrenoProvider.test.tsx +3 -4
- package/src/Toast.test.tsx +60 -0
- package/src/Toast.tsx +46 -1
- package/src/ToastNotifications.test.tsx +82 -0
- package/src/ToastNotifications.tsx +25 -1
- package/src/Tooltip.test.tsx +1 -0
- package/src/Unifier.ts +1 -1
- package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +0 -3
- package/src/__snapshots__/Body.test.tsx.snap +0 -16
- package/src/__snapshots__/Box.test.tsx.snap +4 -13
- package/src/__snapshots__/Page.test.tsx.snap +0 -84
- package/src/__snapshots__/SplitPage.test.tsx.snap +24 -120
- package/src/__snapshots__/TapToEdit.test.tsx.snap +5 -16
- package/src/__snapshots__/Toast.test.tsx.snap +4 -2
- package/src/bunSetup.ts +19 -0
- package/src/conflictFieldDiff.test.ts +26 -0
- package/src/conflictFieldDiff.ts +78 -0
- package/src/index.tsx +5 -2
- package/src/login/__snapshots__/LoginScreen.test.tsx.snap +0 -9
- package/src/pdfHtmlTemplate.ts +219 -0
- package/src/signUp/__snapshots__/OAuthButtons.test.tsx.snap +0 -1
- package/src/signUp/__snapshots__/PasswordRequirements.test.tsx.snap +2 -16
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +1 -17
- package/src/signUp/__snapshots__/Swiper.test.tsx.snap +0 -1
- package/src/table/__snapshots__/Table.test.tsx.snap +22 -87
- package/src/table/__snapshots__/TableHeader.test.tsx.snap +10 -50
- package/src/table/__snapshots__/TableHeaderCell.test.tsx.snap +10 -84
- package/src/table/__snapshots__/TableRow.test.tsx.snap +12 -77
- package/src/useAppLaunchOrForeground.test.tsx +54 -0
- package/src/useAppLaunchOrForeground.ts +30 -0
- package/dist/ConsentHistory.d.ts +0 -9
- package/dist/ConsentHistory.js +0 -70
- package/dist/ConsentHistory.js.map +0 -1
- package/dist/generateConsentHistoryPdf.d.ts +0 -2
- package/dist/generateConsentHistoryPdf.js +0 -185
- package/dist/generateConsentHistoryPdf.js.map +0 -1
- package/dist/useConsentHistory.d.ts +0 -63
- package/dist/useConsentHistory.js +0 -40
- package/dist/useConsentHistory.js.map +0 -1
- package/src/ConsentHistory.test.tsx +0 -161
- package/src/ConsentHistory.tsx +0 -249
- package/src/generateConsentHistoryPdf.ts +0 -211
- package/src/useConsentHistory.test.ts +0 -106
- package/src/useConsentHistory.ts +0 -94
|
@@ -37,10 +37,7 @@ exports[`SplitPage renders correctly with renderContent 1`] = `
|
|
|
37
37
|
"onPointerEnter": [Function: AsyncFunction],
|
|
38
38
|
"onPointerLeave": [Function: AsyncFunction],
|
|
39
39
|
"onPress": [Function: AsyncFunction],
|
|
40
|
-
"style": {
|
|
41
|
-
"accessibilityHint": "",
|
|
42
|
-
"accessibilityLabel": "Select",
|
|
43
|
-
},
|
|
40
|
+
"style": {},
|
|
44
41
|
"testID": undefined,
|
|
45
42
|
},
|
|
46
43
|
"type": "Pressable",
|
|
@@ -66,10 +63,7 @@ exports[`SplitPage renders correctly with renderContent 1`] = `
|
|
|
66
63
|
"onPointerEnter": [Function: AsyncFunction],
|
|
67
64
|
"onPointerLeave": [Function: AsyncFunction],
|
|
68
65
|
"onPress": [Function: AsyncFunction],
|
|
69
|
-
"style": {
|
|
70
|
-
"accessibilityHint": "",
|
|
71
|
-
"accessibilityLabel": "Select",
|
|
72
|
-
},
|
|
66
|
+
"style": {},
|
|
73
67
|
"testID": undefined,
|
|
74
68
|
},
|
|
75
69
|
"type": "Pressable",
|
|
@@ -125,13 +119,11 @@ exports[`SplitPage renders correctly with renderContent 1`] = `
|
|
|
125
119
|
"onPointerEnter": [Function: AsyncFunction],
|
|
126
120
|
"onPointerLeave": [Function: AsyncFunction],
|
|
127
121
|
"style": {
|
|
128
|
-
"avoidKeyboard": true,
|
|
129
122
|
"backgroundColor": "#D9D9D9",
|
|
130
123
|
"display": "flex",
|
|
131
124
|
"flex": undefined,
|
|
132
125
|
"flexDirection": "row",
|
|
133
126
|
"height": "100%",
|
|
134
|
-
"keyboardOffset": undefined,
|
|
135
127
|
"padding": 8,
|
|
136
128
|
"width": "100%",
|
|
137
129
|
},
|
|
@@ -198,10 +190,7 @@ exports[`SplitPage renders correctly with children 1`] = `
|
|
|
198
190
|
"onPointerEnter": [Function: AsyncFunction],
|
|
199
191
|
"onPointerLeave": [Function: AsyncFunction],
|
|
200
192
|
"onPress": [Function: AsyncFunction],
|
|
201
|
-
"style": {
|
|
202
|
-
"accessibilityHint": "",
|
|
203
|
-
"accessibilityLabel": "Select",
|
|
204
|
-
},
|
|
193
|
+
"style": {},
|
|
205
194
|
"testID": undefined,
|
|
206
195
|
},
|
|
207
196
|
"type": "Pressable",
|
|
@@ -227,10 +216,7 @@ exports[`SplitPage renders correctly with children 1`] = `
|
|
|
227
216
|
"onPointerEnter": [Function: AsyncFunction],
|
|
228
217
|
"onPointerLeave": [Function: AsyncFunction],
|
|
229
218
|
"onPress": [Function: AsyncFunction],
|
|
230
|
-
"style": {
|
|
231
|
-
"accessibilityHint": "",
|
|
232
|
-
"accessibilityLabel": "Select",
|
|
233
|
-
},
|
|
219
|
+
"style": {},
|
|
234
220
|
"testID": undefined,
|
|
235
221
|
},
|
|
236
222
|
"type": "Pressable",
|
|
@@ -331,13 +317,11 @@ exports[`SplitPage renders correctly with children 1`] = `
|
|
|
331
317
|
"onPointerEnter": [Function: AsyncFunction],
|
|
332
318
|
"onPointerLeave": [Function: AsyncFunction],
|
|
333
319
|
"style": {
|
|
334
|
-
"avoidKeyboard": true,
|
|
335
320
|
"backgroundColor": "#D9D9D9",
|
|
336
321
|
"display": "flex",
|
|
337
322
|
"flex": undefined,
|
|
338
323
|
"flexDirection": "row",
|
|
339
324
|
"height": "100%",
|
|
340
|
-
"keyboardOffset": undefined,
|
|
341
325
|
"padding": 8,
|
|
342
326
|
"width": "100%",
|
|
343
327
|
},
|
|
@@ -404,10 +388,7 @@ exports[`SplitPage renders with loading state 1`] = `
|
|
|
404
388
|
"onPointerEnter": [Function: AsyncFunction],
|
|
405
389
|
"onPointerLeave": [Function: AsyncFunction],
|
|
406
390
|
"onPress": [Function: AsyncFunction],
|
|
407
|
-
"style": {
|
|
408
|
-
"accessibilityHint": "",
|
|
409
|
-
"accessibilityLabel": "Select",
|
|
410
|
-
},
|
|
391
|
+
"style": {},
|
|
411
392
|
"testID": undefined,
|
|
412
393
|
},
|
|
413
394
|
"type": "Pressable",
|
|
@@ -433,10 +414,7 @@ exports[`SplitPage renders with loading state 1`] = `
|
|
|
433
414
|
"onPointerEnter": [Function: AsyncFunction],
|
|
434
415
|
"onPointerLeave": [Function: AsyncFunction],
|
|
435
416
|
"onPress": [Function: AsyncFunction],
|
|
436
|
-
"style": {
|
|
437
|
-
"accessibilityHint": "",
|
|
438
|
-
"accessibilityLabel": "Select",
|
|
439
|
-
},
|
|
417
|
+
"style": {},
|
|
440
418
|
"testID": undefined,
|
|
441
419
|
},
|
|
442
420
|
"type": "Pressable",
|
|
@@ -492,13 +470,11 @@ exports[`SplitPage renders with loading state 1`] = `
|
|
|
492
470
|
"onPointerEnter": [Function: AsyncFunction],
|
|
493
471
|
"onPointerLeave": [Function: AsyncFunction],
|
|
494
472
|
"style": {
|
|
495
|
-
"avoidKeyboard": true,
|
|
496
473
|
"backgroundColor": "#D9D9D9",
|
|
497
474
|
"display": "flex",
|
|
498
475
|
"flex": undefined,
|
|
499
476
|
"flexDirection": "row",
|
|
500
477
|
"height": "100%",
|
|
501
|
-
"keyboardOffset": undefined,
|
|
502
478
|
"padding": 8,
|
|
503
479
|
"width": "100%",
|
|
504
480
|
},
|
|
@@ -565,10 +541,7 @@ exports[`SplitPage renders with custom color 1`] = `
|
|
|
565
541
|
"onPointerEnter": [Function: AsyncFunction],
|
|
566
542
|
"onPointerLeave": [Function: AsyncFunction],
|
|
567
543
|
"onPress": [Function: AsyncFunction],
|
|
568
|
-
"style": {
|
|
569
|
-
"accessibilityHint": "",
|
|
570
|
-
"accessibilityLabel": "Select",
|
|
571
|
-
},
|
|
544
|
+
"style": {},
|
|
572
545
|
"testID": undefined,
|
|
573
546
|
},
|
|
574
547
|
"type": "Pressable",
|
|
@@ -594,10 +567,7 @@ exports[`SplitPage renders with custom color 1`] = `
|
|
|
594
567
|
"onPointerEnter": [Function: AsyncFunction],
|
|
595
568
|
"onPointerLeave": [Function: AsyncFunction],
|
|
596
569
|
"onPress": [Function: AsyncFunction],
|
|
597
|
-
"style": {
|
|
598
|
-
"accessibilityHint": "",
|
|
599
|
-
"accessibilityLabel": "Select",
|
|
600
|
-
},
|
|
570
|
+
"style": {},
|
|
601
571
|
"testID": undefined,
|
|
602
572
|
},
|
|
603
573
|
"type": "Pressable",
|
|
@@ -653,13 +623,11 @@ exports[`SplitPage renders with custom color 1`] = `
|
|
|
653
623
|
"onPointerEnter": [Function: AsyncFunction],
|
|
654
624
|
"onPointerLeave": [Function: AsyncFunction],
|
|
655
625
|
"style": {
|
|
656
|
-
"avoidKeyboard": true,
|
|
657
626
|
"backgroundColor": "#0E9DCD",
|
|
658
627
|
"display": "flex",
|
|
659
628
|
"flex": undefined,
|
|
660
629
|
"flexDirection": "row",
|
|
661
630
|
"height": "100%",
|
|
662
|
-
"keyboardOffset": undefined,
|
|
663
631
|
"padding": 8,
|
|
664
632
|
"width": "100%",
|
|
665
633
|
},
|
|
@@ -726,10 +694,7 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
726
694
|
"onPointerEnter": [Function: AsyncFunction],
|
|
727
695
|
"onPointerLeave": [Function: AsyncFunction],
|
|
728
696
|
"onPress": [Function: AsyncFunction],
|
|
729
|
-
"style": {
|
|
730
|
-
"accessibilityHint": "",
|
|
731
|
-
"accessibilityLabel": "Select",
|
|
732
|
-
},
|
|
697
|
+
"style": {},
|
|
733
698
|
"testID": undefined,
|
|
734
699
|
},
|
|
735
700
|
"type": "Pressable",
|
|
@@ -755,10 +720,7 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
755
720
|
"onPointerEnter": [Function: AsyncFunction],
|
|
756
721
|
"onPointerLeave": [Function: AsyncFunction],
|
|
757
722
|
"onPress": [Function: AsyncFunction],
|
|
758
|
-
"style": {
|
|
759
|
-
"accessibilityHint": "",
|
|
760
|
-
"accessibilityLabel": "Select",
|
|
761
|
-
},
|
|
723
|
+
"style": {},
|
|
762
724
|
"testID": undefined,
|
|
763
725
|
},
|
|
764
726
|
"type": "Pressable",
|
|
@@ -1068,13 +1030,11 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
1068
1030
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1069
1031
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1070
1032
|
"style": {
|
|
1071
|
-
"avoidKeyboard": true,
|
|
1072
1033
|
"backgroundColor": "#D9D9D9",
|
|
1073
1034
|
"display": "flex",
|
|
1074
1035
|
"flex": undefined,
|
|
1075
1036
|
"flexDirection": "row",
|
|
1076
1037
|
"height": "100%",
|
|
1077
|
-
"keyboardOffset": undefined,
|
|
1078
1038
|
"padding": 8,
|
|
1079
1039
|
"width": "100%",
|
|
1080
1040
|
},
|
|
@@ -1150,10 +1110,7 @@ exports[`SplitPage renders with list view header 1`] = `
|
|
|
1150
1110
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1151
1111
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1152
1112
|
"onPress": [Function: AsyncFunction],
|
|
1153
|
-
"style": {
|
|
1154
|
-
"accessibilityHint": "",
|
|
1155
|
-
"accessibilityLabel": "Select",
|
|
1156
|
-
},
|
|
1113
|
+
"style": {},
|
|
1157
1114
|
"testID": undefined,
|
|
1158
1115
|
},
|
|
1159
1116
|
"type": "Pressable",
|
|
@@ -1179,10 +1136,7 @@ exports[`SplitPage renders with list view header 1`] = `
|
|
|
1179
1136
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1180
1137
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1181
1138
|
"onPress": [Function: AsyncFunction],
|
|
1182
|
-
"style": {
|
|
1183
|
-
"accessibilityHint": "",
|
|
1184
|
-
"accessibilityLabel": "Select",
|
|
1185
|
-
},
|
|
1139
|
+
"style": {},
|
|
1186
1140
|
"testID": undefined,
|
|
1187
1141
|
},
|
|
1188
1142
|
"type": "Pressable",
|
|
@@ -1238,13 +1192,11 @@ exports[`SplitPage renders with list view header 1`] = `
|
|
|
1238
1192
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1239
1193
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1240
1194
|
"style": {
|
|
1241
|
-
"avoidKeyboard": true,
|
|
1242
1195
|
"backgroundColor": "#D9D9D9",
|
|
1243
1196
|
"display": "flex",
|
|
1244
1197
|
"flex": undefined,
|
|
1245
1198
|
"flexDirection": "row",
|
|
1246
1199
|
"height": "100%",
|
|
1247
|
-
"keyboardOffset": undefined,
|
|
1248
1200
|
"padding": 8,
|
|
1249
1201
|
"width": "100%",
|
|
1250
1202
|
},
|
|
@@ -1311,10 +1263,7 @@ exports[`SplitPage renders with custom list view width and max width 1`] = `
|
|
|
1311
1263
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1312
1264
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1313
1265
|
"onPress": [Function: AsyncFunction],
|
|
1314
|
-
"style": {
|
|
1315
|
-
"accessibilityHint": "",
|
|
1316
|
-
"accessibilityLabel": "Select",
|
|
1317
|
-
},
|
|
1266
|
+
"style": {},
|
|
1318
1267
|
"testID": undefined,
|
|
1319
1268
|
},
|
|
1320
1269
|
"type": "Pressable",
|
|
@@ -1340,10 +1289,7 @@ exports[`SplitPage renders with custom list view width and max width 1`] = `
|
|
|
1340
1289
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1341
1290
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1342
1291
|
"onPress": [Function: AsyncFunction],
|
|
1343
|
-
"style": {
|
|
1344
|
-
"accessibilityHint": "",
|
|
1345
|
-
"accessibilityLabel": "Select",
|
|
1346
|
-
},
|
|
1292
|
+
"style": {},
|
|
1347
1293
|
"testID": undefined,
|
|
1348
1294
|
},
|
|
1349
1295
|
"type": "Pressable",
|
|
@@ -1399,13 +1345,11 @@ exports[`SplitPage renders with custom list view width and max width 1`] = `
|
|
|
1399
1345
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1400
1346
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1401
1347
|
"style": {
|
|
1402
|
-
"avoidKeyboard": true,
|
|
1403
1348
|
"backgroundColor": "#D9D9D9",
|
|
1404
1349
|
"display": "flex",
|
|
1405
1350
|
"flex": undefined,
|
|
1406
1351
|
"flexDirection": "row",
|
|
1407
1352
|
"height": "100%",
|
|
1408
|
-
"keyboardOffset": undefined,
|
|
1409
1353
|
"padding": 8,
|
|
1410
1354
|
"width": "100%",
|
|
1411
1355
|
},
|
|
@@ -1472,10 +1416,7 @@ exports[`SplitPage renders with listViewExtraData 1`] = `
|
|
|
1472
1416
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1473
1417
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1474
1418
|
"onPress": [Function: AsyncFunction],
|
|
1475
|
-
"style": {
|
|
1476
|
-
"accessibilityHint": "",
|
|
1477
|
-
"accessibilityLabel": "Select",
|
|
1478
|
-
},
|
|
1419
|
+
"style": {},
|
|
1479
1420
|
"testID": undefined,
|
|
1480
1421
|
},
|
|
1481
1422
|
"type": "Pressable",
|
|
@@ -1501,10 +1442,7 @@ exports[`SplitPage renders with listViewExtraData 1`] = `
|
|
|
1501
1442
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1502
1443
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1503
1444
|
"onPress": [Function: AsyncFunction],
|
|
1504
|
-
"style": {
|
|
1505
|
-
"accessibilityHint": "",
|
|
1506
|
-
"accessibilityLabel": "Select",
|
|
1507
|
-
},
|
|
1445
|
+
"style": {},
|
|
1508
1446
|
"testID": undefined,
|
|
1509
1447
|
},
|
|
1510
1448
|
"type": "Pressable",
|
|
@@ -1562,13 +1500,11 @@ exports[`SplitPage renders with listViewExtraData 1`] = `
|
|
|
1562
1500
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1563
1501
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1564
1502
|
"style": {
|
|
1565
|
-
"avoidKeyboard": true,
|
|
1566
1503
|
"backgroundColor": "#D9D9D9",
|
|
1567
1504
|
"display": "flex",
|
|
1568
1505
|
"flex": undefined,
|
|
1569
1506
|
"flexDirection": "row",
|
|
1570
1507
|
"height": "100%",
|
|
1571
|
-
"keyboardOffset": undefined,
|
|
1572
1508
|
"padding": 8,
|
|
1573
1509
|
"width": "100%",
|
|
1574
1510
|
},
|
|
@@ -1635,10 +1571,7 @@ exports[`SplitPage renders with keyboard offset 1`] = `
|
|
|
1635
1571
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1636
1572
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1637
1573
|
"onPress": [Function: AsyncFunction],
|
|
1638
|
-
"style": {
|
|
1639
|
-
"accessibilityHint": "",
|
|
1640
|
-
"accessibilityLabel": "Select",
|
|
1641
|
-
},
|
|
1574
|
+
"style": {},
|
|
1642
1575
|
"testID": undefined,
|
|
1643
1576
|
},
|
|
1644
1577
|
"type": "Pressable",
|
|
@@ -1664,10 +1597,7 @@ exports[`SplitPage renders with keyboard offset 1`] = `
|
|
|
1664
1597
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1665
1598
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1666
1599
|
"onPress": [Function: AsyncFunction],
|
|
1667
|
-
"style": {
|
|
1668
|
-
"accessibilityHint": "",
|
|
1669
|
-
"accessibilityLabel": "Select",
|
|
1670
|
-
},
|
|
1600
|
+
"style": {},
|
|
1671
1601
|
"testID": undefined,
|
|
1672
1602
|
},
|
|
1673
1603
|
"type": "Pressable",
|
|
@@ -1723,13 +1653,11 @@ exports[`SplitPage renders with keyboard offset 1`] = `
|
|
|
1723
1653
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1724
1654
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1725
1655
|
"style": {
|
|
1726
|
-
"avoidKeyboard": true,
|
|
1727
1656
|
"backgroundColor": "#D9D9D9",
|
|
1728
1657
|
"display": "flex",
|
|
1729
1658
|
"flex": undefined,
|
|
1730
1659
|
"flexDirection": "row",
|
|
1731
1660
|
"height": "100%",
|
|
1732
|
-
"keyboardOffset": 100,
|
|
1733
1661
|
"padding": 8,
|
|
1734
1662
|
"width": "100%",
|
|
1735
1663
|
},
|
|
@@ -1796,10 +1724,7 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1796
1724
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1797
1725
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1798
1726
|
"onPress": [Function: AsyncFunction],
|
|
1799
|
-
"style": {
|
|
1800
|
-
"accessibilityHint": "",
|
|
1801
|
-
"accessibilityLabel": "Select",
|
|
1802
|
-
},
|
|
1727
|
+
"style": {},
|
|
1803
1728
|
"testID": undefined,
|
|
1804
1729
|
},
|
|
1805
1730
|
"type": "Pressable",
|
|
@@ -1825,10 +1750,7 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1825
1750
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1826
1751
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1827
1752
|
"onPress": [Function: AsyncFunction],
|
|
1828
|
-
"style": {
|
|
1829
|
-
"accessibilityHint": "",
|
|
1830
|
-
"accessibilityLabel": "Select",
|
|
1831
|
-
},
|
|
1753
|
+
"style": {},
|
|
1832
1754
|
"testID": undefined,
|
|
1833
1755
|
},
|
|
1834
1756
|
"type": "Pressable",
|
|
@@ -1929,13 +1851,11 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1929
1851
|
"onPointerEnter": [Function: AsyncFunction],
|
|
1930
1852
|
"onPointerLeave": [Function: AsyncFunction],
|
|
1931
1853
|
"style": {
|
|
1932
|
-
"avoidKeyboard": true,
|
|
1933
1854
|
"backgroundColor": "#D9D9D9",
|
|
1934
1855
|
"display": "flex",
|
|
1935
1856
|
"flex": undefined,
|
|
1936
1857
|
"flexDirection": "row",
|
|
1937
1858
|
"height": "100%",
|
|
1938
|
-
"keyboardOffset": undefined,
|
|
1939
1859
|
"padding": 8,
|
|
1940
1860
|
"width": "100%",
|
|
1941
1861
|
},
|
|
@@ -2002,10 +1922,7 @@ exports[`SplitPage renders with showItemList true to reset selection 1`] = `
|
|
|
2002
1922
|
"onPointerEnter": [Function: AsyncFunction],
|
|
2003
1923
|
"onPointerLeave": [Function: AsyncFunction],
|
|
2004
1924
|
"onPress": [Function: AsyncFunction],
|
|
2005
|
-
"style": {
|
|
2006
|
-
"accessibilityHint": "",
|
|
2007
|
-
"accessibilityLabel": "Select",
|
|
2008
|
-
},
|
|
1925
|
+
"style": {},
|
|
2009
1926
|
"testID": undefined,
|
|
2010
1927
|
},
|
|
2011
1928
|
"type": "Pressable",
|
|
@@ -2031,10 +1948,7 @@ exports[`SplitPage renders with showItemList true to reset selection 1`] = `
|
|
|
2031
1948
|
"onPointerEnter": [Function: AsyncFunction],
|
|
2032
1949
|
"onPointerLeave": [Function: AsyncFunction],
|
|
2033
1950
|
"onPress": [Function: AsyncFunction],
|
|
2034
|
-
"style": {
|
|
2035
|
-
"accessibilityHint": "",
|
|
2036
|
-
"accessibilityLabel": "Select",
|
|
2037
|
-
},
|
|
1951
|
+
"style": {},
|
|
2038
1952
|
"testID": undefined,
|
|
2039
1953
|
},
|
|
2040
1954
|
"type": "Pressable",
|
|
@@ -2090,13 +2004,11 @@ exports[`SplitPage renders with showItemList true to reset selection 1`] = `
|
|
|
2090
2004
|
"onPointerEnter": [Function: AsyncFunction],
|
|
2091
2005
|
"onPointerLeave": [Function: AsyncFunction],
|
|
2092
2006
|
"style": {
|
|
2093
|
-
"avoidKeyboard": true,
|
|
2094
2007
|
"backgroundColor": "#D9D9D9",
|
|
2095
2008
|
"display": "flex",
|
|
2096
2009
|
"flex": undefined,
|
|
2097
2010
|
"flexDirection": "row",
|
|
2098
2011
|
"height": "100%",
|
|
2099
|
-
"keyboardOffset": undefined,
|
|
2100
2012
|
"padding": 8,
|
|
2101
2013
|
"width": "100%",
|
|
2102
2014
|
},
|
|
@@ -2163,10 +2075,7 @@ exports[`SplitPage renders with bottomNavBarHeight 1`] = `
|
|
|
2163
2075
|
"onPointerEnter": [Function: AsyncFunction],
|
|
2164
2076
|
"onPointerLeave": [Function: AsyncFunction],
|
|
2165
2077
|
"onPress": [Function: AsyncFunction],
|
|
2166
|
-
"style": {
|
|
2167
|
-
"accessibilityHint": "",
|
|
2168
|
-
"accessibilityLabel": "Select",
|
|
2169
|
-
},
|
|
2078
|
+
"style": {},
|
|
2170
2079
|
"testID": undefined,
|
|
2171
2080
|
},
|
|
2172
2081
|
"type": "Pressable",
|
|
@@ -2192,10 +2101,7 @@ exports[`SplitPage renders with bottomNavBarHeight 1`] = `
|
|
|
2192
2101
|
"onPointerEnter": [Function: AsyncFunction],
|
|
2193
2102
|
"onPointerLeave": [Function: AsyncFunction],
|
|
2194
2103
|
"onPress": [Function: AsyncFunction],
|
|
2195
|
-
"style": {
|
|
2196
|
-
"accessibilityHint": "",
|
|
2197
|
-
"accessibilityLabel": "Select",
|
|
2198
|
-
},
|
|
2104
|
+
"style": {},
|
|
2199
2105
|
"testID": undefined,
|
|
2200
2106
|
},
|
|
2201
2107
|
"type": "Pressable",
|
|
@@ -2271,13 +2177,11 @@ exports[`SplitPage renders with bottomNavBarHeight 1`] = `
|
|
|
2271
2177
|
"onPointerEnter": [Function: AsyncFunction],
|
|
2272
2178
|
"onPointerLeave": [Function: AsyncFunction],
|
|
2273
2179
|
"style": {
|
|
2274
|
-
"avoidKeyboard": true,
|
|
2275
2180
|
"backgroundColor": "#D9D9D9",
|
|
2276
2181
|
"display": "flex",
|
|
2277
2182
|
"flex": undefined,
|
|
2278
2183
|
"flexDirection": "row",
|
|
2279
2184
|
"height": "100%",
|
|
2280
|
-
"keyboardOffset": undefined,
|
|
2281
2185
|
"padding": 8,
|
|
2282
2186
|
"width": "100%",
|
|
2283
2187
|
},
|
|
@@ -71,11 +71,10 @@ exports[`TapToEdit renders correctly with text value 1`] = `
|
|
|
71
71
|
},
|
|
72
72
|
],
|
|
73
73
|
"props": {
|
|
74
|
+
"accessibilityLabel": "Link",
|
|
74
75
|
"onPointerEnter": [Function: AsyncFunction],
|
|
75
76
|
"onPointerLeave": [Function: AsyncFunction],
|
|
76
77
|
"style": {
|
|
77
|
-
"accessibilityHint": "",
|
|
78
|
-
"accessibilityLabel": "Link",
|
|
79
78
|
"justifyContent": "flex-start",
|
|
80
79
|
},
|
|
81
80
|
"testID": undefined,
|
|
@@ -94,8 +93,6 @@ exports[`TapToEdit renders correctly with text value 1`] = `
|
|
|
94
93
|
"onPointerLeave": [Function: AsyncFunction],
|
|
95
94
|
"onPress": [Function: AsyncFunction],
|
|
96
95
|
"style": {
|
|
97
|
-
"accessibilityHint": "",
|
|
98
|
-
"accessibilityLabel": "Edit",
|
|
99
96
|
"marginLeft": 8,
|
|
100
97
|
"width": 16,
|
|
101
98
|
},
|
|
@@ -210,11 +207,10 @@ exports[`TapToEdit renders non-editable when editable is false 1`] = `
|
|
|
210
207
|
},
|
|
211
208
|
],
|
|
212
209
|
"props": {
|
|
210
|
+
"accessibilityLabel": "Link",
|
|
213
211
|
"onPointerEnter": [Function: AsyncFunction],
|
|
214
212
|
"onPointerLeave": [Function: AsyncFunction],
|
|
215
213
|
"style": {
|
|
216
|
-
"accessibilityHint": "",
|
|
217
|
-
"accessibilityLabel": "Link",
|
|
218
214
|
"justifyContent": "flex-start",
|
|
219
215
|
},
|
|
220
216
|
"testID": undefined,
|
|
@@ -328,11 +324,10 @@ exports[`TapToEdit renders edit icon when editable 1`] = `
|
|
|
328
324
|
},
|
|
329
325
|
],
|
|
330
326
|
"props": {
|
|
327
|
+
"accessibilityLabel": "Link",
|
|
331
328
|
"onPointerEnter": [Function: AsyncFunction],
|
|
332
329
|
"onPointerLeave": [Function: AsyncFunction],
|
|
333
330
|
"style": {
|
|
334
|
-
"accessibilityHint": "",
|
|
335
|
-
"accessibilityLabel": "Link",
|
|
336
331
|
"justifyContent": "flex-start",
|
|
337
332
|
},
|
|
338
333
|
"testID": undefined,
|
|
@@ -351,8 +346,6 @@ exports[`TapToEdit renders edit icon when editable 1`] = `
|
|
|
351
346
|
"onPointerLeave": [Function: AsyncFunction],
|
|
352
347
|
"onPress": [Function: AsyncFunction],
|
|
353
348
|
"style": {
|
|
354
|
-
"accessibilityHint": "",
|
|
355
|
-
"accessibilityLabel": "Edit",
|
|
356
349
|
"marginLeft": 8,
|
|
357
350
|
"width": 16,
|
|
358
351
|
},
|
|
@@ -646,11 +639,10 @@ exports[`TapToEdit displays helper text when provided 1`] = `
|
|
|
646
639
|
},
|
|
647
640
|
],
|
|
648
641
|
"props": {
|
|
642
|
+
"accessibilityLabel": "Link",
|
|
649
643
|
"onPointerEnter": [Function: AsyncFunction],
|
|
650
644
|
"onPointerLeave": [Function: AsyncFunction],
|
|
651
645
|
"style": {
|
|
652
|
-
"accessibilityHint": "",
|
|
653
|
-
"accessibilityLabel": "Link",
|
|
654
646
|
"justifyContent": "flex-start",
|
|
655
647
|
},
|
|
656
648
|
"testID": undefined,
|
|
@@ -669,8 +661,6 @@ exports[`TapToEdit displays helper text when provided 1`] = `
|
|
|
669
661
|
"onPointerLeave": [Function: AsyncFunction],
|
|
670
662
|
"onPress": [Function: AsyncFunction],
|
|
671
663
|
"style": {
|
|
672
|
-
"accessibilityHint": "",
|
|
673
|
-
"accessibilityLabel": "Edit",
|
|
674
664
|
"marginLeft": 8,
|
|
675
665
|
"width": 16,
|
|
676
666
|
},
|
|
@@ -766,11 +756,10 @@ exports[`TapToEdit renders with textarea type 1`] = `
|
|
|
766
756
|
"$$typeof": Symbol(react.test.json),
|
|
767
757
|
"children": null,
|
|
768
758
|
"props": {
|
|
759
|
+
"accessibilityLabel": "Link",
|
|
769
760
|
"onPointerEnter": [Function: AsyncFunction],
|
|
770
761
|
"onPointerLeave": [Function: AsyncFunction],
|
|
771
762
|
"style": {
|
|
772
|
-
"accessibilityHint": "",
|
|
773
|
-
"accessibilityLabel": "Link",
|
|
774
763
|
"justifyContent": "flex-start",
|
|
775
764
|
},
|
|
776
765
|
"testID": undefined,
|
|
@@ -1176,7 +1176,8 @@ exports[`Toast renders persistent toast with dismiss button 1`] = `
|
|
|
1176
1176
|
"$$typeof": Symbol(react.test.json),
|
|
1177
1177
|
"children": null,
|
|
1178
1178
|
"props": {
|
|
1179
|
-
"
|
|
1179
|
+
"accessibilityLabel": "Dismiss notification",
|
|
1180
|
+
"accessibilityRole": "button",
|
|
1180
1181
|
"onPress": [class Function],
|
|
1181
1182
|
"style": {
|
|
1182
1183
|
"alignItems": "center",
|
|
@@ -1327,7 +1328,8 @@ exports[`Toast renders dismiss button when persistent with onDismiss 1`] = `
|
|
|
1327
1328
|
"$$typeof": Symbol(react.test.json),
|
|
1328
1329
|
"children": null,
|
|
1329
1330
|
"props": {
|
|
1330
|
-
"
|
|
1331
|
+
"accessibilityLabel": "Dismiss notification",
|
|
1332
|
+
"accessibilityRole": "button",
|
|
1331
1333
|
"onPress": [class Function],
|
|
1332
1334
|
"style": {
|
|
1333
1335
|
"alignItems": "center",
|
package/src/bunSetup.ts
CHANGED
|
@@ -20,6 +20,19 @@ type EasingFn = (t: number) => number;
|
|
|
20
20
|
type MockColor = string | number | null | undefined;
|
|
21
21
|
type MockAssetSource = {height?: number; uri?: string; width?: number} | null | undefined;
|
|
22
22
|
|
|
23
|
+
// Expo SDK 56 vendors react-navigation's elements into expo-router, and those modules import
|
|
24
|
+
// PNG icon assets directly. Metro resolves images to asset descriptors, but the bun test runner
|
|
25
|
+
// tries to parse them as source, so serve a Metro-shaped descriptor instead.
|
|
26
|
+
Bun.plugin({
|
|
27
|
+
name: "image-asset-stub",
|
|
28
|
+
setup(build) {
|
|
29
|
+
build.onLoad({filter: /\.(png|jpe?g|gif|webp|svg|ttf|otf)$/}, () => ({
|
|
30
|
+
exports: {default: {height: 1, uri: "test-asset", width: 1}},
|
|
31
|
+
loader: "object",
|
|
32
|
+
}));
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
|
|
23
36
|
// Set environment variables
|
|
24
37
|
process.env.TZ = "America/New_York";
|
|
25
38
|
process.env.EXPO_OS = "ios";
|
|
@@ -227,6 +240,10 @@ mock.module("react-native", () => {
|
|
|
227
240
|
addChangeListener: mock(() => ({remove: mock(() => {})})),
|
|
228
241
|
getColorScheme: mock(() => "light"),
|
|
229
242
|
};
|
|
243
|
+
const AppState = {
|
|
244
|
+
addEventListener: mock(() => ({remove: mock(() => {})})),
|
|
245
|
+
currentState: "active",
|
|
246
|
+
};
|
|
230
247
|
const Vibration = {
|
|
231
248
|
cancel: mock(() => {}),
|
|
232
249
|
vibrate: mock(() => {}),
|
|
@@ -359,6 +376,7 @@ mock.module("react-native", () => {
|
|
|
359
376
|
Alert,
|
|
360
377
|
Animated,
|
|
361
378
|
Appearance,
|
|
379
|
+
AppState,
|
|
362
380
|
BackHandler,
|
|
363
381
|
Dimensions,
|
|
364
382
|
default: {
|
|
@@ -367,6 +385,7 @@ mock.module("react-native", () => {
|
|
|
367
385
|
Alert,
|
|
368
386
|
Animated,
|
|
369
387
|
Appearance,
|
|
388
|
+
AppState,
|
|
370
389
|
BackHandler,
|
|
371
390
|
Dimensions,
|
|
372
391
|
Easing,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {describe, expect, it} from "bun:test";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
formatConflictFieldLabel,
|
|
5
|
+
formatConflictFieldValue,
|
|
6
|
+
getChangedConflictFields,
|
|
7
|
+
parseConflictPayload,
|
|
8
|
+
} from "./conflictFieldDiff";
|
|
9
|
+
|
|
10
|
+
describe("conflictFieldDiff", () => {
|
|
11
|
+
it("returns only fields that differ between local and server payloads", () => {
|
|
12
|
+
const local = {completed: true, title: "local", unchanged: "same"};
|
|
13
|
+
const server = {completed: false, title: "server", unchanged: "same"};
|
|
14
|
+
expect(getChangedConflictFields({local, server})).toEqual(["completed", "title"]);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it("formats labels and values for display", () => {
|
|
18
|
+
expect(formatConflictFieldLabel("completed")).toBe("Completed");
|
|
19
|
+
expect(formatConflictFieldValue(true)).toBe("true");
|
|
20
|
+
expect(formatConflictFieldValue(undefined)).toBe("Not set");
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it("parses invalid JSON payloads as empty objects", () => {
|
|
24
|
+
expect(parseConflictPayload("not-json")).toEqual({});
|
|
25
|
+
});
|
|
26
|
+
});
|