indicator-ui 0.0.328 → 0.0.329

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.
@@ -26,6 +26,12 @@ type PropsType = [
26
26
  weights?: WeightTableType;
27
27
  }
28
28
  ];
29
+ type FunReturnType = {
30
+ /**
31
+ * Вызывайте для пересчета позиции, пригодиться если поменяли рефки.
32
+ * */
33
+ recalc: () => void;
34
+ };
29
35
  /**
30
36
  * Хук для умного позиционирования элемента.
31
37
  *
@@ -37,10 +43,10 @@ type PropsType = [
37
43
  * @param [options.position='fixed']
38
44
  * @param [options.offset=4]
39
45
  *
40
- * @returns void
46
+ * @returns FunReturnType
41
47
  *
42
48
  * @example
43
49
  * @param args
44
50
  */
45
- export declare function useSmartPosition(...args: PropsType): void;
51
+ export declare function useSmartPosition(...args: PropsType): FunReturnType;
46
52
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.328",
3
+ "version": "0.0.329",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",