profinansy-ui-lib 4.1.112 → 4.1.113
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.
- package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/ImageViewerModal.styled.d.ts +3 -1
- package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeader.styled.d.ts +3 -1
- package/dist/features/user-chats/components/UserChatsWidget/hooks/useUserChatsWidget.d.ts +4 -0
- package/dist/features/user-chats/store/UserChatsProvider.d.ts +3 -1
- package/dist/features/user-chats/store/userChatsUi.d.ts +1 -0
- package/dist/profinansy-ui-lib.cjs +708 -697
- package/dist/profinansy-ui-lib.cjs.map +1 -1
- package/dist/profinansy-ui-lib.es.js +6891 -6827
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ModalWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../../../../../components/uikit/Modal/Modal.typed").IModal, never>> & string & Omit<(props: import("../../../../../../components/uikit/Modal/Modal.typed").IModal) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
3
|
-
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
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
|
+
$hasSeveral: boolean;
|
|
5
|
+
}>> & string;
|
|
4
6
|
export declare const Image: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
5
7
|
export declare const ArrowButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
6
8
|
$direction?: 'left' | 'right';
|
|
@@ -8,7 +8,9 @@ export declare const Bubble: import("styled-components/dist/types").IStyledCompo
|
|
|
8
8
|
$active?: boolean;
|
|
9
9
|
}>> & string;
|
|
10
10
|
export declare const UnreadBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
11
|
-
export declare const MinimizeButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
11
|
+
export declare const MinimizeButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
12
|
+
$embedded: boolean;
|
|
13
|
+
}>> & string;
|
|
12
14
|
export declare const TitleRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
13
15
|
$spaceBetween?: boolean;
|
|
14
16
|
}>> & string;
|
|
@@ -22,9 +22,11 @@ export declare const useUserChatsWidget: (fabBottomOffset?: IChatsFabBottomOffse
|
|
|
22
22
|
}) => void;
|
|
23
23
|
backInOverlay: () => void;
|
|
24
24
|
};
|
|
25
|
+
embedded: boolean;
|
|
25
26
|
isMobile: boolean;
|
|
26
27
|
isGuestUser: boolean;
|
|
27
28
|
isExpanded: boolean;
|
|
29
|
+
shellExpanded: boolean;
|
|
28
30
|
isSupportInCompactHub: boolean;
|
|
29
31
|
showExpandControl: boolean;
|
|
30
32
|
categories: IUserChatsCategoryItem[];
|
|
@@ -42,6 +44,8 @@ export declare const useUserChatsWidget: (fabBottomOffset?: IChatsFabBottomOffse
|
|
|
42
44
|
syncCompactSupportPreview: (messages: import("../../../../../components/blocks/SupportV2/SupportV2.typed").ISupportLayoutMessage[]) => void;
|
|
43
45
|
handleFabClick: () => void;
|
|
44
46
|
handleMinimize: () => void;
|
|
47
|
+
handleOverlayBack: () => void;
|
|
48
|
+
handleOverlayDismiss: () => void;
|
|
45
49
|
handleCompactSupportBack: () => void;
|
|
46
50
|
handleCompactSupportShowAllInOverlay: () => void;
|
|
47
51
|
handleExpand: () => void;
|
|
@@ -18,7 +18,9 @@ export interface IUserChatsProviderProps {
|
|
|
18
18
|
query?: TUserChatsQuery;
|
|
19
19
|
isReady?: boolean;
|
|
20
20
|
onQueryChange?: (query: TUserChatsQuery) => void;
|
|
21
|
+
/** Без FAB; сразу expanded; сворачивание → closeAll. */
|
|
22
|
+
embedded?: boolean;
|
|
21
23
|
children: ReactNode;
|
|
22
24
|
}
|
|
23
|
-
export declare const UserChatsProvider: ({ token, chatsBaseUrl, chatsRealtimeBaseUrl, authBaseUrl, userId, rights, completedCourses, access, accessStatus, showAiChat, onToggleAiChat, onNotify, query, isReady, onQueryChange, children }: IUserChatsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const UserChatsProvider: ({ token, chatsBaseUrl, chatsRealtimeBaseUrl, authBaseUrl, userId, rights, completedCourses, access, accessStatus, showAiChat, onToggleAiChat, onNotify, query, isReady, onQueryChange, embedded, children }: IUserChatsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
26
|
export type { IChatsFabBottomOffset };
|
|
@@ -5,6 +5,7 @@ export type TChatsNotify = (message: string, type: TChatsNotifyType) => void;
|
|
|
5
5
|
export type TUserChatsQuery = Record<string, string | string[] | undefined>;
|
|
6
6
|
export type TChatAccessStatus = 'idle' | 'success' | 'error';
|
|
7
7
|
export interface IUserChatsUi {
|
|
8
|
+
embedded: boolean;
|
|
8
9
|
showAiChat: boolean;
|
|
9
10
|
rights: Record<string, number | string | boolean> | null;
|
|
10
11
|
completedCourses: string[] | null;
|