profinansy-ui-lib 4.1.67 → 4.1.69

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.
@@ -9,6 +9,8 @@ export declare const QUIZ_FUNNEL_INTRO_AB_TEST_ENABLED = false;
9
9
  export declare const getQuizFunnelIntroOfferVariant: () => TQuizFunnelOfferVariant;
10
10
  /** offer_variant в Метрику — только при включённом A/B на intro */
11
11
  export declare const getQuizFunnelMetrikaOfferVariant: (variant: TQuizFunnelOfferVariant) => TQuizFunnelOfferVariant | undefined;
12
+ /** HTML id корневого диалога модалки квиза */
13
+ export declare const QUIZ_FUNNEL_MODAL_ID = "quiz-funnel";
12
14
  /** Текст плавающей кнопки «Забрать подарок» */
13
15
  export declare const QUIZ_FUNNEL_FAB_LABEL = "\u0417\u0430\u0431\u0440\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u0440\u043E\u043A";
14
16
  /** Код баннера в content API: GET /modal/list?code=quiz_funnel */
@@ -1,4 +1,4 @@
1
- export { QUIZ_FUNNEL_AUTO_OPENED_STORAGE_KEY, QUIZ_FUNNEL_BANNER_CODE, QUIZ_FUNNEL_COMPLETED_STORAGE_KEY, QUIZ_FUNNEL_COPY_DEFAULT, QUIZ_FUNNEL_DISMISSED_STORAGE_KEY, QUIZ_FUNNEL_EXCLUDED_PATHS, QUIZ_FUNNEL_INTRO_IMAGE_URL, QUIZ_FUNNEL_MANAGER_LINKS, QUIZ_FUNNEL_MANAGER_HINT, QUIZ_FUNNEL_FAB_LABEL, QUIZ_FUNNEL_OFFER_STORAGE_KEY, QUIZ_FUNNEL_INTRO_AB_TEST_ENABLED, QUIZ_FUNNEL_UTM_TERM, QUIZ_FUNNEL_UTM_SOURCE, QUIZ_FUNNEL_MESSENGER_UTM_PARAMS, QUIZ_INTRO_OFFERS, getQuizFunnelIntroOfferVariant, getQuizFunnelMetrikaOfferVariant, clearQuizFunnelCompleted, clearQuizFunnelDismissed, isQuizFunnelPathExcluded, markQuizFunnelAutoOpened, markQuizFunnelCompleted, markQuizFunnelDismissed, normalizeQuizFunnelPathname, wasQuizFunnelAutoOpened, wasQuizFunnelCompleted, wasQuizFunnelDismissed, shouldShowQuizFunnelFab } from './QuizFunnel.const';
1
+ export { QUIZ_FUNNEL_AUTO_OPENED_STORAGE_KEY, QUIZ_FUNNEL_BANNER_CODE, QUIZ_FUNNEL_COMPLETED_STORAGE_KEY, QUIZ_FUNNEL_COPY_DEFAULT, QUIZ_FUNNEL_DISMISSED_STORAGE_KEY, QUIZ_FUNNEL_EXCLUDED_PATHS, QUIZ_FUNNEL_INTRO_IMAGE_URL, QUIZ_FUNNEL_MANAGER_LINKS, QUIZ_FUNNEL_MANAGER_HINT, QUIZ_FUNNEL_FAB_LABEL, QUIZ_FUNNEL_MODAL_ID, QUIZ_FUNNEL_OFFER_STORAGE_KEY, QUIZ_FUNNEL_INTRO_AB_TEST_ENABLED, QUIZ_FUNNEL_UTM_TERM, QUIZ_FUNNEL_UTM_SOURCE, QUIZ_FUNNEL_MESSENGER_UTM_PARAMS, QUIZ_INTRO_OFFERS, getQuizFunnelIntroOfferVariant, getQuizFunnelMetrikaOfferVariant, clearQuizFunnelCompleted, clearQuizFunnelDismissed, isQuizFunnelPathExcluded, markQuizFunnelAutoOpened, markQuizFunnelCompleted, markQuizFunnelDismissed, normalizeQuizFunnelPathname, wasQuizFunnelAutoOpened, wasQuizFunnelCompleted, wasQuizFunnelDismissed, shouldShowQuizFunnelFab } from './QuizFunnel.const';
2
2
  export { QUIZ_FUNNEL_METRIKA_GOALS } from './QuizFunnel.metrika.const';
3
3
  export type { TQuizFunnelMetrikaGoalKey } from './QuizFunnel.metrika.const';
