profinansy-ui-lib 4.1.69 → 4.1.71

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.
@@ -16,6 +16,16 @@ export interface IStoriesButton {
16
16
  href?: string | null;
17
17
  text_button?: IStoriesText | null;
18
18
  }
19
+ export interface IStoriesImgSize {
20
+ web?: number | null;
21
+ app?: number | null;
22
+ pad?: number | null;
23
+ }
24
+ export interface IStoriesImgSizeUrl {
25
+ web?: string | null;
26
+ app?: string | null;
27
+ pad?: string | null;
28
+ }
19
29
  export interface IStoriesImg {
20
30
  survey_id?: number | null;
21
31
  fileId?: number | null;
@@ -25,6 +35,9 @@ export interface IStoriesImg {
25
35
  title?: IStoriesText | null;
26
36
  desc?: IStoriesText | null;
27
37
  list_btn?: IStoriesButton[] | null;
38
+ link?: string | null;
39
+ size_img?: IStoriesImgSize | null;
40
+ size_img_url?: IStoriesImgSizeUrl | null;
28
41
  }
29
42
  export interface IStoriesOther {
30
43
  title?: string | null;
@@ -1,5 +1,7 @@
1
- import { IStoriesUse } from '../../../api/banner/groupModal.typed';
2
- export declare const getGroupModalSlideImageUrl: (slide?: IStoriesUse | null) => string;
1
+ import { IStoriesImgSizeUrl, IStoriesUse } from '../../../api/banner/groupModal.typed';
2
+ export type TGroupModalImageSize = keyof IStoriesImgSizeUrl;
3
+ export declare const getGroupModalImageSize: (viewportWidth: number) => TGroupModalImageSize;
4
+ export declare const getGroupModalSlideImageUrl: (slide?: IStoriesUse | null, viewportWidth?: number) => string;
3
5
  export declare const getGroupModalSlideHref: (slide?: IStoriesUse | null) => string;
4
6
  export declare const formatBannerImageUrl: (raw?: string) => string;
5
- export declare const getGroupModalDisplayImageUrl: (slide?: IStoriesUse | null) => string;
7
+ export declare const getGroupModalDisplayImageUrl: (slide?: IStoriesUse | null, viewportWidth?: number) => string;
@@ -1,8 +1,9 @@
1
1
  import { IStoriesUse } from '../../../../api/banner/groupModal.typed';
2
2
  interface IProps {
3
3
  slides: IStoriesUse[];
4
+ viewportWidth: number;
4
5
  }
5
- export declare const useBannerModalNavigation: ({ slides }: IProps) => {
6
+ export declare const useBannerModalNavigation: ({ slides, viewportWidth }: IProps) => {
6
7
  index: number;
7
8
  dragX: number;
8
9
  isDragging: boolean;
@@ -11,7 +12,7 @@ export declare const useBannerModalNavigation: ({ slides }: IProps) => {
11
12
  goNext: () => void;
12
13
  goPrev: () => void;
13
14
  onPointerDown: (clientX: number) => void;
14
- onPointerMove: (clientX: number) => void;
15
+ onPointerMove: (clientX: number) => boolean;
15
16
  onPointerUp: () => void;
16
17
  consumeClick: () => boolean;
17
18
  };
@@ -0,0 +1 @@
1
+ export declare const useBannerModalViewportWidth: () => number;