Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c9b8703
refactor(packages/livechat/src/components/Composer/ComposerAction): e…
tassoevan Jul 3, 2026
79c6683
refactor(packages/livechat/src/components/Composer/ComposerActions): …
tassoevan Jul 3, 2026
b8c561c
refactor(packages/livechat/src/components/FilesDropTarget): export co…
tassoevan Jul 3, 2026
0a80891
refactor(packages/livechat/src/components/Footer): export component p…
tassoevan Jul 3, 2026
92b922f
refactor(packages/livechat/src/components/Form): export component pro…
tassoevan Jul 3, 2026
1cdb5a8
refactor(packages/livechat/src/components/Form/DateInput): export com…
tassoevan Jul 3, 2026
9db987a
refactor(packages/livechat/src/components/Form/FormField): export com…
tassoevan Jul 3, 2026
138ca0d
refactor(packages/livechat/src/components/Form/MultilineTextInput): e…
tassoevan Jul 3, 2026
c4af6df
refactor(packages/livechat/src/components/Form/PasswordInput): export…
tassoevan Jul 3, 2026
c97c2ea
refactor(packages/livechat/src/components/Form/SelectInput): export c…
tassoevan Jul 3, 2026
64d278e
refactor(packages/livechat/src/components/Form/TextInput): export com…
tassoevan Jul 3, 2026
3de26db
refactor(packages/livechat/src/components/Header): export component p…
tassoevan Jul 3, 2026
5b26f29
refactor(packages/livechat/src/components/MarkdownBlock): export comp…
tassoevan Jul 3, 2026
e62ab04
refactor(packages/livechat/src/components/Messages/AudioAttachment): …
tassoevan Jul 3, 2026
594c636
refactor(packages/livechat/src/components/Messages/FileAttachment): e…
tassoevan Jul 3, 2026
279c195
refactor(packages/livechat/src/components/Messages/ImageAttachment): …
tassoevan Jul 3, 2026
88dc936
refactor(packages/livechat/src/components/Messages/MessageAvatars): e…
tassoevan Jul 3, 2026
2e28aeb
refactor(packages/livechat/src/components/Messages/MessageBlocks): ex…
tassoevan Jul 3, 2026
1dc35d3
refactor(packages/livechat/src/components/Messages/MessageBubble): ex…
tassoevan Jul 3, 2026
95b5fc9
refactor(packages/livechat/src/components/Messages/MessageContainer):…
tassoevan Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { memo } from 'preact/compat';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type ComposerActionProps = {
export type ComposerActionProps = {
text: string;
onClick: () => void;
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { memo } from 'preact/compat';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type ComposerActionsProps = {
export type ComposerActionsProps = {
className?: string;
style?: CSSProperties;
children?: ComponentChildren;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createClassName } from '../../helpers/createClassName';

const escapeForRegExp = (string: string) => string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

type FilesDropTargetProps = {
export type FilesDropTargetProps = {
overlayed?: boolean;
overlayText?: string;
accept?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createClassName } from '../../helpers/createClassName';

const handleMouseUp: MouseEventHandler<HTMLButtonElement> = ({ target }) => (target as HTMLButtonElement | null)?.blur();

type OptionsTriggerProps = {
export type OptionsTriggerProps = {
pop: () => void;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/livechat/src/components/Footer/PoweredBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type PoweredByProps = {
export type PoweredByProps = {
className?: string;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { JSXInternal } from 'preact/src/jsx';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type DateInputProps = {
export type DateInputProps = {
name?: string;
value?: string;
placeholder?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { JSXInternal } from 'preact/src/jsx';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type FormFieldProps = {
export type FormFieldProps = {
required?: boolean;
label?: string;
description?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { JSXInternal } from 'preact/src/jsx';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type MultilineTextInputProps = {
export type MultilineTextInputProps = {
rows?: number;
name?: string;
value?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { JSXInternal } from 'preact/src/jsx';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type PasswordInputProps = {
export type PasswordInputProps = {
name?: string;
value?: string;
placeholder?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';
import ArrowIcon from '../../../icons/arrowDown.svg';

type SelectInputProps = {
export type SelectInputProps = {
name?: string;
placeholder?: ComponentChild;
options: { value: string; label: ComponentChild }[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { JSXInternal } from 'preact/src/jsx';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type TextInputProps = {
export type TextInputProps = {
name?: string;
value?: string;
placeholder?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/livechat/src/components/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import i18next from 'i18next';
import type { ComponentChildren } from 'preact';
import type { JSXInternal } from 'preact/src/jsx';

type FormProps = {
export type FormProps = {
onSubmit?: JSXInternal.GenericEventHandler<HTMLFormElement>;
className?: string;
style?: JSXInternal.CSSProperties;
Expand Down
2 changes: 1 addition & 1 deletion packages/livechat/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from './styles.scss';
import type { Theme } from '../../Theme';
import { createClassName } from '../../helpers/createClassName';

type HeaderProps = {
export type HeaderProps = {
children?: ComponentChildren;
theme?: Partial<Theme>;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/livechat/src/components/Header/HeaderAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderActionProps = {
export type HeaderActionProps = {
children?: ComponentChildren;
className?: string;
onClick?: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderActionsProps = {
export type HeaderActionsProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderContentProps = {
export type HeaderContentProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderCustomFieldProps = {
export type HeaderCustomFieldProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderPictureProps = {
export type HeaderPictureProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/livechat/src/components/Header/HeaderPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderPostProps = {
export type HeaderPostProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { toChildArray } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderSubTitleProps = {
export type HeaderSubTitleProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/livechat/src/components/Header/HeaderTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ComponentChildren } from 'preact';
import styles from './styles.scss';
import { createClassName } from '../../helpers/createClassName';

type HeaderTitleProps = {
export type HeaderTitleProps = {
children?: ComponentChildren;
className?: string;
};
Expand Down
4 changes: 3 additions & 1 deletion packages/livechat/src/components/MarkdownBlock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Suspense, lazy } from 'preact/compat';

const Markup = lazy(() => import('@rocket.chat/gazzodown/dist/Markup'));

const MarkdownBlock = ({ text, emoticons }: { text: string; emoticons?: boolean }) => {
export type MarkdownBlockProps = { text: string; emoticons?: boolean };

const MarkdownBlock = ({ text, emoticons }: MarkdownBlockProps) => {
return (
<Suspense fallback={<div>loading...</div>}>
<Markup tokens={parse(text, { emoticons })} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createClassName } from '../../../helpers/createClassName';
import { MessageBubble } from '../MessageBubble';
import styles from './styles.scss';

type AudioAttachmentProps = {
export type AudioAttachmentProps = {
url: string;
className?: string;
t: (key: string) => string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FileAttachmentIcon } from '../FileAttachmentIcon';
import { MessageBubble } from '../MessageBubble';
import styles from './styles.scss';

type FileAttachmentProps = {
export type FileAttachmentProps = {
url: string;
title: string;
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createClassName } from '../../../helpers/createClassName';
import { MessageBubble } from '../MessageBubble';
import styles from './styles.scss';

type ImageAttachmentProps = {
export type ImageAttachmentProps = {
url: string;
className?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';
import { Avatar } from '../../Avatar';

type MessageAvatarsProps = {
export type MessageAvatarsProps = {
avatarResolver: (username: string) => string | undefined;
usernames: string[];
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { triggerAction, UIKitIncomingInteractionType, UIKitIncomingInteractionCo
import { renderMessageBlocks } from '../../uiKit';
import Surface from '../../uiKit/message/Surface';

type MessageBlocksProps = {
export type MessageBlocksProps = {
blocks?: unknown[];
mid?: string;
rid?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { memo } from 'preact/compat';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type MessageBubbleProps = {
export type MessageBubbleProps = {
inverse?: boolean;
nude?: boolean;
quoted?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { memo } from 'preact/compat';
import styles from './styles.scss';
import { createClassName } from '../../../helpers/createClassName';

type MessageContainerProps = {
export type MessageContainerProps = {
id?: string;
compact?: boolean;
reverse?: boolean;
Expand Down
Loading