4
4
  export { QUIZ_FUNNEL_COMPACT_BREAKPOINT, QUIZ_FUNNEL_MODAL_MAX_WIDTH, QUIZ_FUNNEL_PHONE_DROPDOWN_MAX_HEIGHT, QUIZ_FUNNEL_STEP_IMAGES, getQuizFunnelModalMaxWidth, getQuizFunnelQuestionImage } from './QuizFunnel.layout.const';
@@ -17,7 +17,7 @@ export type { IQuizBitrixDealCheckPayload, IQuizBitrixDealSubmitBasePayload, IQu
17
17
  export { QUIZ_FUNNEL_BITRIX_DEAL_URL } from '../../../api/quizFunnel/quizFunnel.bitrix.const';
18
18
  export { QUIZ_FUNNEL_TILDA_SAVE_CONTACT_URL } from '../../../api/quizFunnel/quizFunnel.tilda.const';
19
19
  export type { IQuizFunnelTildaContactQuery, IQuizFunnelTildaSaveContactResponse } from '../../../api/quizFunnel/quizFunnel.tilda.typed';
20
- export { QUIZ_FUNNEL_AUTO_OPENED_STORAGE_KEY, QUIZ_FUNNEL_BANNER_CODE, QUIZ_FUNNEL_INTRO_AB_TEST_ENABLED, QUIZ_FUNNEL_UTM_TERM, QUIZ_FUNNEL_UTM_SOURCE, QUIZ_FUNNEL_MESSENGER_UTM_PARAMS, QUIZ_FUNNEL_COMPLETED_STORAGE_KEY, QUIZ_FUNNEL_DISMISSED_STORAGE_KEY, QUIZ_FUNNEL_EXCLUDED_PATHS, QUIZ_FUNNEL_INTRO_IMAGE_URL, QUIZ_FUNNEL_MANAGER_LINKS, getQuizFunnelIntroOfferVariant, getQuizFunnelMetrikaOfferVariant, clearQuizFunnelCompleted, clearQuizFunnelDismissed, isQuizFunnelPathExcluded, markQuizFunnelAutoOpened, markQuizFunnelCompleted, markQuizFunnelDismissed, normalizeQuizFunnelPathname, wasQuizFunnelAutoOpened, wasQuizFunnelCompleted, wasQuizFunnelDismissed, shouldShowQuizFunnelFab } from './constants';
20
+ export { QUIZ_FUNNEL_AUTO_OPENED_STORAGE_KEY, QUIZ_FUNNEL_BANNER_CODE, QUIZ_FUNNEL_MODAL_ID, QUIZ_FUNNEL_INTRO_AB_TEST_ENABLED, QUIZ_FUNNEL_UTM_TERM, QUIZ_FUNNEL_UTM_SOURCE, QUIZ_FUNNEL_MESSENGER_UTM_PARAMS, QUIZ_FUNNEL_COMPLETED_STORAGE_KEY, QUIZ_FUNNEL_DISMISSED_STORAGE_KEY, QUIZ_FUNNEL_EXCLUDED_PATHS, QUIZ_FUNNEL_INTRO_IMAGE_URL, QUIZ_FUNNEL_MANAGER_LINKS, getQuizFunnelIntroOfferVariant, getQuizFunnelMetrikaOfferVariant, clearQuizFunnelCompleted, clearQuizFunnelDismissed, isQuizFunnelPathExcluded, markQuizFunnelAutoOpened, markQuizFunnelCompleted, markQuizFunnelDismissed, normalizeQuizFunnelPathname, wasQuizFunnelAutoOpened, wasQuizFunnelCompleted, wasQuizFunnelDismissed, shouldShowQuizFunnelFab } from './constants';
21
21
  export { QUIZ_FUNNEL_METRIKA_GOALS } from './constants';
22
22
  export { createTrackQuizFunnelMetrika, trackQuizFunnelMetrika } from './utils';
23
23
  export type { IQuizFunnelProps, TQuizFunnelMetrikaGoalsOverride } from './QuizFunnel.typed';
@@ -1,20 +1 @@
1
- /// <reference types="react" />
2
- import { ISideModal } from './SideModal.typed';
3
- export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
- $isOpen: boolean;
5
- }>> & string;
6
- export declare const Layout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
- export declare const Sidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
- $isOpen: boolean;
9
- $size?: ISideModal['size'];
10
- $withoutAnimation: boolean;
11
- }>> & string;
12
- export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
- export declare const LeftWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
- export declare const BackButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
15
- export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
16
- export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
17
- $bottomHeight: number;
18
- }>> & string;
19
- export declare const BottomContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
20
- export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
1
+ export * from './SideModalV1/SideModalV1.styled';
@@ -1,6 +1,7 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { IAlert } from '../Alert/Alert.typed';
3
3
  import { IModal } from '../Modal/Modal.typed';
