profinansy-ui-lib 4.1.72 → 4.1.73

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 { ILanguageSwitcherProps } from 'src/components/blocks/LanguageSwitcher/LanguageSwitcher.typed';
2
- declare const LanguageSwitcher: ({ variant }: ILanguageSwitcherProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const LanguageSwitcher: ({ variant, forceVisible }: ILanguageSwitcherProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { LanguageSwitcher };
@@ -2,4 +2,6 @@ export type TLanguageSwitcherVariant = 'header' | 'footer' | 'burger';
2
2
  export type TLanguageSwitcherSurface = 'header' | 'burger';
3
3
  export interface ILanguageSwitcherProps {
4
4
  variant: TLanguageSwitcherVariant;
5
+ /** Показать без query. Нужен для Storybook, в продукте не использовать */
6
+ forceVisible?: boolean;
5
7
  }
@@ -2,6 +2,9 @@ import { Locales } from 'src/common.types';
2
2
  export declare const EN_PROD_ORIGIN = "https://profinansy.ae";
3
3
  export declare const RU_PROD_ORIGIN = "https://profinansy.ru";
4
4
  export declare const EN_FALLBACK_PATH = "/market/dashboard";
5
+ /** Временный флаг показа переключателя: `?langSwitcher` или `?langSwitcher=1` */
6
+ export declare const LANGUAGE_SWITCHER_QUERY = "langSwitcher";
7
+ export declare const hasLanguageSwitcherQuery: (search?: string) => boolean;
5
8
  type TLocationParts = Pick<Location, 'hostname' | 'pathname' | 'search' | 'hash'>;
6
9
  export declare const stripLocalePrefix: (pathname: string) => string;
7
10
  export declare const isLocalOrQaHost: (hostname: string) => boolean;