@etsoo/react 1.5.83 → 1.5.84

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.
@@ -1,7 +1,7 @@
1
1
  import { Utils } from '@etsoo/shared';
2
2
  import React from 'react';
3
3
  import { FixedSizeList, VariableSizeList } from 'react-window';
4
- import useCombinedRefs from '../uses/useCombinedRefs';
4
+ import { useCombinedRefs } from '../uses/useCombinedRefs';
5
5
  import { GridSizeGet } from './GridLoader';
6
6
  // Calculate loadBatchSize
7
7
  const calculateBatchSize = (height, itemSize) => {
@@ -4,4 +4,4 @@
4
4
  * @param refs Refs
5
5
  * @returns Callback
6
6
  */
7
- export default function useCombinedRefs<T>(...refs: (React.Ref<T> | undefined)[]): (target: T | null) => void;
7
+ export declare function useCombinedRefs<T>(...refs: (React.Ref<T> | undefined)[]): (target: T | null) => void;
@@ -3,7 +3,7 @@
3
3
  * @param refs Refs
4
4
  * @returns Callback
5
5
  */
6
- export default function useCombinedRefs(...refs) {
6
+ export function useCombinedRefs(...refs) {
7
7
  return (target) => {
8
8
  // Ignore null reference
9
9
  if (target == null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.5.83",
3
+ "version": "1.5.84",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,7 @@ import {
8
8
  ListProps,
9
9
  VariableSizeList
10
10
  } from 'react-window';
11
- import useCombinedRefs from '../uses/useCombinedRefs';
11
+ import { useCombinedRefs } from '../uses/useCombinedRefs';
12
12
  import {
13
13
  GridLoadDataProps,
14
14
  GridLoader,
@@ -3,9 +3,7 @@
3
3
  * @param refs Refs
4
4
  * @returns Callback
5
5
  */
6
- export default function useCombinedRefs<T>(
7
- ...refs: (React.Ref<T> | undefined)[]
8
- ) {
6
+ export function useCombinedRefs<T>(...refs: (React.Ref<T> | undefined)[]) {
9
7
  return (target: T | null) => {
10
8
  // Ignore null reference
11
9
  if (target == null) return;