4
+ export type TSideModalVariant = 'v1' | 'v2';
4
5
  export interface ISideModal {
5
6
  /** Состояние попапа. */
6
7
  isOpen: boolean;
@@ -0,0 +1,3 @@
1
+ import { ISideModal } from '../SideModal.typed';
2
+ declare const SideModalV1: (props: ISideModal) => import("react/jsx-runtime").JSX.Element;
3
+ export { SideModalV1 };
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { ISideModal } from '../SideModal.typed';
3
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $isOpen: boolean;
5
+ }>> & string;
6
+ export declare const Layout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const Sidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
+ $isOpen: boolean;
9
+ $size?: ISideModal['size'];
10
+ $withoutAnimation: boolean;
11
+ }>> & string;
12
+ export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
+ export declare const LeftWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
+ export declare const BackButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
15
+ export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
16
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
17
+ $bottomHeight: number;
18
+ }>> & string;
19
+ export declare const BottomContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
20
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export { SideModalV1 } from './SideModalV1';
@@ -0,0 +1,3 @@
1
+ import { ISideModal } from '../SideModal.typed';
2
+ declare const SideModalV2: (props: ISideModal) => import("react/jsx-runtime").JSX.Element;
3
+ export { SideModalV2 };
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { ISideModal } from '../SideModal.typed';
3
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $isOpen: boolean;
5
+ }>> & string;
6
+ export declare const Layout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const Sidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
+ $isOpen: boolean;
9
+ $size?: ISideModal['size'];
10
+ $withoutAnimation: boolean;
11
+ }>> & string;
12
+ export declare const Slot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
+ export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
+ export declare const LeftWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ export declare const RightWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
+ export declare const BackButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
17
+ export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
18
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
19
+ $hasBottom: boolean;
20
+ }>> & string;
21
+ export declare const BottomContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
22
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
23
+ export declare const MobileCloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export { SideModalV2 } from './SideModalV2';
@@ -0,0 +1,8 @@
1
+ import { TSideModalVariant } from '../SideModal.typed';
2
+ export declare const SIDE_MODAL_VARIANT_QUERY = "sideModal";
3
+ export declare const SIDE_MODAL_DEFAULT_VARIANT: TSideModalVariant;
4
+ export declare const SIDE_MODAL_ROOT_ELEMENT_ID = "react-sideModals";
5
+ export declare const SIDE_MODAL_V2_DESKTOP_INSET = 12;
6
+ export declare const SIDE_MODAL_V2_TABLET_INSET = 20;
7
+ export declare const SIDE_MODAL_V2_MOBILE_SHEET_OFFSET = 60;
8
+ export declare const SIDE_MODAL_V2_DEFAULT_WIDTH = "600px";
@@ -0,0 +1,2 @@
1
+ import { TSideModalVariant } from '../SideModal.typed';
2
+ export declare const useSideModalVariant: () => TSideModalVariant;
@@ -1,2 +1,2 @@
1
1
  export { SideModal } from './SideModal';
2
- export * as SideModalStyled from './SideModal.styled';
2
+ export * as SideModalStyled from './SideModalV1/SideModalV1.styled';
@@ -0,0 +1,3 @@
1
+ import { TSideModalVariant } from '../SideModal.typed';
2
+ /** Query `sideModal=v1|v2`, иначе дефолт. Без window и без storage. */
3
+ export declare const resolveSideModalVariant: (search?: string) => TSideModalVariant;
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { ShareList } from './components/blocks/ShareList';
11
11
  export { Support } from './components/blocks/Support';
12
12
  export { SupportV2 } from './components/blocks/SupportV2';
13
13
  export type { ISupportV2, ISupportFabOffset } from './components/blocks/SupportV2';
14
- export { QuizFunnel, QUIZ_FUNNEL_METRIKA_GOALS } from './components/blocks/QuizFunnel';
14
+ export { QuizFunnel, QUIZ_FUNNEL_METRIKA_GOALS, QUIZ_FUNNEL_MODAL_ID } from './components/blocks/QuizFunnel';
15
15
  export type { IQuizFunnelProps, TQuizFunnelMetrikaGoalKey, TQuizFunnelMetrikaGoalsOverride } from './components/blocks/QuizFunnel';
16
16
  export { Notification } from './components/blocks/Notification';
17
17
  export { NotificationShort } from './components/blocks/Notification';