From 2f50f702c573e92c1ec946031a989f31cfeb9208 Mon Sep 17 00:00:00 2001 From: Kalle Ericson <7943407+kalleericson@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:43:18 +0100 Subject: [PATCH] Updating report Signed-off-by: Kalle Ericson <7943407+kalleericson@users.noreply.github.com> --- plugins/scaffolder-react/report-alpha.api.md | 16 +++++++++++----- .../components/TemplateCard/TemplateCard.tsx | 1 + .../src/next/components/TemplateCard/index.ts | 6 +++++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/plugins/scaffolder-react/report-alpha.api.md b/plugins/scaffolder-react/report-alpha.api.md index 7084625ad4..1dd44bb00a 100644 --- a/plugins/scaffolder-react/report-alpha.api.md +++ b/plugins/scaffolder-react/report-alpha.api.md @@ -266,14 +266,20 @@ export interface TaskStepsProps { // @alpha export const TemplateCard: (props: TemplateCardProps) => React_2.JSX.Element; +// @alpha (undocumented) +export interface TemplateCardAdditionalLink { + // (undocumented) + icon: IconComponent; + // (undocumented) + text: string; + // (undocumented) + url: string; +} + // @alpha export interface TemplateCardProps { // (undocumented) - additionalLinks?: { - icon: IconComponent; - text: string; - url: string; - }[]; + additionalLinks?: TemplateCardAdditionalLink[]; // (undocumented) onSelected?: (template: TemplateEntityV1beta3) => void; // (undocumented) diff --git a/plugins/scaffolder-react/src/next/components/TemplateCard/TemplateCard.tsx b/plugins/scaffolder-react/src/next/components/TemplateCard/TemplateCard.tsx index 73b8e71de9..dab69e092d 100644 --- a/plugins/scaffolder-react/src/next/components/TemplateCard/TemplateCard.tsx +++ b/plugins/scaffolder-react/src/next/components/TemplateCard/TemplateCard.tsx @@ -37,6 +37,7 @@ const useStyles = makeStyles(() => ({ actionContainer: { padding: '16px', flex: 1, alignItems: 'flex-end' }, })); +/** @alpha */ export interface TemplateCardAdditionalLink { icon: IconComponent; text: string; diff --git a/plugins/scaffolder-react/src/next/components/TemplateCard/index.ts b/plugins/scaffolder-react/src/next/components/TemplateCard/index.ts index 529aa938e4..768e5068dc 100644 --- a/plugins/scaffolder-react/src/next/components/TemplateCard/index.ts +++ b/plugins/scaffolder-react/src/next/components/TemplateCard/index.ts @@ -13,4 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { TemplateCard, type TemplateCardProps } from './TemplateCard'; +export { + TemplateCard, + type TemplateCardProps, + type TemplateCardAdditionalLink, +} from './TemplateCard';