update changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2022-02-25 12:08:55 +01:00
parent 2bd91261a6
commit 231d0dc8df
3 changed files with 48 additions and 3 deletions
+30 -2
View File
@@ -47,7 +47,32 @@ export const DocsResultListItem: (
) => JSX.Element;
// @public
export const DocsTable: (props: DocsTableProps) => JSX.Element | null;
export const DocsTable: {
(props: DocsTableProps): JSX.Element | null;
columns: {
createNameColumn(): TableColumn<DocsTableRow>;
createOwnerColumn(): TableColumn<DocsTableRow>;
createTypeColumn(): TableColumn<DocsTableRow>;
};
actions: {
createCopyDocsUrlAction(copyToClipboard: Function): (row: DocsTableRow) => {
icon: () => JSX.Element;
tooltip: string;
onClick: () => any;
};
createStarEntityAction(
isStarredEntity: Function,
toggleStarredEntity: Function,
): ({ entity }: DocsTableRow) => {
cellStyle: {
paddingLeft: string;
};
icon: () => JSX.Element;
tooltip: string;
onClick: () => any;
};
};
};
// @public
export type DocsTableProps = {
@@ -199,7 +224,10 @@ export type TechDocsCustomHomeProps = {
// @public
export type TechDocsEntityMetadata = Entity & {
locationMetadata?: LocationSpec;
locationMetadata?: {
type: string;
target: string;
};
};
// @public
@@ -131,3 +131,6 @@ export const DocsTable = (props: DocsTableProps) => {
</>
);
};
DocsTable.columns = columnFactories;
DocsTable.actions = actionFactories;