* Update all non-major dependencies * Delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Prettier Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { type LegacyRef } from "react";
|
|
import { type MatrixEvent } from "matrix-js-sdk/src/matrix";
|
|
|
|
import type React from "react";
|
|
import { type MediaEventHelper } from "../../../utils/MediaEventHelper";
|
|
import type EditorStateTransfer from "../../../utils/EditorStateTransfer";
|
|
import { type RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks";
|
|
import { type GetRelationsForEvent } from "../rooms/EventTile";
|
|
|
|
export interface IBodyProps {
|
|
mxEvent: MatrixEvent;
|
|
|
|
/* a list of words to highlight */
|
|
highlights?: string[];
|
|
|
|
/* link URL for the highlights */
|
|
highlightLink?: string;
|
|
|
|
/* callback called when dynamic content in events are loaded */
|
|
onHeightChanged?: () => void;
|
|
|
|
showUrlPreview?: boolean;
|
|
forExport?: boolean;
|
|
maxImageHeight?: number;
|
|
replacingEventId?: string;
|
|
editState?: EditorStateTransfer;
|
|
onMessageAllowed?: () => void; // TODO: Docs
|
|
permalinkCreator?: RoomPermalinkCreator;
|
|
mediaEventHelper?: MediaEventHelper;
|
|
|
|
/*
|
|
If present and `true`, the message has been marked as hidden pending moderation
|
|
(see MSC3531) **but** the current user can see the message nevertheless (with
|
|
a marker), either because they are a moderator or because they are the original
|
|
author of the message.
|
|
*/
|
|
isSeeingThroughMessageHiddenForModeration?: boolean;
|
|
|
|
// helper function to access relations for this event
|
|
getRelationsForEvent?: GetRelationsForEvent;
|
|
|
|
ref?: React.RefObject<any> | LegacyRef<any>;
|
|
|
|
// Set to `true` to disable interactions (e.g. video controls) and to remove controls from the tab order.
|
|
// This may be useful when displaying a preview of the event.
|
|
inhibitInteraction?: boolean;
|
|
}
|