@@ -0,0 +1,46 @@
|
||||
## API Report File for "@backstage/plugin-stack-overflow"
|
||||
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
/// <reference types="react" />
|
||||
|
||||
import { BackstagePlugin } from '@backstage/core-plugin-api';
|
||||
import { ComponentRenderer } from '@backstage/plugin-home/src/extensions';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
// @public
|
||||
export const HomePageStackOverflowQuestions: (
|
||||
props: ComponentRenderer & {
|
||||
title?: string | undefined;
|
||||
} & StackOverflowQuestionsContentProps,
|
||||
) => JSX.Element;
|
||||
|
||||
// @public
|
||||
export const stackOverflowPlugin: BackstagePlugin<{}, {}>;
|
||||
|
||||
// @public
|
||||
export type StackOverflowQuestion = {
|
||||
title: string;
|
||||
link: string;
|
||||
owner: Record<string, string>;
|
||||
tags: string[];
|
||||
answer_count: number;
|
||||
};
|
||||
|
||||
// @public
|
||||
export type StackOverflowQuestionsContentProps = {
|
||||
requestParams: StackOverflowQuestionsRequestParams;
|
||||
};
|
||||
|
||||
// @public
|
||||
export type StackOverflowQuestionsRequestParams = {
|
||||
[key: string]: string | string[] | number;
|
||||
};
|
||||
|
||||
// @public
|
||||
export const StackOverflowSearchResultListItem: (props: {
|
||||
result: any;
|
||||
icon?: ReactNode;
|
||||
}) => JSX.Element;
|
||||
```
|
||||
@@ -13,9 +13,18 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Stack Overflow frontend plugin
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
export {
|
||||
stackOverflowPlugin,
|
||||
StackOverflowSearchResultListItem,
|
||||
HomePageStackOverflowQuestions,
|
||||
} from './plugin';
|
||||
export type {
|
||||
StackOverflowQuestion,
|
||||
StackOverflowQuestionsContentProps,
|
||||
StackOverflowQuestionsRequestParams,
|
||||
} from './types';
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
createPlugin,
|
||||
createComponentExtension,
|
||||
@@ -20,6 +21,11 @@ import {
|
||||
import { createCardExtension } from '@backstage/plugin-home';
|
||||
import { StackOverflowQuestionsContentProps } from './types';
|
||||
|
||||
/**
|
||||
* The Backstage plugin that holds stack overflow specific components
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const stackOverflowPlugin = createPlugin({
|
||||
id: 'stack-overflow',
|
||||
});
|
||||
@@ -29,7 +35,6 @@ export const stackOverflowPlugin = createPlugin({
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
|
||||
export const StackOverflowSearchResultListItem = stackOverflowPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'StackOverflowResultListItem',
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Type representing a stack overflow question
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type StackOverflowQuestion = {
|
||||
title: string;
|
||||
link: string;
|
||||
@@ -22,10 +27,20 @@ export type StackOverflowQuestion = {
|
||||
answer_count: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Props for HomePageStackOverflowQuestions
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type StackOverflowQuestionsContentProps = {
|
||||
requestParams: StackOverflowQuestionsRequestParams;
|
||||
};
|
||||
|
||||
/**
|
||||
* Type representing the request parameters accepted by the HomePageStackOverflowQuestions component
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type StackOverflowQuestionsRequestParams = {
|
||||
[key: string]: string | string[] | number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user