react-virtuoso 4.0.4 → 4.0.5

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 (2) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -456,6 +456,10 @@ export declare interface TableVirtuosoProps<D, C> extends Omit<VirtuosoProps<D,
456
456
  * Set the contents of the table header.
457
457
  */
458
458
  fixedHeaderContent?: FixedHeaderContent;
459
+ /**
460
+ * Set the contents of the table footer.
461
+ */
462
+ fixedFooterContent?: FixedFooterContent;
459
463
  /**
460
464
  * The total amount of items to be rendered.
461
465
  */
@@ -626,7 +630,7 @@ export declare const Virtuoso: <ItemData = any, Context = any>(props: VirtuosoPr
626
630
  ref?: Ref<VirtuosoHandle> | undefined;
627
631
  }) => ReactElement;
628
632
 
629
- export declare const VirtuosoGrid: <Context = any>(props: VirtuosoGridProps<Context, unknown> & {
633
+ export declare const VirtuosoGrid: <ItemData = any, Context = any>(props: VirtuosoGridProps<ItemData, Context> & {
630
634
  ref?: Ref<VirtuosoGridHandle> | undefined;
631
635
  }) => ReactElement;
632
636
 
@@ -654,6 +658,10 @@ export declare interface VirtuosoGridProps<D, C = unknown> extends GridRootProps
654
658
  * The data items to be rendered. If data is set, the total count will be inferred from the length of the array.
655
659
  */
656
660
  data?: readonly D[];
661
+ /**
662
+ * Additional context available in the custom components and content callbacks
663
+ */
664
+ context?: C;
657
665
  /**
658
666
  * Use for server-side rendering - if set, the list will render the specified amount of items
659
667
  * regardless of the container / item size.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Petyo Ivanov",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "4.0.4",
6
+ "version": "4.0.5",
7
7
  "homepage": "https://virtuoso.dev/",
8
8
  "license": "MIT",
9
9
  "source": "src/index.tsx",