profinansy-ui-lib 3.8.54 → 3.8.56

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,3 +1,3 @@
1
1
  import { IBannerProps } from './Banner.typed';
2
- declare const Banner: ({ bannerCode, size, bannerMaxWidth, mb, mt, closeButtonHidden, yandexEvent, yandexEventView, rootStyles }: IBannerProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Banner: ({ bannerCode, size, bannerMaxWidth, mb, mt, closeButtonHidden, yandexEvent, yandexEventView, rootStyles, target }: IBannerProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { Banner };
@@ -19,5 +19,7 @@ export interface IBannerProps {
19
19
  yandexEventView?: string;
20
20
  /** Максимальная ширина баннера */
21
21
  bannerMaxWidth?: number;
22
+ /** Открытие в новом окне или в таком же */
23
+ target?: string;
22
24
  }
23
25
  export {};
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { IBanner } from '../../../../api/banner/banner.typed';
3
+ interface IProps {
4
+ yandexEvent: string;
5
+ yandexEventView: string;
6
+ isNotBannerShow: boolean;
7
+ bannerData: IBanner | null;
8
+ }
9
+ export declare const useBannerAnalytics: ({ yandexEvent, yandexEventView, isNotBannerShow, bannerData }: IProps) => {
10
+ handleClick: () => Promise<void>;
11
+ ref: import("react").MutableRefObject<HTMLAnchorElement>;
12
+ };
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { IBanner } from '../../../../api/banner/banner.typed';
2
+ interface IProps {
3
+ bannerCode: string;
4
+ }
5
+ export declare const useGetBanner: ({ bannerCode }: IProps) => {
6
+ bannerData: IBanner;
7
+ };
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { IBanner } from '../../../../api/banner/banner.typed';
2
+ import { IBannerProps } from '../Banner.typed';
3
+ interface IProps {
4
+ bannerData: IBanner | null;
5
+ size: IBannerProps['size'];
6
+ }
7
+ export declare const useGetImage: ({ bannerData, size }: IProps) => {
8
+ bannerUrl: any;
9
+ };
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { IBanner } from '../../../../api/banner/banner.typed';
2
+ interface IProps {
3
+ bannerData: IBanner | null;
4
+ }
5
+ export declare const useShowLocalStorage: ({ bannerData }: IProps) => {
6
+ handleCloseBanner: (e: React.MouseEvent) => void;
7
+ bannerClosed: boolean;
8
+ };
9
+ export {};