From 6f4f3422d809987bcd1891908417d49d45c58688 Mon Sep 17 00:00:00 2001 From: David Weber Date: Fri, 14 Jan 2022 23:19:50 +0100 Subject: [PATCH 1/3] Export GraphQlDefinitionWidget This is important for reuse of the widget. Signed-off-by: David Weber --- plugins/api-docs/src/components/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/api-docs/src/components/index.ts b/plugins/api-docs/src/components/index.ts index f4d8034b56..ea40076af4 100644 --- a/plugins/api-docs/src/components/index.ts +++ b/plugins/api-docs/src/components/index.ts @@ -19,5 +19,6 @@ export * from './ApiDefinitionCard'; export * from './ApisCards'; export * from './AsyncApiDefinitionWidget'; export * from './ComponentsCards'; +export * from './GraphQlDefinitionWidget'; export * from './OpenApiDefinitionWidget'; export * from './PlainApiDefinitionWidget'; From c007bea54673a834502943738f25454b17315b93 Mon Sep 17 00:00:00 2001 From: David Weber Date: Sun, 16 Jan 2022 12:46:24 +0100 Subject: [PATCH 2/3] Add change set Signed-off-by: David Weber --- .changeset/eighty-dragons-notice.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eighty-dragons-notice.md diff --git a/.changeset/eighty-dragons-notice.md b/.changeset/eighty-dragons-notice.md new file mode 100644 index 0000000000..34a0cb0d59 --- /dev/null +++ b/.changeset/eighty-dragons-notice.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-api-docs': patch +--- + +Export `GraphQlDefinitionWidget` to be reused. From 31ab7826864528db6684156eaa88e1c68523ea18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 17 Jan 2022 17:01:32 +0100 Subject: [PATCH 3/3] api report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- plugins/api-docs/api-report.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/api-docs/api-report.md b/plugins/api-docs/api-report.md index f0e8c06aab..6d5f16ac19 100644 --- a/plugins/api-docs/api-report.md +++ b/plugins/api-docs/api-report.md @@ -175,6 +175,20 @@ export const EntityProvidingComponentsCard: ({ variant?: 'gridItem' | undefined; }) => JSX.Element; +// Warning: (ae-missing-release-tag) "GraphQlDefinitionWidget" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export const GraphQlDefinitionWidget: ( + props: GraphQlDefinitionWidgetProps, +) => JSX.Element; + +// Warning: (ae-missing-release-tag) "GraphQlDefinitionWidgetProps" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type GraphQlDefinitionWidgetProps = { + definition: string; +}; + // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts // Warning: (ae-missing-release-tag) "HasApisCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) //