core-components: update API report for LogViewer + fixes

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-12-06 00:57:35 +01:00
committed by blam
parent 1efed71f60
commit 85d54b888c
3 changed files with 47 additions and 0 deletions
+42
View File
@@ -605,6 +605,48 @@ export type LinkProps = LinkProps_2 &
// @public (undocumented)
export type LoginRequestListItemClassKey = 'root';
// @public
export function LogViewer(props: LogViewerProps): JSX.Element;
// @public
export type LogViewerClassKey =
| 'root'
| 'header'
| 'log'
| 'line'
| 'lineSelected'
| 'lineCopyButton'
| 'lineNumber'
| 'textHighlight'
| 'textSelectedHighlight'
| 'modifierBold'
| 'modifierItalic'
| 'modifierUnderline'
| 'modifierForegroundBlack'
| 'modifierForegroundRed'
| 'modifierForegroundGreen'
| 'modifierForegroundYellow'
| 'modifierForegroundBlue'
| 'modifierForegroundMagenta'
| 'modifierForegroundCyan'
| 'modifierForegroundWhite'
| 'modifierForegroundGrey'
| 'modifierBackgroundBlack'
| 'modifierBackgroundRed'
| 'modifierBackgroundGreen'
| 'modifierBackgroundYellow'
| 'modifierBackgroundBlue'
| 'modifierBackgroundMagenta'
| 'modifierBackgroundCyan'
| 'modifierBackgroundWhite'
| 'modifierBackgroundGrey';
// @public
export interface LogViewerProps {
className?: string;
text: string;
}
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "MarkdownContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -23,6 +23,8 @@ const RealLogViewer = lazy(() =>
/**
* The properties for the LogViewer component.
*
* @public
*/
export interface LogViewerProps {
/**
@@ -47,6 +49,8 @@ export interface LogViewerProps {
* log is sized automatically to fill the available vertical space. This means
* it may often be needed to wrap the LogViewer in a container that provides it
* with a fixed amount of space.
*
* @public
*/
export function LogViewer(props: LogViewerProps) {
const { Progress } = useApp().getComponents();
@@ -19,6 +19,7 @@ import * as colors from '@material-ui/core/colors';
export const HEADER_SIZE = 40;
/** @public Class keys for overriding LogViewer styles */
export type LogViewerClassKey =
| 'root'
| 'header'