@pixui-dev/pxw 0.1.21 → 0.1.23

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 +192 -199
  2. package/bin/wpbuild.js +10 -10
  3. package/config/default.conf +20 -20
  4. package/config/devops.js +360 -372
  5. package/config/h5es.js +10 -10
  6. package/config/index.html +183 -183
  7. package/config/pfbs.js +251 -245
  8. package/config/util.js +136 -140
  9. package/config/webpack.js +324 -325
  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/preact/css.d.ts +7476 -7476
  87. package/lib/types/preact/index.d.ts +340 -340
  88. package/lib/types/preact/internal.d.ts +94 -94
  89. package/lib/types/preact/jsx.d.ts +320 -309
  90. package/lib/types/preact-router/index.d.ts +84 -84
  91. package/package.json +114 -113
  92. package/scripts/pack.js +40 -40
  93. package/scripts/postinstall.js +12 -12
  94. package/scripts/run-pxw.js +13 -13
  95. package/tsconfig.json +30 -30
@@ -1,542 +1,542 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`VariableSizeGrid onScroll scrolling should report partial items correctly in onItemsRendered 1`] = `
4
- Array [
5
- Array [
6
- Object {
7
- "overscanColumnStartIndex": 0,
8
- "overscanColumnStopIndex": 3,
9
- "overscanRowStartIndex": 0,
10
- "overscanRowStopIndex": 5,
11
- "visibleColumnStartIndex": 0,
12
- "visibleColumnStopIndex": 2,
13
- "visibleRowStartIndex": 0,
14
- "visibleRowStopIndex": 4,
15
- },
16
- ],
17
- Array [
18
- Object {
19
- "overscanColumnStartIndex": 0,
20
- "overscanColumnStopIndex": 4,
21
- "overscanRowStartIndex": 0,
22
- "overscanRowStopIndex": 6,
23
- "visibleColumnStartIndex": 1,
24
- "visibleColumnStopIndex": 3,
25
- "visibleRowStartIndex": 1,
26
- "visibleRowStopIndex": 5,
27
- },
28
- ],
29
- Array [
30
- Object {
31
- "overscanColumnStartIndex": 1,
32
- "overscanColumnStopIndex": 4,
33
- "overscanRowStartIndex": 1,
34
- "overscanRowStopIndex": 6,
35
- "visibleColumnStartIndex": 2,
36
- "visibleColumnStopIndex": 3,
37
- "visibleRowStartIndex": 2,
38
- "visibleRowStopIndex": 5,
39
- },
40
- ],
41
- Array [
42
- Object {
43
- "overscanColumnStartIndex": 0,
44
- "overscanColumnStopIndex": 4,
45
- "overscanRowStartIndex": 0,
46
- "overscanRowStopIndex": 6,
47
- "visibleColumnStartIndex": 1,
48
- "visibleColumnStopIndex": 3,
49
- "visibleRowStartIndex": 1,
50
- "visibleRowStopIndex": 5,
51
- },
52
- ],
53
- Array [
54
- Object {
55
- "overscanColumnStartIndex": 96,
56
- "overscanColumnStopIndex": 99,
57
- "overscanRowStartIndex": 94,
58
- "overscanRowStopIndex": 99,
59
- "visibleColumnStartIndex": 97,
60
- "visibleColumnStopIndex": 99,
61
- "visibleRowStartIndex": 95,
62
- "visibleRowStopIndex": 99,
63
- },
64
- ],
65
- Array [
66
- Object {
67
- "overscanColumnStartIndex": 97,
68
- "overscanColumnStopIndex": 99,
69
- "overscanRowStartIndex": 95,
70
- "overscanRowStopIndex": 99,
71
- "visibleColumnStartIndex": 98,
72
- "visibleColumnStopIndex": 99,
73
- "visibleRowStartIndex": 96,
74
- "visibleRowStopIndex": 99,
75
- },
76
- ],
77
- Array [
78
- Object {
79
- "overscanColumnStartIndex": 96,
80
- "overscanColumnStopIndex": 99,
81
- "overscanRowStartIndex": 94,
82
- "overscanRowStopIndex": 99,
83
- "visibleColumnStartIndex": 97,
84
- "visibleColumnStopIndex": 99,
85
- "visibleRowStartIndex": 95,
86
- "visibleRowStopIndex": 99,
87
- },
88
- ],
89
- ]
90
- `;
91
-
92
- exports[`VariableSizeGrid scrollToItem method scroll with align = "auto" should work with partially-visible items 1`] = `
93
- Array [
94
- Array [
95
- Object {
96
- "overscanColumnStartIndex": 0,
97
- "overscanColumnStopIndex": 3,
98
- "overscanRowStartIndex": 0,
99
- "overscanRowStopIndex": 4,
100
- "visibleColumnStartIndex": 0,
101
- "visibleColumnStopIndex": 2,
102
- "visibleRowStartIndex": 0,
103
- "visibleRowStopIndex": 3,
104
- },
105
- ],
106
- Array [
107
- Object {
108
- "overscanColumnStartIndex": 7,
109
- "overscanColumnStopIndex": 11,
110
- "overscanRowStartIndex": 6,
111
- "overscanRowStopIndex": 11,
112
- "visibleColumnStartIndex": 8,
113
- "visibleColumnStopIndex": 10,
114
- "visibleRowStartIndex": 7,
115
- "visibleRowStopIndex": 10,
116
- },
117
- ],
118
- Array [
119
- Object {
120
- "overscanColumnStartIndex": 96,
121
- "overscanColumnStopIndex": 99,
122
- "overscanRowStartIndex": 95,
123
- "overscanRowStopIndex": 99,
124
- "visibleColumnStartIndex": 97,
125
- "visibleColumnStopIndex": 99,
126
- "visibleRowStartIndex": 96,
127
- "visibleRowStopIndex": 99,
128
- },
129
- ],
130
- Array [
131
- Object {
132
- "overscanColumnStartIndex": 0,
133
- "overscanColumnStopIndex": 4,
134
- "overscanRowStartIndex": 0,
135
- "overscanRowStopIndex": 5,
136
- "visibleColumnStartIndex": 1,
137
- "visibleColumnStopIndex": 3,
138
- "visibleRowStartIndex": 1,
139
- "visibleRowStopIndex": 4,
140
- },
141
- ],
142
- Array [
143
- Object {
144
- "overscanColumnStartIndex": 0,
145
- "overscanColumnStopIndex": 3,
146
- "overscanRowStartIndex": 0,
147
- "overscanRowStopIndex": 4,
148
- "visibleColumnStartIndex": 0,
149
- "visibleColumnStopIndex": 2,
150
- "visibleRowStartIndex": 0,
151
- "visibleRowStopIndex": 3,
152
- },
153
- ],
154
- ]
155
- `;
156
-
157
- exports[`VariableSizeGrid scrollToItem method should not set invalid offsets when the list contains few items 1`] = `[Function]`;
158
-
159
- exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "auto" 1`] = `
160
- Array [
161
- Array [
162
- Object {
163
- "overscanColumnStartIndex": 0,
164
- "overscanColumnStopIndex": 4,
165
- "overscanRowStartIndex": 0,
166
- "overscanRowStopIndex": 4,
167
- "visibleColumnStartIndex": 0,
168
- "visibleColumnStopIndex": 3,
169
- "visibleRowStartIndex": 0,
170
- "visibleRowStopIndex": 3,
171
- },
172
- ],
173
- Array [
174
- Object {
175
- "overscanColumnStartIndex": 1,
176
- "overscanColumnStopIndex": 6,
177
- "overscanRowStartIndex": 1,
178
- "overscanRowStopIndex": 6,
179
- "visibleColumnStartIndex": 2,
180
- "visibleColumnStopIndex": 5,
181
- "visibleRowStartIndex": 2,
182
- "visibleRowStopIndex": 5,
183
- },
184
- ],
185
- Array [
186
- Object {
187
- "overscanColumnStartIndex": 1,
188
- "overscanColumnStopIndex": 6,
189
- "overscanRowStartIndex": 7,
190
- "overscanRowStopIndex": 11,
191
- "visibleColumnStartIndex": 2,
192
- "visibleColumnStopIndex": 5,
193
- "visibleRowStartIndex": 8,
194
- "visibleRowStopIndex": 10,
195
- },
196
- ],
197
- Array [
198
- Object {
199
- "overscanColumnStartIndex": 0,
200
- "overscanColumnStopIndex": 4,
201
- "overscanRowStartIndex": 7,
202
- "overscanRowStopIndex": 11,
203
- "visibleColumnStartIndex": 0,
204
- "visibleColumnStopIndex": 3,
205
- "visibleRowStartIndex": 8,
206
- "visibleRowStopIndex": 10,
207
- },
208
- ],
209
- ]
210
- `;
211
-
212
- exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "center" 1`] = `
213
- Array [
214
- Array [
215
- Object {
216
- "overscanColumnStartIndex": 0,
217
- "overscanColumnStopIndex": 4,
218
- "overscanRowStartIndex": 0,
219
- "overscanRowStopIndex": 4,
220
- "visibleColumnStartIndex": 0,
221
- "visibleColumnStopIndex": 3,
222
- "visibleRowStartIndex": 0,
223
- "visibleRowStopIndex": 3,
224
- },
225
- ],
226
- Array [
227
- Object {
228
- "overscanColumnStartIndex": 2,
229
- "overscanColumnStopIndex": 8,
230
- "overscanRowStartIndex": 2,
231
- "overscanRowStopIndex": 8,
232
- "visibleColumnStartIndex": 3,
233
- "visibleColumnStopIndex": 7,
234
- "visibleRowStartIndex": 3,
235
- "visibleRowStopIndex": 7,
236
- },
237
- ],
238
- Array [
239
- Object {
240
- "overscanColumnStartIndex": 1,
241
- "overscanColumnStopIndex": 7,
242
- "overscanRowStartIndex": 1,
243
- "overscanRowStopIndex": 7,
244
- "visibleColumnStartIndex": 2,
245
- "visibleColumnStopIndex": 6,
246
- "visibleRowStartIndex": 2,
247
- "visibleRowStopIndex": 6,
248
- },
249
- ],
250
- Array [
251
- Object {
252
- "overscanColumnStartIndex": 0,
253
- "overscanColumnStopIndex": 5,
254
- "overscanRowStartIndex": 0,
255
- "overscanRowStopIndex": 5,
256
- "visibleColumnStartIndex": 0,
257
- "visibleColumnStopIndex": 4,
258
- "visibleRowStartIndex": 0,
259
- "visibleRowStopIndex": 4,
260
- },
261
- ],
262
- Array [
263
- Object {
264
- "overscanColumnStartIndex": 5,
265
- "overscanColumnStopIndex": 9,
266
- "overscanRowStartIndex": 16,
267
- "overscanRowStopIndex": 19,
268
- "visibleColumnStartIndex": 6,
269
- "visibleColumnStopIndex": 9,
270
- "visibleRowStartIndex": 17,
271
- "visibleRowStopIndex": 19,
272
- },
273
- ],
274
- Array [
275
- Object {
276
- "overscanColumnStartIndex": 5,
277
- "overscanColumnStopIndex": 9,
278
- "overscanRowStartIndex": 8,
279
- "overscanRowStopIndex": 12,
280
- "visibleColumnStartIndex": 6,
281
- "visibleColumnStopIndex": 9,
282
- "visibleRowStartIndex": 9,
283
- "visibleRowStopIndex": 11,
284
- },
285
- ],
286
- Array [
287
- Object {
288
- "overscanColumnStartIndex": 0,
289
- "overscanColumnStopIndex": 6,
290
- "overscanRowStartIndex": 8,
291
- "overscanRowStopIndex": 12,
292
- "visibleColumnStartIndex": 1,
293
- "visibleColumnStopIndex": 5,
294
- "visibleRowStartIndex": 9,
295
- "visibleRowStopIndex": 11,
296
- },
297
- ],
298
- ]
299
- `;
300
-
301
- exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "end" 1`] = `
302
- Array [
303
- Array [
304
- Object {
305
- "overscanColumnStartIndex": 0,
306
- "overscanColumnStopIndex": 4,
307
- "overscanRowStartIndex": 0,
308
- "overscanRowStopIndex": 4,
309
- "visibleColumnStartIndex": 0,
310
- "visibleColumnStopIndex": 3,
311
- "visibleRowStartIndex": 0,
312
- "visibleRowStopIndex": 3,
313
- },
314
- ],
315
- Array [
316
- Object {
317
- "overscanColumnStartIndex": 1,
318
- "overscanColumnStopIndex": 6,
319
- "overscanRowStartIndex": 1,
320
- "overscanRowStopIndex": 6,
321
- "visibleColumnStartIndex": 2,
322
- "visibleColumnStopIndex": 5,
323
- "visibleRowStartIndex": 2,
324
- "visibleRowStopIndex": 5,
325
- },
326
- ],
327
- Array [
328
- Object {
329
- "overscanColumnStartIndex": 0,
330
- "overscanColumnStopIndex": 5,
331
- "overscanRowStartIndex": 0,
332
- "overscanRowStopIndex": 5,
333
- "visibleColumnStartIndex": 1,
334
- "visibleColumnStopIndex": 4,
335
- "visibleRowStartIndex": 1,
336
- "visibleRowStopIndex": 4,
337
- },
338
- ],
339
- Array [
340
- Object {
341
- "overscanColumnStartIndex": 0,
342
- "overscanColumnStopIndex": 4,
343
- "overscanRowStartIndex": 0,
344
- "overscanRowStopIndex": 4,
345
- "visibleColumnStartIndex": 0,
346
- "visibleColumnStopIndex": 3,
347
- "visibleRowStartIndex": 0,
348
- "visibleRowStopIndex": 3,
349
- },
350
- ],
351
- Array [
352
- Object {
353
- "overscanColumnStartIndex": 0,
354
- "overscanColumnStopIndex": 4,
355
- "overscanRowStartIndex": 7,
356
- "overscanRowStopIndex": 11,
357
- "visibleColumnStartIndex": 0,
358
- "visibleColumnStopIndex": 3,
359
- "visibleRowStartIndex": 8,
360
- "visibleRowStopIndex": 10,
361
- },
362
- ],
363
- Array [
364
- Object {
365
- "overscanColumnStartIndex": 5,
366
- "overscanColumnStopIndex": 9,
367
- "overscanRowStartIndex": 7,
368
- "overscanRowStopIndex": 11,
369
- "visibleColumnStartIndex": 6,
370
- "visibleColumnStopIndex": 9,
371
- "visibleRowStartIndex": 8,
372
- "visibleRowStopIndex": 10,
373
- },
374
- ],
375
- ]
376
- `;
377
-
378
- exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "smart" 1`] = `
379
- Array [
380
- Array [
381
- Object {
382
- "overscanColumnStartIndex": 0,
383
- "overscanColumnStopIndex": 4,
384
- "overscanRowStartIndex": 0,
385
- "overscanRowStopIndex": 4,
386
- "visibleColumnStartIndex": 0,
387
- "visibleColumnStopIndex": 3,
388
- "visibleRowStartIndex": 0,
389
- "visibleRowStopIndex": 3,
390
- },
391
- ],
392
- Array [
393
- Object {
394
- "overscanColumnStartIndex": 5,
395
- "overscanColumnStopIndex": 9,
396
- "overscanRowStartIndex": 8,
397
- "overscanRowStopIndex": 12,
398
- "visibleColumnStartIndex": 6,
399
- "visibleColumnStopIndex": 9,
400
- "visibleRowStartIndex": 9,
401
- "visibleRowStopIndex": 11,
402
- },
403
- ],
404
- Array [
405
- Object {
406
- "overscanColumnStartIndex": 0,
407
- "overscanColumnStopIndex": 5,
408
- "overscanRowStartIndex": 0,
409
- "overscanRowStopIndex": 5,
410
- "visibleColumnStartIndex": 1,
411
- "visibleColumnStopIndex": 4,
412
- "visibleRowStartIndex": 1,
413
- "visibleRowStopIndex": 4,
414
- },
415
- ],
416
- Array [
417
- Object {
418
- "overscanColumnStartIndex": 0,
419
- "overscanColumnStopIndex": 5,
420
- "overscanRowStartIndex": 8,
421
- "overscanRowStopIndex": 12,
422
- "visibleColumnStartIndex": 1,
423
- "visibleColumnStopIndex": 4,
424
- "visibleRowStartIndex": 9,
425
- "visibleRowStopIndex": 11,
426
- },
427
- ],
428
- Array [
429
- Object {
430
- "overscanColumnStartIndex": 0,
431
- "overscanColumnStopIndex": 4,
432
- "overscanRowStartIndex": 8,
433
- "overscanRowStopIndex": 12,
434
- "visibleColumnStartIndex": 0,
435
- "visibleColumnStopIndex": 3,
436
- "visibleRowStartIndex": 9,
437
- "visibleRowStopIndex": 11,
438
- },
439
- ],
440
- Array [
441
- Object {
442
- "overscanColumnStartIndex": 1,
443
- "overscanColumnStopIndex": 6,
444
- "overscanRowStartIndex": 2,
445
- "overscanRowStopIndex": 8,
446
- "visibleColumnStartIndex": 2,
447
- "visibleColumnStopIndex": 5,
448
- "visibleRowStartIndex": 3,
449
- "visibleRowStopIndex": 7,
450
- },
451
- ],
452
- Array [
453
- Object {
454
- "overscanColumnStartIndex": 5,
455
- "overscanColumnStopIndex": 9,
456
- "overscanRowStartIndex": 8,
457
- "overscanRowStopIndex": 12,
458
- "visibleColumnStartIndex": 6,
459
- "visibleColumnStopIndex": 9,
460
- "visibleRowStartIndex": 9,
461
- "visibleRowStopIndex": 11,
462
- },
463
- ],
464
- ]
465
- `;
466
-
467
- exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "start" 1`] = `
468
- Array [
469
- Array [
470
- Object {
471
- "overscanColumnStartIndex": 0,
472
- "overscanColumnStopIndex": 4,
473
- "overscanRowStartIndex": 0,
474
- "overscanRowStopIndex": 4,
475
- "visibleColumnStartIndex": 0,
476
- "visibleColumnStopIndex": 3,
477
- "visibleRowStartIndex": 0,
478
- "visibleRowStopIndex": 3,
479
- },
480
- ],
481
- Array [
482
- Object {
483
- "overscanColumnStartIndex": 4,
484
- "overscanColumnStopIndex": 9,
485
- "overscanRowStartIndex": 4,
486
- "overscanRowStopIndex": 9,
487
- "visibleColumnStartIndex": 5,
488
- "visibleColumnStopIndex": 8,
489
- "visibleRowStartIndex": 5,
490
- "visibleRowStopIndex": 8,
491
- },
492
- ],
493
- Array [
494
- Object {
495
- "overscanColumnStartIndex": 3,
496
- "overscanColumnStopIndex": 8,
497
- "overscanRowStartIndex": 3,
498
- "overscanRowStopIndex": 8,
499
- "visibleColumnStartIndex": 4,
500
- "visibleColumnStopIndex": 7,
501
- "visibleRowStartIndex": 4,
502
- "visibleRowStopIndex": 7,
503
- },
504
- ],
505
- Array [
506
- Object {
507
- "overscanColumnStartIndex": 5,
508
- "overscanColumnStopIndex": 9,
509
- "overscanRowStartIndex": 16,
510
- "overscanRowStopIndex": 19,
511
- "visibleColumnStartIndex": 6,
512
- "visibleColumnStopIndex": 9,
513
- "visibleRowStartIndex": 17,
514
- "visibleRowStopIndex": 19,
515
- },
516
- ],
517
- Array [
518
- Object {
519
- "overscanColumnStartIndex": 5,
520
- "overscanColumnStopIndex": 9,
521
- "overscanRowStartIndex": 9,
522
- "overscanRowStopIndex": 13,
523
- "visibleColumnStartIndex": 6,
524
- "visibleColumnStopIndex": 9,
525
- "visibleRowStartIndex": 10,
526
- "visibleRowStopIndex": 12,
527
- },
528
- ],
529
- Array [
530
- Object {
531
- "overscanColumnStartIndex": 0,
532
- "overscanColumnStopIndex": 4,
533
- "overscanRowStartIndex": 9,
534
- "overscanRowStopIndex": 13,
535
- "visibleColumnStartIndex": 0,
536
- "visibleColumnStopIndex": 3,
537
- "visibleRowStartIndex": 10,
538
- "visibleRowStopIndex": 12,
539
- },
540
- ],
541
- ]
542
- `;
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`VariableSizeGrid onScroll scrolling should report partial items correctly in onItemsRendered 1`] = `
4
+ Array [
5
+ Array [
6
+ Object {
7
+ "overscanColumnStartIndex": 0,
8
+ "overscanColumnStopIndex": 3,
9
+ "overscanRowStartIndex": 0,
10
+ "overscanRowStopIndex": 5,
11
+ "visibleColumnStartIndex": 0,
12
+ "visibleColumnStopIndex": 2,
13
+ "visibleRowStartIndex": 0,
14
+ "visibleRowStopIndex": 4,
15
+ },
16
+ ],
17
+ Array [
18
+ Object {
19
+ "overscanColumnStartIndex": 0,
20
+ "overscanColumnStopIndex": 4,
21
+ "overscanRowStartIndex": 0,
22
+ "overscanRowStopIndex": 6,
23
+ "visibleColumnStartIndex": 1,
24
+ "visibleColumnStopIndex": 3,
25
+ "visibleRowStartIndex": 1,
26
+ "visibleRowStopIndex": 5,
27
+ },
28
+ ],
29
+ Array [
30
+ Object {
31
+ "overscanColumnStartIndex": 1,
32
+ "overscanColumnStopIndex": 4,
33
+ "overscanRowStartIndex": 1,
34
+ "overscanRowStopIndex": 6,
35
+ "visibleColumnStartIndex": 2,
36
+ "visibleColumnStopIndex": 3,
37
+ "visibleRowStartIndex": 2,
38
+ "visibleRowStopIndex": 5,
39
+ },
40
+ ],
41
+ Array [
42
+ Object {
43
+ "overscanColumnStartIndex": 0,
44
+ "overscanColumnStopIndex": 4,
45
+ "overscanRowStartIndex": 0,
46
+ "overscanRowStopIndex": 6,
47
+ "visibleColumnStartIndex": 1,
48
+ "visibleColumnStopIndex": 3,
49
+ "visibleRowStartIndex": 1,
50
+ "visibleRowStopIndex": 5,
51
+ },
52
+ ],
53
+ Array [
54
+ Object {
55
+ "overscanColumnStartIndex": 96,
56
+ "overscanColumnStopIndex": 99,
57
+ "overscanRowStartIndex": 94,
58
+ "overscanRowStopIndex": 99,
59
+ "visibleColumnStartIndex": 97,
60
+ "visibleColumnStopIndex": 99,
61
+ "visibleRowStartIndex": 95,
62
+ "visibleRowStopIndex": 99,
63
+ },
64
+ ],
65
+ Array [
66
+ Object {
67
+ "overscanColumnStartIndex": 97,
68
+ "overscanColumnStopIndex": 99,
69
+ "overscanRowStartIndex": 95,
70
+ "overscanRowStopIndex": 99,
71
+ "visibleColumnStartIndex": 98,
72
+ "visibleColumnStopIndex": 99,
73
+ "visibleRowStartIndex": 96,
74
+ "visibleRowStopIndex": 99,
75
+ },
76
+ ],
77
+ Array [
78
+ Object {
79
+ "overscanColumnStartIndex": 96,
80
+ "overscanColumnStopIndex": 99,
81
+ "overscanRowStartIndex": 94,
82
+ "overscanRowStopIndex": 99,
83
+ "visibleColumnStartIndex": 97,
84
+ "visibleColumnStopIndex": 99,
85
+ "visibleRowStartIndex": 95,
86
+ "visibleRowStopIndex": 99,
87
+ },
88
+ ],
89
+ ]
90
+ `;
91
+
92
+ exports[`VariableSizeGrid scrollToItem method scroll with align = "auto" should work with partially-visible items 1`] = `
93
+ Array [
94
+ Array [
95
+ Object {
96
+ "overscanColumnStartIndex": 0,
97
+ "overscanColumnStopIndex": 3,
98
+ "overscanRowStartIndex": 0,
99
+ "overscanRowStopIndex": 4,
100
+ "visibleColumnStartIndex": 0,
101
+ "visibleColumnStopIndex": 2,
102
+ "visibleRowStartIndex": 0,
103
+ "visibleRowStopIndex": 3,
104
+ },
105
+ ],
106
+ Array [
107
+ Object {
108
+ "overscanColumnStartIndex": 7,
109
+ "overscanColumnStopIndex": 11,
110
+ "overscanRowStartIndex": 6,
111
+ "overscanRowStopIndex": 11,
112
+ "visibleColumnStartIndex": 8,
113
+ "visibleColumnStopIndex": 10,
114
+ "visibleRowStartIndex": 7,
115
+ "visibleRowStopIndex": 10,
116
+ },
117
+ ],
118
+ Array [
119
+ Object {
120
+ "overscanColumnStartIndex": 96,
121
+ "overscanColumnStopIndex": 99,
122
+ "overscanRowStartIndex": 95,
123
+ "overscanRowStopIndex": 99,
124
+ "visibleColumnStartIndex": 97,
125
+ "visibleColumnStopIndex": 99,
126
+ "visibleRowStartIndex": 96,
127
+ "visibleRowStopIndex": 99,
128
+ },
129
+ ],
130
+ Array [
131
+ Object {
132
+ "overscanColumnStartIndex": 0,
133
+ "overscanColumnStopIndex": 4,
134
+ "overscanRowStartIndex": 0,
135
+ "overscanRowStopIndex": 5,
136
+ "visibleColumnStartIndex": 1,
137
+ "visibleColumnStopIndex": 3,
138
+ "visibleRowStartIndex": 1,
139
+ "visibleRowStopIndex": 4,
140
+ },
141
+ ],
142
+ Array [
143
+ Object {
144
+ "overscanColumnStartIndex": 0,
145
+ "overscanColumnStopIndex": 3,
146
+ "overscanRowStartIndex": 0,
147
+ "overscanRowStopIndex": 4,
148
+ "visibleColumnStartIndex": 0,
149
+ "visibleColumnStopIndex": 2,
150
+ "visibleRowStartIndex": 0,
151
+ "visibleRowStopIndex": 3,
152
+ },
153
+ ],
154
+ ]
155
+ `;
156
+
157
+ exports[`VariableSizeGrid scrollToItem method should not set invalid offsets when the list contains few items 1`] = `[Function]`;
158
+
159
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "auto" 1`] = `
160
+ Array [
161
+ Array [
162
+ Object {
163
+ "overscanColumnStartIndex": 0,
164
+ "overscanColumnStopIndex": 4,
165
+ "overscanRowStartIndex": 0,
166
+ "overscanRowStopIndex": 4,
167
+ "visibleColumnStartIndex": 0,
168
+ "visibleColumnStopIndex": 3,
169
+ "visibleRowStartIndex": 0,
170
+ "visibleRowStopIndex": 3,
171
+ },
172
+ ],
173
+ Array [
174
+ Object {
175
+ "overscanColumnStartIndex": 1,
176
+ "overscanColumnStopIndex": 6,
177
+ "overscanRowStartIndex": 1,
178
+ "overscanRowStopIndex": 6,
179
+ "visibleColumnStartIndex": 2,
180
+ "visibleColumnStopIndex": 5,
181
+ "visibleRowStartIndex": 2,
182
+ "visibleRowStopIndex": 5,
183
+ },
184
+ ],
185
+ Array [
186
+ Object {
187
+ "overscanColumnStartIndex": 1,
188
+ "overscanColumnStopIndex": 6,
189
+ "overscanRowStartIndex": 7,
190
+ "overscanRowStopIndex": 11,
191
+ "visibleColumnStartIndex": 2,
192
+ "visibleColumnStopIndex": 5,
193
+ "visibleRowStartIndex": 8,
194
+ "visibleRowStopIndex": 10,
195
+ },
196
+ ],
197
+ Array [
198
+ Object {
199
+ "overscanColumnStartIndex": 0,
200
+ "overscanColumnStopIndex": 4,
201
+ "overscanRowStartIndex": 7,
202
+ "overscanRowStopIndex": 11,
203
+ "visibleColumnStartIndex": 0,
204
+ "visibleColumnStopIndex": 3,
205
+ "visibleRowStartIndex": 8,
206
+ "visibleRowStopIndex": 10,
207
+ },
208
+ ],
209
+ ]
210
+ `;
211
+
212
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "center" 1`] = `
213
+ Array [
214
+ Array [
215
+ Object {
216
+ "overscanColumnStartIndex": 0,
217
+ "overscanColumnStopIndex": 4,
218
+ "overscanRowStartIndex": 0,
219
+ "overscanRowStopIndex": 4,
220
+ "visibleColumnStartIndex": 0,
221
+ "visibleColumnStopIndex": 3,
222
+ "visibleRowStartIndex": 0,
223
+ "visibleRowStopIndex": 3,
224
+ },
225
+ ],
226
+ Array [
227
+ Object {
228
+ "overscanColumnStartIndex": 2,
229
+ "overscanColumnStopIndex": 8,
230
+ "overscanRowStartIndex": 2,
231
+ "overscanRowStopIndex": 8,
232
+ "visibleColumnStartIndex": 3,
233
+ "visibleColumnStopIndex": 7,
234
+ "visibleRowStartIndex": 3,
235
+ "visibleRowStopIndex": 7,
236
+ },
237
+ ],
238
+ Array [
239
+ Object {
240
+ "overscanColumnStartIndex": 1,
241
+ "overscanColumnStopIndex": 7,
242
+ "overscanRowStartIndex": 1,
243
+ "overscanRowStopIndex": 7,
244
+ "visibleColumnStartIndex": 2,
245
+ "visibleColumnStopIndex": 6,
246
+ "visibleRowStartIndex": 2,
247
+ "visibleRowStopIndex": 6,
248
+ },
249
+ ],
250
+ Array [
251
+ Object {
252
+ "overscanColumnStartIndex": 0,
253
+ "overscanColumnStopIndex": 5,
254
+ "overscanRowStartIndex": 0,
255
+ "overscanRowStopIndex": 5,
256
+ "visibleColumnStartIndex": 0,
257
+ "visibleColumnStopIndex": 4,
258
+ "visibleRowStartIndex": 0,
259
+ "visibleRowStopIndex": 4,
260
+ },
261
+ ],
262
+ Array [
263
+ Object {
264
+ "overscanColumnStartIndex": 5,
265
+ "overscanColumnStopIndex": 9,
266
+ "overscanRowStartIndex": 16,
267
+ "overscanRowStopIndex": 19,
268
+ "visibleColumnStartIndex": 6,
269
+ "visibleColumnStopIndex": 9,
270
+ "visibleRowStartIndex": 17,
271
+ "visibleRowStopIndex": 19,
272
+ },
273
+ ],
274
+ Array [
275
+ Object {
276
+ "overscanColumnStartIndex": 5,
277
+ "overscanColumnStopIndex": 9,
278
+ "overscanRowStartIndex": 8,
279
+ "overscanRowStopIndex": 12,
280
+ "visibleColumnStartIndex": 6,
281
+ "visibleColumnStopIndex": 9,
282
+ "visibleRowStartIndex": 9,
283
+ "visibleRowStopIndex": 11,
284
+ },
285
+ ],
286
+ Array [
287
+ Object {
288
+ "overscanColumnStartIndex": 0,
289
+ "overscanColumnStopIndex": 6,
290
+ "overscanRowStartIndex": 8,
291
+ "overscanRowStopIndex": 12,
292
+ "visibleColumnStartIndex": 1,
293
+ "visibleColumnStopIndex": 5,
294
+ "visibleRowStartIndex": 9,
295
+ "visibleRowStopIndex": 11,
296
+ },
297
+ ],
298
+ ]
299
+ `;
300
+
301
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "end" 1`] = `
302
+ Array [
303
+ Array [
304
+ Object {
305
+ "overscanColumnStartIndex": 0,
306
+ "overscanColumnStopIndex": 4,
307
+ "overscanRowStartIndex": 0,
308
+ "overscanRowStopIndex": 4,
309
+ "visibleColumnStartIndex": 0,
310
+ "visibleColumnStopIndex": 3,
311
+ "visibleRowStartIndex": 0,
312
+ "visibleRowStopIndex": 3,
313
+ },
314
+ ],
315
+ Array [
316
+ Object {
317
+ "overscanColumnStartIndex": 1,
318
+ "overscanColumnStopIndex": 6,
319
+ "overscanRowStartIndex": 1,
320
+ "overscanRowStopIndex": 6,
321
+ "visibleColumnStartIndex": 2,
322
+ "visibleColumnStopIndex": 5,
323
+ "visibleRowStartIndex": 2,
324
+ "visibleRowStopIndex": 5,
325
+ },
326
+ ],
327
+ Array [
328
+ Object {
329
+ "overscanColumnStartIndex": 0,
330
+ "overscanColumnStopIndex": 5,
331
+ "overscanRowStartIndex": 0,
332
+ "overscanRowStopIndex": 5,
333
+ "visibleColumnStartIndex": 1,
334
+ "visibleColumnStopIndex": 4,
335
+ "visibleRowStartIndex": 1,
336
+ "visibleRowStopIndex": 4,
337
+ },
338
+ ],
339
+ Array [
340
+ Object {
341
+ "overscanColumnStartIndex": 0,
342
+ "overscanColumnStopIndex": 4,
343
+ "overscanRowStartIndex": 0,
344
+ "overscanRowStopIndex": 4,
345
+ "visibleColumnStartIndex": 0,
346
+ "visibleColumnStopIndex": 3,
347
+ "visibleRowStartIndex": 0,
348
+ "visibleRowStopIndex": 3,
349
+ },
350
+ ],
351
+ Array [
352
+ Object {
353
+ "overscanColumnStartIndex": 0,
354
+ "overscanColumnStopIndex": 4,
355
+ "overscanRowStartIndex": 7,
356
+ "overscanRowStopIndex": 11,
357
+ "visibleColumnStartIndex": 0,
358
+ "visibleColumnStopIndex": 3,
359
+ "visibleRowStartIndex": 8,
360
+ "visibleRowStopIndex": 10,
361
+ },
362
+ ],
363
+ Array [
364
+ Object {
365
+ "overscanColumnStartIndex": 5,
366
+ "overscanColumnStopIndex": 9,
367
+ "overscanRowStartIndex": 7,
368
+ "overscanRowStopIndex": 11,
369
+ "visibleColumnStartIndex": 6,
370
+ "visibleColumnStopIndex": 9,
371
+ "visibleRowStartIndex": 8,
372
+ "visibleRowStopIndex": 10,
373
+ },
374
+ ],
375
+ ]
376
+ `;
377
+
378
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "smart" 1`] = `
379
+ Array [
380
+ Array [
381
+ Object {
382
+ "overscanColumnStartIndex": 0,
383
+ "overscanColumnStopIndex": 4,
384
+ "overscanRowStartIndex": 0,
385
+ "overscanRowStopIndex": 4,
386
+ "visibleColumnStartIndex": 0,
387
+ "visibleColumnStopIndex": 3,
388
+ "visibleRowStartIndex": 0,
389
+ "visibleRowStopIndex": 3,
390
+ },
391
+ ],
392
+ Array [
393
+ Object {
394
+ "overscanColumnStartIndex": 5,
395
+ "overscanColumnStopIndex": 9,
396
+ "overscanRowStartIndex": 8,
397
+ "overscanRowStopIndex": 12,
398
+ "visibleColumnStartIndex": 6,
399
+ "visibleColumnStopIndex": 9,
400
+ "visibleRowStartIndex": 9,
401
+ "visibleRowStopIndex": 11,
402
+ },
403
+ ],
404
+ Array [
405
+ Object {
406
+ "overscanColumnStartIndex": 0,
407
+ "overscanColumnStopIndex": 5,
408
+ "overscanRowStartIndex": 0,
409
+ "overscanRowStopIndex": 5,
410
+ "visibleColumnStartIndex": 1,
411
+ "visibleColumnStopIndex": 4,
412
+ "visibleRowStartIndex": 1,
413
+ "visibleRowStopIndex": 4,
414
+ },
415
+ ],
416
+ Array [
417
+ Object {
418
+ "overscanColumnStartIndex": 0,
419
+ "overscanColumnStopIndex": 5,
420
+ "overscanRowStartIndex": 8,
421
+ "overscanRowStopIndex": 12,
422
+ "visibleColumnStartIndex": 1,
423
+ "visibleColumnStopIndex": 4,
424
+ "visibleRowStartIndex": 9,
425
+ "visibleRowStopIndex": 11,
426
+ },
427
+ ],
428
+ Array [
429
+ Object {
430
+ "overscanColumnStartIndex": 0,
431
+ "overscanColumnStopIndex": 4,
432
+ "overscanRowStartIndex": 8,
433
+ "overscanRowStopIndex": 12,
434
+ "visibleColumnStartIndex": 0,
435
+ "visibleColumnStopIndex": 3,
436
+ "visibleRowStartIndex": 9,
437
+ "visibleRowStopIndex": 11,
438
+ },
439
+ ],
440
+ Array [
441
+ Object {
442
+ "overscanColumnStartIndex": 1,
443
+ "overscanColumnStopIndex": 6,
444
+ "overscanRowStartIndex": 2,
445
+ "overscanRowStopIndex": 8,
446
+ "visibleColumnStartIndex": 2,
447
+ "visibleColumnStopIndex": 5,
448
+ "visibleRowStartIndex": 3,
449
+ "visibleRowStopIndex": 7,
450
+ },
451
+ ],
452
+ Array [
453
+ Object {
454
+ "overscanColumnStartIndex": 5,
455
+ "overscanColumnStopIndex": 9,
456
+ "overscanRowStartIndex": 8,
457
+ "overscanRowStopIndex": 12,
458
+ "visibleColumnStartIndex": 6,
459
+ "visibleColumnStopIndex": 9,
460
+ "visibleRowStartIndex": 9,
461
+ "visibleRowStopIndex": 11,
462
+ },
463
+ ],
464
+ ]
465
+ `;
466
+
467
+ exports[`VariableSizeGrid scrollToItem method should scroll to the correct item for align = "start" 1`] = `
468
+ Array [
469
+ Array [
470
+ Object {
471
+ "overscanColumnStartIndex": 0,
472
+ "overscanColumnStopIndex": 4,
473
+ "overscanRowStartIndex": 0,
474
+ "overscanRowStopIndex": 4,
475
+ "visibleColumnStartIndex": 0,
476
+ "visibleColumnStopIndex": 3,
477
+ "visibleRowStartIndex": 0,
478
+ "visibleRowStopIndex": 3,
479
+ },
480
+ ],
481
+ Array [
482
+ Object {
483
+ "overscanColumnStartIndex": 4,
484
+ "overscanColumnStopIndex": 9,
485
+ "overscanRowStartIndex": 4,
486
+ "overscanRowStopIndex": 9,
487
+ "visibleColumnStartIndex": 5,
488
+ "visibleColumnStopIndex": 8,
489
+ "visibleRowStartIndex": 5,
490
+ "visibleRowStopIndex": 8,
491
+ },
492
+ ],
493
+ Array [
494
+ Object {
495
+ "overscanColumnStartIndex": 3,
496
+ "overscanColumnStopIndex": 8,
497
+ "overscanRowStartIndex": 3,
498
+ "overscanRowStopIndex": 8,
499
+ "visibleColumnStartIndex": 4,
500
+ "visibleColumnStopIndex": 7,
501
+ "visibleRowStartIndex": 4,
502
+ "visibleRowStopIndex": 7,
503
+ },
504
+ ],
505
+ Array [
506
+ Object {
507
+ "overscanColumnStartIndex": 5,
508
+ "overscanColumnStopIndex": 9,
509
+ "overscanRowStartIndex": 16,
510
+ "overscanRowStopIndex": 19,
511
+ "visibleColumnStartIndex": 6,
512
+ "visibleColumnStopIndex": 9,
513
+ "visibleRowStartIndex": 17,
514
+ "visibleRowStopIndex": 19,
515
+ },
516
+ ],
517
+ Array [
518
+ Object {
519
+ "overscanColumnStartIndex": 5,
520
+ "overscanColumnStopIndex": 9,
521
+ "overscanRowStartIndex": 9,
522
+ "overscanRowStopIndex": 13,
523
+ "visibleColumnStartIndex": 6,
524
+ "visibleColumnStopIndex": 9,
525
+ "visibleRowStartIndex": 10,
526
+ "visibleRowStopIndex": 12,
527
+ },
528
+ ],
529
+ Array [
530
+ Object {
531
+ "overscanColumnStartIndex": 0,
532
+ "overscanColumnStopIndex": 4,
533
+ "overscanRowStartIndex": 9,
534
+ "overscanRowStopIndex": 13,
535
+ "visibleColumnStartIndex": 0,
536
+ "visibleColumnStopIndex": 3,
537
+ "visibleRowStartIndex": 10,
538
+ "visibleRowStopIndex": 12,
539
+ },
540
+ ],
541
+ ]
542
+ `;