@pixui-dev/pxw 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/bin/pxw.js +199 -199
  2. package/bin/wpbuild.js +10 -10
  3. package/config/default.conf +20 -20
  4. package/config/devops.js +372 -361
  5. package/config/h5es.js +10 -10
  6. package/config/index.html +183 -181
  7. package/config/pfbs.js +245 -245
  8. package/config/util.js +140 -140
  9. package/config/webpack.js +325 -309
  10. package/lib/assets/check.html +62 -62
  11. package/lib/assets/preact.js +4354 -4354
  12. package/lib/check/main.less +62 -62
  13. package/lib/check/main.tsx +41 -41
  14. package/lib/check/tool.js +3 -3
  15. package/lib/check/util.tsx +110 -110
  16. package/lib/grpc-web/dist/ChunkParser.js +117 -117
  17. package/lib/grpc-web/dist/Code.js +58 -58
  18. package/lib/grpc-web/dist/client.js +299 -299
  19. package/lib/grpc-web/dist/debug.js +16 -16
  20. package/lib/grpc-web/dist/detach.js +7 -7
  21. package/lib/grpc-web/dist/index.js +29 -29
  22. package/lib/grpc-web/dist/invoke.js +32 -32
  23. package/lib/grpc-web/dist/message.js +3 -3
  24. package/lib/grpc-web/dist/metadata.js +5 -5
  25. package/lib/grpc-web/dist/service.js +3 -3
  26. package/lib/grpc-web/dist/transports/Transport.js +15 -15
  27. package/lib/grpc-web/dist/transports/http/fetch.js +117 -117
  28. package/lib/grpc-web/dist/transports/http/http.js +15 -15
  29. package/lib/grpc-web/dist/transports/http/xhr.js +136 -136
  30. package/lib/grpc-web/dist/transports/http/xhrUtil.js +36 -36
  31. package/lib/grpc-web/dist/transports/websocket/websocket.js +95 -95
  32. package/lib/grpc-web/dist/typings/ChunkParser.d.ts +17 -17
  33. package/lib/grpc-web/dist/typings/Code.d.ts +20 -20
  34. package/lib/grpc-web/dist/typings/client.d.ts +25 -25
  35. package/lib/grpc-web/dist/typings/debug.d.ts +1 -1
  36. package/lib/grpc-web/dist/typings/detach.d.ts +1 -1
  37. package/lib/grpc-web/dist/typings/index.d.ts +45 -45
  38. package/lib/grpc-web/dist/typings/invoke.d.ts +20 -20
  39. package/lib/grpc-web/dist/typings/message.d.ts +8 -8
  40. package/lib/grpc-web/dist/typings/metadata.d.ts +2 -2
  41. package/lib/grpc-web/dist/typings/service.d.ts +16 -16
  42. package/lib/grpc-web/dist/typings/transports/Transport.d.ts +22 -22
  43. package/lib/grpc-web/dist/typings/transports/http/fetch.d.ts +6 -6
  44. package/lib/grpc-web/dist/typings/transports/http/http.d.ts +5 -5
  45. package/lib/grpc-web/dist/typings/transports/http/xhr.d.ts +27 -27
  46. package/lib/grpc-web/dist/typings/transports/http/xhrUtil.d.ts +3 -3
  47. package/lib/grpc-web/dist/typings/transports/websocket/websocket.d.ts +2 -2
  48. package/lib/grpc-web/dist/typings/unary.d.ts +23 -23
  49. package/lib/grpc-web/dist/typings/util.d.ts +2 -2
  50. package/lib/grpc-web/dist/unary.js +44 -44
  51. package/lib/grpc-web/dist/util.js +11 -11
  52. package/lib/grpcTransport/PixHttp2Transport.ts +107 -107
  53. package/lib/grpcTransport/PixLuaTransport.ts +82 -82
  54. package/lib/h5es-types/v1.9.2/h5es.d.ts +1698 -1698
  55. package/lib/h5es-types/v3.5.0/h5es.d.ts +1788 -1788
  56. package/lib/pi_component/tinyList/tinyList.js +483 -483
  57. package/lib/pi_component/tinyList/tinyList.tsx +517 -517
  58. package/lib/preact-router.js +395 -395
  59. package/lib/preact.js +4355 -4355
  60. package/lib/preact.tq.js +4385 -4385
  61. package/lib/react-window/src/FixedSizeGrid.js +172 -172
  62. package/lib/react-window/src/FixedSizeList.js +91 -91
  63. package/lib/react-window/src/VariableSizeGrid.js +329 -329
  64. package/lib/react-window/src/VariableSizeList.js +231 -231
  65. package/lib/react-window/src/__tests__/FixedSizeGrid.js +942 -942
  66. package/lib/react-window/src/__tests__/FixedSizeList.js +749 -749
  67. package/lib/react-window/src/__tests__/VariableSizeGrid.js +598 -598
  68. package/lib/react-window/src/__tests__/VariableSizeList.js +345 -345
  69. package/lib/react-window/src/__tests__/__snapshots__/FixedSizeGrid.js.snap +912 -912
  70. package/lib/react-window/src/__tests__/__snapshots__/FixedSizeList.js.snap +568 -568
  71. package/lib/react-window/src/__tests__/__snapshots__/VariableSizeGrid.js.snap +542 -542
  72. package/lib/react-window/src/__tests__/__snapshots__/VariableSizeList.js.snap +331 -331
  73. package/lib/react-window/src/__tests__/areEqual.js +28 -28
  74. package/lib/react-window/src/__tests__/shouldComponentUpdate.js +32 -32
  75. package/lib/react-window/src/areEqual.js +13 -13
  76. package/lib/react-window/src/createGridComponent.js +657 -657
  77. package/lib/react-window/src/createListComponent.js +574 -574
  78. package/lib/react-window/src/domHelpers.js +69 -69
  79. package/lib/react-window/src/index.js +9 -9
  80. package/lib/react-window/src/shallowDiffers.js +17 -17
  81. package/lib/react-window/src/shouldComponentUpdate.js +11 -11
  82. package/lib/react-window/src/test.js.flow +382 -382
  83. package/lib/react-window/src/timer.js +36 -36
  84. package/lib/types/dom.ts +17 -17
  85. package/lib/types/ext.d.ts +81 -81
  86. package/lib/types/{css.d.ts → preact/css.d.ts} +7476 -7476
  87. package/lib/types/{preact.d.ts → preact/index.d.ts} +340 -340
  88. package/lib/types/{internal.d.ts → preact/internal.d.ts} +94 -94
  89. package/lib/types/{jsx.d.ts → preact/jsx.d.ts} +309 -309
  90. package/lib/types/preact-router/index.d.ts +85 -0
  91. package/package.json +113 -113
  92. package/scripts/pack.js +40 -40
  93. package/scripts/postinstall.js +11 -11
  94. package/scripts/run-pxw.js +12 -12
  95. package/tsconfig.json +30 -30
