indicator-ui 0.0.288 → 0.0.290

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,5 +1,5 @@
1
1
  type PropsType<T> = {
2
- callback: (set: Array<T>) => void;
2
+ callback: (set: Array<T>) => unknown;
3
3
  timeout?: number;
4
4
  };
5
5
  type ReturnType<T> = (data: T) => void;
@@ -48,6 +48,10 @@ type ScrollProviderBasePropsType = {
48
48
  * */
49
49
  onWheelBottomDown?: () => void;
50
50
  className?: string;
51
+ /**
52
+ * Включает функцию сохранения позиции скролла при изменение размеров внутри элемента.
53
+ * */
54
+ saveScrollPosition?: boolean;
51
55
  };
52
56
  export type ScrollProviderPropsType<Component extends HTMLElement> = Omit<HTMLAttributes<Component>, keyof ScrollProviderBasePropsType> & ScrollProviderBasePropsType;
53
57
  export {};
@@ -14,6 +14,7 @@ export declare const ScrollProvider: React.ForwardRefExoticComponent<Omit<React.
14
14
  onWheelTopUp?: () => void;
15
15
  onWheelBottomDown?: () => void;
16
16
  className?: string;
17
+ saveScrollPosition?: boolean;
17
18
  }> & {
18
19
  onScrollBottom?: () => void;
19
20
  onScrollTop?: () => void;
@@ -26,4 +27,5 @@ export declare const ScrollProvider: React.ForwardRefExoticComponent<Omit<React.
26
27
  onWheelTopUp?: () => void;
27
28
  onWheelBottomDown?: () => void;
28
29
  className?: string;
30
+ saveScrollPosition?: boolean;
29
31
  } & React.RefAttributes<HTMLElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.288",
3
+ "version": "0.0.290",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",