profinansy-ui-lib 4.1.56 → 4.1.57

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.
@@ -13,6 +13,7 @@ export declare const COMPOSER_MAX_ROWS = 7;
13
13
  export declare const FILE_MAX_SIZE_BYTES: number;
14
14
  export declare const SUPPORT_FILE_EXTENSIONS: string[];
15
15
  export declare const SUPPORT_FILE_MIME_TYPES: string[];
16
+ export declare const SUPPORT_FILE_ACCEPT: string;
16
17
  export declare const getSupportAttachmentKind: (file: File) => ISupportLayoutAttachment['kind'];
17
18
  export declare const isSupportFileTypeAllowed: (file: File) => boolean;
18
19
  /** Как в старом Support: `/account/bank-ideas` в новой вкладке. */
@@ -13,10 +13,9 @@ interface IComposer {
13
13
  linkPreview?: ISupportLinkPreview | null;
14
14
  }) => void;
15
15
  onFetchLinkPreview?: (url: string) => Promise<ISupportLinkPreview | null>;
16
- onOpenAttach: () => void;
17
16
  onPickAttachment?: (attachment: ISupportLayoutAttachment) => void;
18
17
  onFileRejected?: (reason: 'too-large' | 'unsupported-type') => void;
19
18
  }
20
- declare const Composer: ({ placeholder, sendLabel, attachLabel, draftKey, seedText, pendingAttachment, onClearAttachment, onSend, onFetchLinkPreview, onOpenAttach, onPickAttachment, onFileRejected }: IComposer) => import("react/jsx-runtime").JSX.Element;
19
+ declare const Composer: ({ placeholder, sendLabel, attachLabel, draftKey, seedText, pendingAttachment, onClearAttachment, onSend, onFetchLinkPreview, onPickAttachment, onFileRejected }: IComposer) => import("react/jsx-runtime").JSX.Element;
21
20
  export { Composer };
22
21
  export declare const readLocalFile: (file: File, kind: 'image' | 'document') => ISupportLayoutAttachment | null;
@@ -22,6 +22,7 @@ export declare const Feed: import("styled-components/dist/types").IStyledCompone
22
22
  $empty?: boolean;
23
23
  }>> & string;
24
24
  export declare const FeedInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
25
+ export declare const DateDayGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
25
26
  export declare const HistoryLoader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
26
27
  export declare const EmptyPrompt: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
27
28
  export declare const UnreadDivider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -91,8 +92,9 @@ export declare const ComposerWrap: import("styled-components/dist/types").IStyle
91
92
  export declare const PreviewRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
92
93
  export declare const PhotoThumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
93
94
  export declare const ComposerFilePreview: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
94
- export declare const ComposerFileIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
95
- export declare const PreviewClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
95
+ export declare const PreviewClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
96
+ $onAccent?: boolean;
97
+ }>> & string;
96
98
  export declare const LinkReply: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
97
99
  export declare const LinkReplyBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
98
100
  export declare const LinkReplyClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
@@ -130,9 +132,6 @@ export declare const SendButton: import("styled-components/dist/types").IStyledC
130
132
  }>> & string;
131
133
  export declare const EmojiPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
132
134
  export declare const EmojiButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
133
- export declare const AttachOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
134
- export declare const AttachSheet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
135
- export declare const AttachItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
136
135
  export declare const GuestBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
137
136
  export declare const GuestQuestion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
138
137
  export declare const GuestSegments: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -18,6 +18,11 @@ export declare const dateFieldsFrom: (value?: string | null, previousDayKey?: st
18
18
  dateLabel: string;
19
19
  };
20
20
  export declare const collapseDateLabels: (messages: ISupportLayoutMessage[]) => ISupportLayoutMessage[];
21
+ export declare const groupMessagesByDay: (messages: ISupportLayoutMessage[]) => {
22
+ key: string;
23
+ label?: string;
24
+ items: ISupportLayoutMessage[];
25
+ }[];
21
26
  export declare const mapSupportAttachments: (items?: ISupportAttachmentOut[] | null, role?: TSupportMessageRole) => ISupportLayoutAttachment[] | undefined;
22
27
  export declare const mapSupportMessage: (message: ISupportChatMessageOut, options?: {
23
28
  hideChips?: boolean;
@@ -9,8 +9,6 @@ export declare const support_translation: {
9
9
  subtitleTyping: string;
10
10
  placeholder: string;
11
11
  attach: string;
12
- attachPhoto: string;
13
- attachFile: string;
14
12
  newMessages: string;
15
13
  rateTitle: string;
16
14
  retry: string;
@@ -57,8 +55,6 @@ export declare const support_translation: {
57
55
  subtitleTyping: string;
58
56
  placeholder: string;
59
57
  attach: string;
60
- attachPhoto: string;
61
- attachFile: string;
62
58
  newMessages: string;
63
59
  rateTitle: string;
64
60
  retry: string;