@@ -1,568 +1,568 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`FixedSizeList changing itemSize updates the rendered items 1`] = `
4
- Array [
5
- Array [
6
- Object {
7
- "overscanStartIndex": 0,
8
- "overscanStopIndex": 5,
9
- "visibleStartIndex": 0,
10
- "visibleStopIndex": 3,
11
- },
12
- ],
13
- Array [
14
- Object {
15
- "overscanStartIndex": 0,
16
- "overscanStopIndex": 3,
17
- "visibleStartIndex": 0,
18
- "visibleStopIndex": 1,
19
- },
20
- ],
21
- ]
22
- `;
23
-
24
- exports[`FixedSizeList onScroll scrolling should report partial items correctly in onItemsRendered 1`] = `
25
- Array [
26
- Array [
27
- Object {
28
- "overscanStartIndex": 0,
29
- "overscanStopIndex": 6,
30
- "visibleStartIndex": 0,
31
- "visibleStopIndex": 4,
32
- },
33
- ],
34
- Array [
35
- Object {
36
- "overscanStartIndex": 1,
37
- "overscanStopIndex": 8,
38
- "visibleStartIndex": 2,
39
- "visibleStopIndex": 6,
40
- },
41
- ],
42
- Array [
43
- Object {
44
- "overscanStartIndex": 2,
45
- "overscanStopIndex": 8,
46
- "visibleStartIndex": 3,
47
- "visibleStopIndex": 6,
48
- },
49
- ],
50
- Array [
51
- Object {
52
- "overscanStartIndex": 0,
53
- "overscanStopIndex": 7,
54
- "visibleStartIndex": 2,
55
- "visibleStopIndex": 6,
56
- },
57
- ],
58
- Array [
59
- Object {
60
- "overscanStartIndex": 94,
61
- "overscanStopIndex": 99,
62
- "visibleStartIndex": 95,
63
- "visibleStopIndex": 99,
64
- },
65
- ],
66
- Array [
67
- Object {
68
- "overscanStartIndex": 95,
69
- "overscanStopIndex": 99,
70
- "visibleStartIndex": 96,
71
- "visibleStopIndex": 99,
72
- },
73
- ],
74
- Array [
75
- Object {
76
- "overscanStartIndex": 93,
77
- "overscanStopIndex": 99,
78
- "visibleStartIndex": 95,
79
- "visibleStopIndex": 99,
80
- },
81
- ],
82
- ]
83
- `;
84
-
85
- exports[`FixedSizeList onScroll should call onScroll after mount 1`] = `
86
- Array [
87
- Array [
88
- Object {
89
- "scrollDirection": "forward",
90
- "scrollOffset": 0,
91
- "scrollUpdateWasRequested": false,
92
- },
93
- ],
94
- ]
95
- `;
96
-
97
- exports[`FixedSizeList onScroll should call onScroll when scroll position changes 1`] = `
98
- Array [
99
- Array [
100
- Object {
101
- "scrollDirection": "forward",
102
- "scrollOffset": 0,
103
- "scrollUpdateWasRequested": false,
104
- },
105
- ],
106
- Array [
107
- Object {
108
- "scrollDirection": "forward",
109
- "scrollOffset": 100,
110
- "scrollUpdateWasRequested": true,
111
- },
112
- ],
113
- Array [
114
- Object {
115
- "scrollDirection": "backward",
116
- "scrollOffset": 0,
117
- "scrollUpdateWasRequested": true,
118
- },
119
- ],
120
- ]
121
- `;
122
-
123
- exports[`FixedSizeList overscanCount should accommodate a custom overscan 1`] = `
124
- Array [
125
- Array [
126
- Object {
127
- "overscanStartIndex": 1,
128
- "overscanStopIndex": 10,
129
- "visibleStartIndex": 4,
130
- "visibleStopIndex": 7,
131
- },
132
- ],
133
- ]
134
- `;
135
-
136
- exports[`FixedSizeList overscanCount should not scan past the beginning of the list 1`] = `
137
- Array [
138
- Array [
139
- Object {
140
- "overscanStartIndex": 0,
141
- "overscanStopIndex": 5,
142
- "visibleStartIndex": 0,
143
- "visibleStopIndex": 3,
144
- },
145
- ],
146
- ]
147
- `;
148
-
149
- exports[`FixedSizeList overscanCount should not scan past the end of the list 1`] = `
150
- Array [
151
- Array [
152
- Object {
153
- "overscanStartIndex": 4,
154
- "overscanStopIndex": 9,
155
- "visibleStartIndex": 6,
156
- "visibleStopIndex": 9,
157
- },
158
- ],
159
- ]
160
- `;
161
-
162
- exports[`FixedSizeList overscanCount should overscan in both directions when not scrolling 1`] = `
163
- Array [
164
- Array [
165
- Object {
166
- "overscanStartIndex": 0,
167
- "overscanStopIndex": 7,
168
- "visibleStartIndex": 2,
169
- "visibleStopIndex": 5,
170
- },
171
- ],
172
- ]
173
- `;
174
-
175
- exports[`FixedSizeList overscanCount should overscan in the direction being scrolled 1`] = `
176
- Array [
177
- Array [
178
- Object {
179
- "overscanStartIndex": 0,
180
- "overscanStopIndex": 7,
181
- "visibleStartIndex": 2,
182
- "visibleStopIndex": 5,
183
- },
184
- ],
185
- Array [
186
- Object {
187
- "overscanStartIndex": 3,
188
- "overscanStopIndex": 9,
189
- "visibleStartIndex": 4,
190
- "visibleStopIndex": 7,
191
- },
192
- ],
193
- Array [
194
- Object {
195
- "overscanStartIndex": 0,
196
- "overscanStopIndex": 6,
197
- "visibleStartIndex": 2,
198
- "visibleStopIndex": 5,
199
- },
200
- ],
201
- ]
202
- `;
203
-
204
- exports[`FixedSizeList overscanCount should require a minimum of 1 overscan to support tabbing 1`] = `
205
- Array [
206
- Array [
207
- Object {
208
- "overscanStartIndex": 1,
209
- "overscanStopIndex": 6,
210
- "visibleStartIndex": 2,
211
- "visibleStopIndex": 5,
212
- },
213
- ],
214
- ]
215
- `;
216
-
217
- exports[`FixedSizeList scrollToItem method scroll with align = "auto" should work with partially-visible items 1`] = `
218
- Array [
219
- Array [
220
- Object {
221
- "overscanStartIndex": 0,
222
- "overscanStopIndex": 5,
223
- "visibleStartIndex": 0,
224
- "visibleStopIndex": 3,
225
- },
226
- ],
227
- Array [
228
- Object {
229
- "overscanStartIndex": 5,
230
- "overscanStopIndex": 12,
231
- "visibleStartIndex": 7,
232
- "visibleStopIndex": 10,
233
- },
234
- ],
235
- Array [
236
- Object {
237
- "overscanStartIndex": 94,
238
- "overscanStopIndex": 99,
239
- "visibleStartIndex": 96,
240
- "visibleStopIndex": 99,
241
- },
242
- ],
243
- Array [
244
- Object {
245
- "overscanStartIndex": 0,
246
- "overscanStopIndex": 6,
247
- "visibleStartIndex": 1,
248
- "visibleStopIndex": 4,
249
- },
250
- ],
251
- Array [
252
- Object {
253
- "overscanStartIndex": 0,
254
- "overscanStopIndex": 5,
255
- "visibleStartIndex": 0,
256
- "visibleStopIndex": 3,
257
- },
258
- ],
259
- ]
260
- `;
261
-
262
- exports[`FixedSizeList scrollToItem method scroll with align = "auto" should work with very small lists and partial items 1`] = `
263
- Array [
264
- Array [
265
- Object {
266
- "overscanStartIndex": 0,
267
- "overscanStopIndex": 1,
268
- "visibleStartIndex": 0,
269
- "visibleStopIndex": 1,
270
- },
271
- ],
272
- ]
273
- `;
274
-
275
- exports[`FixedSizeList scrollToItem method should ignore indexes greater than itemCount 1`] = `
276
- Array [
277
- Array [
278
- Object {
279
- "overscanStartIndex": 94,
280
- "overscanStopIndex": 99,
281
- "visibleStartIndex": 96,
282
- "visibleStopIndex": 99,
283
- },
284
- ],
285
- ]
286
- `;
287
-
288
- exports[`FixedSizeList scrollToItem method should ignore indexes less than zero 1`] = `
289
- Array [
290
- Array [
291
- Object {
292
- "overscanStartIndex": 0,
293
- "overscanStopIndex": 5,
294
- "visibleStartIndex": 0,
295
- "visibleStopIndex": 3,
296
- },
297
- ],
298
- ]
299
- `;
300
-
301
- exports[`FixedSizeList scrollToItem method should not set invalid offsets when the list contains few items 1`] = `[Function]`;
302
-
303
- exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "auto" 1`] = `
304
- Array [
305
- Array [
306
- Object {
307
- "overscanStartIndex": 0,
308
- "overscanStopIndex": 5,
309
- "visibleStartIndex": 0,
310
- "visibleStopIndex": 3,
311
- },
312
- ],
313
- Array [
314
- Object {
315
- "overscanStartIndex": 5,
316
- "overscanStopIndex": 12,
317
- "visibleStartIndex": 7,
318
- "visibleStopIndex": 10,
319
- },
320
- ],
321
- Array [
322
- Object {
323
- "overscanStartIndex": 0,
324
- "overscanStopIndex": 7,
325
- "visibleStartIndex": 2,
326
- "visibleStopIndex": 5,
327
- },
328
- ],
329
- ]
330
- `;
331
-
332
- exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "center" 1`] = `
333
- Array [
334
- Array [
335
- Object {
336
- "overscanStartIndex": 0,
337
- "overscanStopIndex": 5,
338
- "visibleStartIndex": 0,
339
- "visibleStopIndex": 3,
340
- },
341
- ],
342
- Array [
343
- Object {
344
- "overscanStartIndex": 6,
345
- "overscanStopIndex": 14,
346
- "visibleStartIndex": 8,
347
- "visibleStopIndex": 12,
348
- },
349
- ],
350
- Array [
351
- Object {
352
- "overscanStartIndex": 5,
353
- "overscanStopIndex": 13,
354
- "visibleStartIndex": 7,
355
- "visibleStopIndex": 11,
356
- },
357
- ],
358
- Array [
359
- Object {
360
- "overscanStartIndex": 0,
361
- "overscanStopIndex": 5,
362
- "visibleStartIndex": 0,
363
- "visibleStopIndex": 3,
364
- },
365
- ],
366
- Array [
367
- Object {
368
- "overscanStartIndex": 94,
369
- "overscanStopIndex": 99,
370
- "visibleStartIndex": 96,
371
- "visibleStopIndex": 99,
372
- },
373
- ],
374
- ]
375
- `;
376
-
377
- exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "end" 1`] = `
378
- Array [
379
- Array [
380
- Object {
381
- "overscanStartIndex": 0,
382
- "overscanStopIndex": 5,
383
- "visibleStartIndex": 0,
384
- "visibleStopIndex": 3,
385
- },
386
- ],
387
- Array [
388
- Object {
389
- "overscanStartIndex": 5,
390
- "overscanStopIndex": 12,
391
- "visibleStartIndex": 7,
392
- "visibleStopIndex": 10,
393
- },
394
- ],
395
- Array [
396
- Object {
397
- "overscanStartIndex": 4,
398
- "overscanStopIndex": 11,
399
- "visibleStartIndex": 6,
400
- "visibleStopIndex": 9,
401
- },
402
- ],
403
- Array [
404
- Object {
405
- "overscanStartIndex": 0,
406
- "overscanStopIndex": 5,
407
- "visibleStartIndex": 0,
408
- "visibleStopIndex": 3,
409
- },
410
- ],
411
- ]
412
- `;
413
-
414
- exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "smart" 1`] = `
415
- Array [
416
- Array [
417
- Object {
418
- "overscanStartIndex": 0,
419
- "overscanStopIndex": 5,
420
- "visibleStartIndex": 0,
421
- "visibleStopIndex": 3,
422
- },
423
- ],
424
- Array [
425
- Object {
426
- "overscanStartIndex": 6,
427
- "overscanStopIndex": 14,
428
- "visibleStartIndex": 8,
429
- "visibleStopIndex": 12,
430
- },
431
- ],
432
- Array [
433
- Object {
434
- "overscanStartIndex": 4,
435
- "overscanStopIndex": 11,
436
- "visibleStartIndex": 6,
437
- "visibleStopIndex": 9,
438
- },
439
- ],
440
- Array [
441
- Object {
442
- "overscanStartIndex": 0,
443
- "overscanStopIndex": 5,
444
- "visibleStartIndex": 0,
445
- "visibleStopIndex": 3,
446
- },
447
- ],
448
- Array [
449
- Object {
450
- "overscanStartIndex": 94,
451
- "overscanStopIndex": 99,
452
- "visibleStartIndex": 96,
453
- "visibleStopIndex": 99,
454
- },
455
- ],
456
- Array [
457
- Object {
458
- "overscanStartIndex": 93,
459
- "overscanStopIndex": 99,
460
- "visibleStartIndex": 95,
461
- "visibleStopIndex": 98,
462
- },
463
- ],
464
- Array [
465
- Object {
466
- "overscanStartIndex": 94,
467
- "overscanStopIndex": 99,
468
- "visibleStartIndex": 96,
469
- "visibleStopIndex": 99,
470
- },
471
- ],
472
- Array [
473
- Object {
474
- "overscanStartIndex": 92,
475
- "overscanStopIndex": 99,
476
- "visibleStartIndex": 94,
477
- "visibleStopIndex": 97,
478
- },
479
- ],
480
- Array [
481
- Object {
482
- "overscanStartIndex": 94,
483
- "overscanStopIndex": 99,
484
- "visibleStartIndex": 96,
485
- "visibleStopIndex": 99,
486
- },
487
- ],
488
- Array [
489
- Object {
490
- "overscanStartIndex": 86,
491
- "overscanStopIndex": 94,
492
- "visibleStartIndex": 88,
493
- "visibleStopIndex": 92,
494
- },
495
- ],
496
- Array [
497
- Object {
498
- "overscanStartIndex": 94,
499
- "overscanStopIndex": 99,
500
- "visibleStartIndex": 96,
501
- "visibleStopIndex": 99,
502
- },
503
- ],
504
- ]
505
- `;
506
-
507
- exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "start" 1`] = `
508
- Array [
509
- Array [
510
- Object {
511
- "overscanStartIndex": 0,
512
- "overscanStopIndex": 5,
513
- "visibleStartIndex": 0,
514
- "visibleStopIndex": 3,
515
- },
516
- ],
517
- Array [
518
- Object {
519
- "overscanStartIndex": 8,
520
- "overscanStopIndex": 15,
521
- "visibleStartIndex": 10,
522
- "visibleStopIndex": 13,
523
- },
524
- ],
525
- Array [
526
- Object {
527
- "overscanStartIndex": 7,
528
- "overscanStopIndex": 14,
529
- "visibleStartIndex": 9,
530
- "visibleStopIndex": 12,
531
- },
532
- ],
533
- Array [
534
- Object {
535
- "overscanStartIndex": 94,
536
- "overscanStopIndex": 99,
537
- "visibleStartIndex": 96,
538
- "visibleStopIndex": 99,
539
- },
540
- ],
541
- ]
542
- `;
543
-
544
- exports[`FixedSizeList should render a list of columns 1`] = `
545
- Array [
546
- Array [
547
- Object {
548
- "overscanStartIndex": 0,
549
- "overscanStopIndex": 3,
550
- "visibleStartIndex": 0,
551
- "visibleStopIndex": 1,
552
- },
553
- ],
554
- ]
555
- `;
556
-
557
- exports[`FixedSizeList should render a list of rows 1`] = `
558
- Array [
559
- Array [
560
- Object {
561
- "overscanStartIndex": 0,
562
- "overscanStopIndex": 5,
563
- "visibleStartIndex": 0,
564
- "visibleStopIndex": 3,
565
- },
566
- ],
567
- ]
568
- `;
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`FixedSizeList changing itemSize updates the rendered items 1`] = `
4
+ Array [
5
+ Array [
6
+ Object {
7
+ "overscanStartIndex": 0,
8
+ "overscanStopIndex": 5,
9
+ "visibleStartIndex": 0,
10
+ "visibleStopIndex": 3,
11
+ },
12
+ ],
13
+ Array [
14
+ Object {
15
+ "overscanStartIndex": 0,
16
+ "overscanStopIndex": 3,
17
+ "visibleStartIndex": 0,
18
+ "visibleStopIndex": 1,
19
+ },
20
+ ],
21
+ ]
22
+ `;
23
+
24
+ exports[`FixedSizeList onScroll scrolling should report partial items correctly in onItemsRendered 1`] = `
25
+ Array [
26
+ Array [
27
+ Object {
28
+ "overscanStartIndex": 0,
29
+ "overscanStopIndex": 6,
30
+ "visibleStartIndex": 0,
31
+ "visibleStopIndex": 4,
32
+ },
33
+ ],
34
+ Array [
35
+ Object {
36
+ "overscanStartIndex": 1,
37
+ "overscanStopIndex": 8,
38
+ "visibleStartIndex": 2,
39
+ "visibleStopIndex": 6,
40
+ },
41
+ ],
42
+ Array [
43
+ Object {
44
+ "overscanStartIndex": 2,
45
+ "overscanStopIndex": 8,
46
+ "visibleStartIndex": 3,
47
+ "visibleStopIndex": 6,
48
+ },
49
+ ],
50
+ Array [
51
+ Object {
52
+ "overscanStartIndex": 0,
53
+ "overscanStopIndex": 7,
54
+ "visibleStartIndex": 2,
55
+ "visibleStopIndex": 6,
56
+ },
57
+ ],
58
+ Array [
59
+ Object {
60
+ "overscanStartIndex": 94,
61
+ "overscanStopIndex": 99,
62
+ "visibleStartIndex": 95,
63
+ "visibleStopIndex": 99,
64
+ },
65
+ ],
66
+ Array [
67
+ Object {
68
+ "overscanStartIndex": 95,
69
+ "overscanStopIndex": 99,
70
+ "visibleStartIndex": 96,
71
+ "visibleStopIndex": 99,
72
+ },
73
+ ],
74
+ Array [
75
+ Object {
76
+ "overscanStartIndex": 93,
77
+ "overscanStopIndex": 99,
78
+ "visibleStartIndex": 95,
79
+ "visibleStopIndex": 99,
80
+ },
81
+ ],
82
+ ]
83
+ `;
84
+
85
+ exports[`FixedSizeList onScroll should call onScroll after mount 1`] = `
86
+ Array [
87
+ Array [
88
+ Object {
89
+ "scrollDirection": "forward",
90
+ "scrollOffset": 0,
91
+ "scrollUpdateWasRequested": false,
92
+ },
93
+ ],
94
+ ]
95
+ `;
96
+
97
+ exports[`FixedSizeList onScroll should call onScroll when scroll position changes 1`] = `
98
+ Array [
99
+ Array [
100
+ Object {
101
+ "scrollDirection": "forward",
102
+ "scrollOffset": 0,
103
+ "scrollUpdateWasRequested": false,
104
+ },
105
+ ],
106
+ Array [
107
+ Object {
108
+ "scrollDirection": "forward",
109
+ "scrollOffset": 100,
110
+ "scrollUpdateWasRequested": true,
111
+ },
112
+ ],
113
+ Array [
114
+ Object {
115
+ "scrollDirection": "backward",
116
+ "scrollOffset": 0,
117
+ "scrollUpdateWasRequested": true,
118
+ },
119
+ ],
120
+ ]
121
+ `;
122
+
123
+ exports[`FixedSizeList overscanCount should accommodate a custom overscan 1`] = `
124
+ Array [
125
+ Array [
126
+ Object {
127
+ "overscanStartIndex": 1,
128
+ "overscanStopIndex": 10,
129
+ "visibleStartIndex": 4,
130
+ "visibleStopIndex": 7,
131
+ },
132
+ ],
133
+ ]
134
+ `;
135
+
136
+ exports[`FixedSizeList overscanCount should not scan past the beginning of the list 1`] = `
137
+ Array [
138
+ Array [
139
+ Object {
140
+ "overscanStartIndex": 0,
141
+ "overscanStopIndex": 5,
142
+ "visibleStartIndex": 0,
143
+ "visibleStopIndex": 3,
144
+ },
145
+ ],
146
+ ]
147
+ `;
148
+
149
+ exports[`FixedSizeList overscanCount should not scan past the end of the list 1`] = `
150
+ Array [
151
+ Array [
152
+ Object {
153
+ "overscanStartIndex": 4,
154
+ "overscanStopIndex": 9,
155
+ "visibleStartIndex": 6,
156
+ "visibleStopIndex": 9,
157
+ },
158
+ ],
159
+ ]
160
+ `;
161
+
162
+ exports[`FixedSizeList overscanCount should overscan in both directions when not scrolling 1`] = `
163
+ Array [
164
+ Array [
165
+ Object {
166
+ "overscanStartIndex": 0,
167
+ "overscanStopIndex": 7,
168
+ "visibleStartIndex": 2,
169
+ "visibleStopIndex": 5,
170
+ },
171
+ ],
172
+ ]
173
+ `;
174
+
175
+ exports[`FixedSizeList overscanCount should overscan in the direction being scrolled 1`] = `
176
+ Array [
177
+ Array [
178
+ Object {
179
+ "overscanStartIndex": 0,
180
+ "overscanStopIndex": 7,
181
+ "visibleStartIndex": 2,
182
+ "visibleStopIndex": 5,
183
+ },
184
+ ],
185
+ Array [
186
+ Object {
187
+ "overscanStartIndex": 3,
188
+ "overscanStopIndex": 9,
189
+ "visibleStartIndex": 4,
190
+ "visibleStopIndex": 7,
191
+ },
192
+ ],
193
+ Array [
194
+ Object {
195
+ "overscanStartIndex": 0,
196
+ "overscanStopIndex": 6,
197
+ "visibleStartIndex": 2,
198
+ "visibleStopIndex": 5,
199
+ },
200
+ ],
201
+ ]
202
+ `;
203
+
204
+ exports[`FixedSizeList overscanCount should require a minimum of 1 overscan to support tabbing 1`] = `
205
+ Array [
206
+ Array [
207
+ Object {
208
+ "overscanStartIndex": 1,
209
+ "overscanStopIndex": 6,
210
+ "visibleStartIndex": 2,
211
+ "visibleStopIndex": 5,
212
+ },
213
+ ],
214
+ ]
215
+ `;
216
+
217
+ exports[`FixedSizeList scrollToItem method scroll with align = "auto" should work with partially-visible items 1`] = `
218
+ Array [
219
+ Array [
220
+ Object {
221
+ "overscanStartIndex": 0,
222
+ "overscanStopIndex": 5,
223
+ "visibleStartIndex": 0,
224
+ "visibleStopIndex": 3,
225
+ },
226
+ ],
227
+ Array [
228
+ Object {
229
+ "overscanStartIndex": 5,
230
+ "overscanStopIndex": 12,
231
+ "visibleStartIndex": 7,
232
+ "visibleStopIndex": 10,
233
+ },
234
+ ],
235
+ Array [
236
+ Object {
237
+ "overscanStartIndex": 94,
238
+ "overscanStopIndex": 99,
239
+ "visibleStartIndex": 96,
240
+ "visibleStopIndex": 99,
241
+ },
242
+ ],
243
+ Array [
244
+ Object {
245
+ "overscanStartIndex": 0,
246
+ "overscanStopIndex": 6,
247
+ "visibleStartIndex": 1,
248
+ "visibleStopIndex": 4,
249
+ },
250
+ ],
251
+ Array [
252
+ Object {
253
+ "overscanStartIndex": 0,
254
+ "overscanStopIndex": 5,
255
+ "visibleStartIndex": 0,
256
+ "visibleStopIndex": 3,
257
+ },
258
+ ],
259
+ ]
260
+ `;
261
+
262
+ exports[`FixedSizeList scrollToItem method scroll with align = "auto" should work with very small lists and partial items 1`] = `
263
+ Array [
264
+ Array [
265
+ Object {
266
+ "overscanStartIndex": 0,
267
+ "overscanStopIndex": 1,
268
+ "visibleStartIndex": 0,
269
+ "visibleStopIndex": 1,
270
+ },
271
+ ],
272
+ ]
273
+ `;
274
+
275
+ exports[`FixedSizeList scrollToItem method should ignore indexes greater than itemCount 1`] = `
276
+ Array [
277
+ Array [
278
+ Object {
279
+ "overscanStartIndex": 94,
280
+ "overscanStopIndex": 99,
281
+ "visibleStartIndex": 96,
282
+ "visibleStopIndex": 99,
283
+ },
284
+ ],
285
+ ]
286
+ `;
287
+
288
+ exports[`FixedSizeList scrollToItem method should ignore indexes less than zero 1`] = `
289
+ Array [
290
+ Array [
291
+ Object {
292
+ "overscanStartIndex": 0,
293
+ "overscanStopIndex": 5,
294
+ "visibleStartIndex": 0,
295
+ "visibleStopIndex": 3,
296
+ },
297
+ ],
298
+ ]
299
+ `;
300
+
301
+ exports[`FixedSizeList scrollToItem method should not set invalid offsets when the list contains few items 1`] = `[Function]`;
302
+
303
+ exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "auto" 1`] = `
304
+ Array [
305
+ Array [
306
+ Object {
307
+ "overscanStartIndex": 0,
308
+ "overscanStopIndex": 5,
309
+ "visibleStartIndex": 0,
310
+ "visibleStopIndex": 3,
311
+ },
312
+ ],
313
+ Array [
314
+ Object {
315
+ "overscanStartIndex": 5,
316
+ "overscanStopIndex": 12,
317
+ "visibleStartIndex": 7,
318
+ "visibleStopIndex": 10,
319
+ },
320
+ ],
321
+ Array [
322
+ Object {
323
+ "overscanStartIndex": 0,
324
+ "overscanStopIndex": 7,
325
+ "visibleStartIndex": 2,
326
+ "visibleStopIndex": 5,
327
+ },
328
+ ],
329
+ ]
330
+ `;
331
+
332
+ exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "center" 1`] = `
333
+ Array [
334
+ Array [
335
+ Object {
336
+ "overscanStartIndex": 0,
337
+ "overscanStopIndex": 5,
338
+ "visibleStartIndex": 0,
339
+ "visibleStopIndex": 3,
340
+ },
341
+ ],
342
+ Array [
343
+ Object {
344
+ "overscanStartIndex": 6,
345
+ "overscanStopIndex": 14,
346
+ "visibleStartIndex": 8,
347
+ "visibleStopIndex": 12,
348
+ },
349
+ ],
350
+ Array [
351
+ Object {
352
+ "overscanStartIndex": 5,
353
+ "overscanStopIndex": 13,
354
+ "visibleStartIndex": 7,
355
+ "visibleStopIndex": 11,
356
+ },
357
+ ],
358
+ Array [
359
+ Object {
360
+ "overscanStartIndex": 0,
361
+ "overscanStopIndex": 5,
362
+ "visibleStartIndex": 0,
363
+ "visibleStopIndex": 3,
364
+ },
365
+ ],
366
+ Array [
367
+ Object {
368
+ "overscanStartIndex": 94,
369
+ "overscanStopIndex": 99,
370
+ "visibleStartIndex": 96,
371
+ "visibleStopIndex": 99,
372
+ },
373
+ ],
374
+ ]
375
+ `;
376
+
377
+ exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "end" 1`] = `
378
+ Array [
379
+ Array [
380
+ Object {
381
+ "overscanStartIndex": 0,
382
+ "overscanStopIndex": 5,
383
+ "visibleStartIndex": 0,
384
+ "visibleStopIndex": 3,
385
+ },
386
+ ],
387
+ Array [
388
+ Object {
389
+ "overscanStartIndex": 5,
390
+ "overscanStopIndex": 12,
391
+ "visibleStartIndex": 7,
392
+ "visibleStopIndex": 10,
393
+ },
394
+ ],
395
+ Array [
396
+ Object {
397
+ "overscanStartIndex": 4,
398
+ "overscanStopIndex": 11,
399
+ "visibleStartIndex": 6,
400
+ "visibleStopIndex": 9,
401
+ },
402
+ ],
403
+ Array [
404
+ Object {
405
+ "overscanStartIndex": 0,
406
+ "overscanStopIndex": 5,
407
+ "visibleStartIndex": 0,
408
+ "visibleStopIndex": 3,
409
+ },
410
+ ],
411
+ ]
412
+ `;
413
+
414
+ exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "smart" 1`] = `
415
+ Array [
416
+ Array [
417
+ Object {
418
+ "overscanStartIndex": 0,
419
+ "overscanStopIndex": 5,
420
+ "visibleStartIndex": 0,
421
+ "visibleStopIndex": 3,
422
+ },
423
+ ],
424
+ Array [
425
+ Object {
426
+ "overscanStartIndex": 6,
427
+ "overscanStopIndex": 14,
428
+ "visibleStartIndex": 8,
429
+ "visibleStopIndex": 12,
430
+ },
431
+ ],
432
+ Array [
433
+ Object {
434
+ "overscanStartIndex": 4,
435
+ "overscanStopIndex": 11,
436
+ "visibleStartIndex": 6,
437
+ "visibleStopIndex": 9,
438
+ },
439
+ ],
440
+ Array [
441
+ Object {
442
+ "overscanStartIndex": 0,
443
+ "overscanStopIndex": 5,
444
+ "visibleStartIndex": 0,
445
+ "visibleStopIndex": 3,
446
+ },
447
+ ],
448
+ Array [
449
+ Object {
450
+ "overscanStartIndex": 94,
451
+ "overscanStopIndex": 99,
452
+ "visibleStartIndex": 96,
453
+ "visibleStopIndex": 99,
454
+ },
455
+ ],
456
+ Array [
457
+ Object {
458
+ "overscanStartIndex": 93,
459
+ "overscanStopIndex": 99,
460
+ "visibleStartIndex": 95,
461
+ "visibleStopIndex": 98,
462
+ },
463
+ ],
464
+ Array [
465
+ Object {
466
+ "overscanStartIndex": 94,
467
+ "overscanStopIndex": 99,
468
+ "visibleStartIndex": 96,
469
+ "visibleStopIndex": 99,
470
+ },
471
+ ],
472
+ Array [
473
+ Object {
474
+ "overscanStartIndex": 92,
475
+ "overscanStopIndex": 99,
476
+ "visibleStartIndex": 94,
477
+ "visibleStopIndex": 97,
478
+ },
479
+ ],
480
+ Array [
481
+ Object {
482
+ "overscanStartIndex": 94,
483
+ "overscanStopIndex": 99,
484
+ "visibleStartIndex": 96,
485
+ "visibleStopIndex": 99,
486
+ },
487
+ ],
488
+ Array [
489
+ Object {
490
+ "overscanStartIndex": 86,
491
+ "overscanStopIndex": 94,
492
+ "visibleStartIndex": 88,
493
+ "visibleStopIndex": 92,
494
+ },
495
+ ],
496
+ Array [
497
+ Object {
498
+ "overscanStartIndex": 94,
499
+ "overscanStopIndex": 99,
500
+ "visibleStartIndex": 96,
501
+ "visibleStopIndex": 99,
502
+ },
503
+ ],
504
+ ]
505
+ `;
506
+
507
+ exports[`FixedSizeList scrollToItem method should scroll to the correct item for align = "start" 1`] = `
508
+ Array [
509
+ Array [
510
+ Object {
511
+ "overscanStartIndex": 0,
512
+ "overscanStopIndex": 5,
513
+ "visibleStartIndex": 0,
514
+ "visibleStopIndex": 3,
515
+ },
516
+ ],
517
+ Array [
518
+ Object {
519
+ "overscanStartIndex": 8,
520
+ "overscanStopIndex": 15,
521
+ "visibleStartIndex": 10,
522
+ "visibleStopIndex": 13,
523
+ },
524
+ ],
525
+ Array [
526
+ Object {
527
+ "overscanStartIndex": 7,
528
+ "overscanStopIndex": 14,
529
+ "visibleStartIndex": 9,
530
+ "visibleStopIndex": 12,
531
+ },
532
+ ],
533
+ Array [
534
+ Object {
535
+ "overscanStartIndex": 94,
536
+ "overscanStopIndex": 99,
537
+ "visibleStartIndex": 96,
538
+ "visibleStopIndex": 99,
539
+ },
540
+ ],
541
+ ]
542
+ `;
543
+
544
+ exports[`FixedSizeList should render a list of columns 1`] = `
545
+ Array [
546
+ Array [
547
+ Object {
548
+ "overscanStartIndex": 0,
549
+ "overscanStopIndex": 3,
550
+ "visibleStartIndex": 0,
551
+ "visibleStopIndex": 1,
552
+ },
553
+ ],
554
+ ]
555
+ `;
556
+
557
+ exports[`FixedSizeList should render a list of rows 1`] = `
558
+ Array [
559
+ Array [
560
+ Object {
561
+ "overscanStartIndex": 0,
562
+ "overscanStopIndex": 5,
563
+ "visibleStartIndex": 0,
564
+ "visibleStopIndex": 3,
565
+ },
566
+ ],
567
+ ]
568
+ `;