@backstage/plugin-techdocs 0.0.0-nightly-20220417023605 → 0.0.0-nightly-20220422024928

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # @backstage/plugin-techdocs
2
2
 
3
- ## 0.0.0-nightly-20220417023605
3
+ ## 0.0.0-nightly-20220422024928
4
+
5
+ ### Patch Changes
6
+
7
+ - a307a14be0: Removed dependency on `@backstage/core-app-api`.
8
+ - Updated dependencies
9
+ - @backstage/integration@0.0.0-nightly-20220422024928
10
+ - @backstage/integration-react@0.0.0-nightly-20220422024928
11
+ - @backstage/plugin-search-react@0.0.0-nightly-20220422024928
12
+
13
+ ## 1.1.0
4
14
 
5
15
  ### Minor Changes
6
16
 
@@ -65,6 +75,7 @@
65
75
  - 230ad0826f: Bump to using `@types/node` v16
66
76
  - f0fb9153b7: Fix broken query selectors on techdocs
67
77
  - 9975ff9852: Applied the fix from version 1.0.1 of this package, which is part of the v1.0.2 release of Backstage.
78
+ - 3ba256c389: Fixed a bug preventing custom TechDocs reader page implementations from rendering without being double-wrapped in the `<TechDocsReaderPage />` component.
68
79
  - fe53fe97d7: Fix permalink scrolling for anchors where the id starts with a number.
69
80
  - 0152c0de22: Some documentation layout tweaks:
70
81
 
@@ -75,16 +86,17 @@
75
86
  - footer link width
76
87
  - sidebar table of contents scroll
77
88
 
89
+ - 3ba256c389: Fixed a bug that caused addons in the `Subheader` location to break the default TechDocs reader page layout.
78
90
  - Updated dependencies
79
- - @backstage/integration@0.0.0-nightly-20220417023605
80
- - @backstage/plugin-catalog-react@0.0.0-nightly-20220417023605
81
- - @backstage/catalog-model@0.0.0-nightly-20220417023605
82
- - @backstage/core-app-api@0.0.0-nightly-20220417023605
83
- - @backstage/core-components@0.0.0-nightly-20220417023605
84
- - @backstage/core-plugin-api@0.0.0-nightly-20220417023605
85
- - @backstage/plugin-search-react@0.0.0-nightly-20220417023605
86
- - @backstage/plugin-techdocs-react@0.0.0-nightly-20220417023605
87
- - @backstage/integration-react@0.0.0-nightly-20220417023605
91
+ - @backstage/integration@1.1.0
92
+ - @backstage/plugin-catalog-react@1.0.1
93
+ - @backstage/catalog-model@1.0.1
94
+ - @backstage/core-app-api@1.0.1
95
+ - @backstage/core-components@0.9.3
96
+ - @backstage/core-plugin-api@1.0.1
97
+ - @backstage/plugin-search-react@0.1.0
98
+ - @backstage/plugin-techdocs-react@0.1.0
99
+ - @backstage/integration-react@1.0.1
88
100
 
89
101
  ## 1.1.0-next.3
90
102
 
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import useAsync from 'react-use/lib/useAsync';
3
3
  import { makeStyles } from '@material-ui/core';
4
4
  import { catalogApiRef, CATALOG_FILTER_EXISTS, useEntityOwnership } from '@backstage/plugin-catalog-react';
5
- import { T as TechDocsPageWrapper, D as DocsTable, a as DocsCardGrid } from './index-fba8389b.esm.js';
5
+ import { T as TechDocsPageWrapper, D as DocsTable, a as DocsCardGrid } from './index-f721929f.esm.js';
6
6
  import { Content, Progress, WarningPanel, CodeSnippet, HeaderTabs, ContentHeader, SupportButton } from '@backstage/core-components';
7
7
  import { useApi } from '@backstage/core-plugin-api';
8
8
  import '@backstage/errors';
@@ -36,7 +36,6 @@ import 'lodash';
36
36
  import '@material-ui/icons/Share';
37
37
  import '@material-ui/icons/Star';
38
38
  import '@material-ui/icons/StarBorder';
39
- import '@backstage/core-app-api';
40
39
 
41
40
  const panels = {
42
41
  DocsTable,
@@ -133,4 +132,4 @@ const TechDocsCustomHome = (props) => {
133
132
  };
134
133
 
135
134
  export { TechDocsCustomHome };
136
- //# sourceMappingURL=TechDocsCustomHome-b1e53b51.esm.js.map
135
+ //# sourceMappingURL=TechDocsCustomHome-9363196c.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TechDocsCustomHome-b1e53b51.esm.js","sources":["../../src/home/components/TechDocsCustomHome.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useState } from 'react';\nimport useAsync from 'react-use/lib/useAsync';\nimport { makeStyles } from '@material-ui/core';\nimport { CSSProperties } from '@material-ui/styles';\nimport {\n CATALOG_FILTER_EXISTS,\n catalogApiRef,\n CatalogApi,\n useEntityOwnership,\n} from '@backstage/plugin-catalog-react';\nimport { Entity } from '@backstage/catalog-model';\nimport { DocsTable } from './Tables';\nimport { DocsCardGrid } from './Grids';\nimport { TechDocsPageWrapper } from './TechDocsPageWrapper';\n\nimport {\n CodeSnippet,\n Content,\n HeaderTabs,\n Progress,\n WarningPanel,\n SupportButton,\n ContentHeader,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\n\nconst panels = {\n DocsTable: DocsTable,\n DocsCardGrid: DocsCardGrid,\n};\n\n/**\n * Available panel types\n *\n * @public\n */\nexport type PanelType = 'DocsCardGrid' | 'DocsTable';\n\n/**\n * Type representing a TechDocsCustomHome panel.\n *\n * @public\n */\nexport interface PanelConfig {\n title: string;\n description: string;\n panelType: PanelType;\n panelCSS?: CSSProperties;\n filterPredicate: ((entity: Entity) => boolean) | string;\n}\n\n/**\n * Type representing a TechDocsCustomHome tab.\n *\n * @public\n */\nexport interface TabConfig {\n label: string;\n panels: PanelConfig[];\n}\n\n/**\n * Type representing a list of TechDocsCustomHome tabs.\n *\n * @public\n */\nexport type TabsConfig = TabConfig[];\n\nconst CustomPanel = ({\n config,\n entities,\n index,\n}: {\n config: PanelConfig;\n entities: Entity[];\n index: number;\n}) => {\n const useStyles = makeStyles({\n panelContainer: {\n marginBottom: '2rem',\n ...(config.panelCSS ? config.panelCSS : {}),\n },\n });\n const classes = useStyles();\n const { loading: loadingOwnership, isOwnedEntity } = useEntityOwnership();\n\n const Panel = panels[config.panelType];\n\n const shownEntities = entities.filter(entity => {\n if (config.filterPredicate === 'ownedByUser') {\n if (loadingOwnership) {\n return false;\n }\n return isOwnedEntity(entity);\n }\n\n return (\n typeof config.filterPredicate === 'function' &&\n config.filterPredicate(entity)\n );\n });\n\n return (\n <>\n <ContentHeader title={config.title} description={config.description}>\n {index === 0 ? (\n <SupportButton>\n Discover documentation in your ecosystem.\n </SupportButton>\n ) : null}\n </ContentHeader>\n <div className={classes.panelContainer}>\n <Panel data-testid=\"techdocs-custom-panel\" entities={shownEntities} />\n </div>\n </>\n );\n};\n\n/**\n * Props for {@link TechDocsCustomHome}\n *\n * @public\n */\nexport type TechDocsCustomHomeProps = {\n tabsConfig: TabsConfig;\n};\n\nexport const TechDocsCustomHome = (props: TechDocsCustomHomeProps) => {\n const { tabsConfig } = props;\n const [selectedTab, setSelectedTab] = useState<number>(0);\n const catalogApi: CatalogApi = useApi(catalogApiRef);\n\n const {\n value: entities,\n loading,\n error,\n } = useAsync(async () => {\n const response = await catalogApi.getEntities({\n filter: {\n 'metadata.annotations.backstage.io/techdocs-ref': CATALOG_FILTER_EXISTS,\n },\n fields: [\n 'apiVersion',\n 'kind',\n 'metadata',\n 'relations',\n 'spec.owner',\n 'spec.type',\n ],\n });\n return response.items.filter((entity: Entity) => {\n return !!entity.metadata.annotations?.['backstage.io/techdocs-ref'];\n });\n });\n\n const currentTabConfig = tabsConfig[selectedTab];\n\n if (loading) {\n return (\n <TechDocsPageWrapper>\n <Content>\n <Progress />\n </Content>\n </TechDocsPageWrapper>\n );\n }\n\n if (error) {\n return (\n <TechDocsPageWrapper>\n <Content>\n <WarningPanel\n severity=\"error\"\n title=\"Could not load available documentation.\"\n >\n <CodeSnippet language=\"text\" text={error.toString()} />\n </WarningPanel>\n </Content>\n </TechDocsPageWrapper>\n );\n }\n\n return (\n <TechDocsPageWrapper>\n <HeaderTabs\n selectedIndex={selectedTab}\n onChange={index => setSelectedTab(index)}\n tabs={tabsConfig.map(({ label }, index) => ({\n id: index.toString(),\n label,\n }))}\n />\n <Content data-testid=\"techdocs-content\">\n {currentTabConfig.panels.map((config, index) => (\n <CustomPanel\n key={index}\n config={config}\n entities={!!entities ? entities : []}\n index={index}\n />\n ))}\n </Content>\n </TechDocsPageWrapper>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,MAAM,GAAG;AACf,EAAE,SAAS;AACX,EAAE,YAAY;AACd,CAAC,CAAC;AACF,MAAM,WAAW,GAAG,CAAC;AACrB,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,KAAK;AACP,CAAC,KAAK;AACN,EAAE,MAAM,SAAS,GAAG,UAAU,CAAC;AAC/B,IAAI,cAAc,EAAE;AACpB,MAAM,YAAY,EAAE,MAAM;AAC1B,MAAM,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,EAAE;AAC/C,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;AAC9B,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,GAAG,kBAAkB,EAAE,CAAC;AAC5E,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACzC,EAAE,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK;AACpD,IAAI,IAAI,MAAM,CAAC,eAAe,KAAK,aAAa,EAAE;AAClD,MAAM,IAAI,gBAAgB,EAAE;AAC5B,QAAQ,OAAO,KAAK,CAAC;AACrB,OAAO;AACP,MAAM,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AACnC,KAAK;AACL,IAAI,OAAO,OAAO,M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IAAI,kBAAkB,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE;AACxH,IAAI,aAAa,EAAE,WAAW;AAC9B,IAAI,QAAQ,EAAE,CAAC,KAAK,KAAK,cAAc,CAAC,KAAK,CAAC;AAC9C,IAAI,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,MAAM;AAChD,MAAM,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE;AAC1B,MAAM,KAAK;AACX,KAAK,CAAC,CAAC;AACP,GAAG,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE;AACnD,IAAI,aAAa,EAAE,kBAAkB;AACrC,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE;AACrG,IAAI,GAAG,EAAE,KAAK;AACd,IAAI,MAAM;AACV,IAAI,QAAQ,EAAE,CAAC,CAAC,QAAQ,GAAG,QAAQ,GAAG,EAAE;AACxC,IAAI,KAAK;AACT,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACR;;;;"}
1
+ {"version":3,"file":"TechDocsCustomHome-9363196c.esm.js","sources":["../../src/home/components/TechDocsCustomHome.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useState } from 'react';\nimport useAsync from 'react-use/lib/useAsync';\nimport { makeStyles } from '@material-ui/core';\nimport { CSSProperties } from '@material-ui/styles';\nimport {\n CATALOG_FILTER_EXISTS,\n catalogApiRef,\n CatalogApi,\n useEntityOwnership,\n} from '@backstage/plugin-catalog-react';\nimport { Entity } from '@backstage/catalog-model';\nimport { DocsTable } from './Tables';\nimport { DocsCardGrid } from './Grids';\nimport { TechDocsPageWrapper } from './TechDocsPageWrapper';\n\nimport {\n CodeSnippet,\n Content,\n HeaderTabs,\n Progress,\n WarningPanel,\n SupportButton,\n ContentHeader,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\n\nconst panels = {\n DocsTable: DocsTable,\n DocsCardGrid: DocsCardGrid,\n};\n\n/**\n * Available panel types\n *\n * @public\n */\nexport type PanelType = 'DocsCardGrid' | 'DocsTable';\n\n/**\n * Type representing a TechDocsCustomHome panel.\n *\n * @public\n */\nexport interface PanelConfig {\n title: string;\n description: string;\n panelType: PanelType;\n panelCSS?: CSSProperties;\n filterPredicate: ((entity: Entity) => boolean) | string;\n}\n\n/**\n * Type representing a TechDocsCustomHome tab.\n *\n * @public\n */\nexport interface TabConfig {\n label: string;\n panels: PanelConfig[];\n}\n\n/**\n * Type representing a list of TechDocsCustomHome tabs.\n *\n * @public\n */\nexport type TabsConfig = TabConfig[];\n\nconst CustomPanel = ({\n config,\n entities,\n index,\n}: {\n config: PanelConfig;\n entities: Entity[];\n index: number;\n}) => {\n const useStyles = makeStyles({\n panelContainer: {\n marginBottom: '2rem',\n ...(config.panelCSS ? config.panelCSS : {}),\n },\n });\n const classes = useStyles();\n const { loading: loadingOwnership, isOwnedEntity } = useEntityOwnership();\n\n const Panel = panels[config.panelType];\n\n const shownEntities = entities.filter(entity => {\n if (config.filterPredicate === 'ownedByUser') {\n if (loadingOwnership) {\n return false;\n }\n return isOwnedEntity(entity);\n }\n\n return (\n typeof config.filterPredicate === 'function' &&\n config.filterPredicate(entity)\n );\n });\n\n return (\n <>\n <ContentHeader title={config.title} description={config.description}>\n {index === 0 ? (\n <SupportButton>\n Discover documentation in your ecosystem.\n </SupportButton>\n ) : null}\n </ContentHeader>\n <div className={classes.panelContainer}>\n <Panel data-testid=\"techdocs-custom-panel\" entities={shownEntities} />\n </div>\n </>\n );\n};\n\n/**\n * Props for {@link TechDocsCustomHome}\n *\n * @public\n */\nexport type TechDocsCustomHomeProps = {\n tabsConfig: TabsConfig;\n};\n\nexport const TechDocsCustomHome = (props: TechDocsCustomHomeProps) => {\n const { tabsConfig } = props;\n const [selectedTab, setSelectedTab] = useState<number>(0);\n const catalogApi: CatalogApi = useApi(catalogApiRef);\n\n const {\n value: entities,\n loading,\n error,\n } = useAsync(async () => {\n const response = await catalogApi.getEntities({\n filter: {\n 'metadata.annotations.backstage.io/techdocs-ref': CATALOG_FILTER_EXISTS,\n },\n fields: [\n 'apiVersion',\n 'kind',\n 'metadata',\n 'relations',\n 'spec.owner',\n 'spec.type',\n ],\n });\n return response.items.filter((entity: Entity) => {\n return !!entity.metadata.annotations?.['backstage.io/techdocs-ref'];\n });\n });\n\n const currentTabConfig = tabsConfig[selectedTab];\n\n if (loading) {\n return (\n <TechDocsPageWrapper>\n <Content>\n <Progress />\n </Content>\n </TechDocsPageWrapper>\n );\n }\n\n if (error) {\n return (\n <TechDocsPageWrapper>\n <Content>\n <WarningPanel\n severity=\"error\"\n title=\"Could not load available documentation.\"\n >\n <CodeSnippet language=\"text\" text={error.toString()} />\n </WarningPanel>\n </Content>\n </TechDocsPageWrapper>\n );\n }\n\n return (\n <TechDocsPageWrapper>\n <HeaderTabs\n selectedIndex={selectedTab}\n onChange={index => setSelectedTab(index)}\n tabs={tabsConfig.map(({ label }, index) => ({\n id: index.toString(),\n label,\n }))}\n />\n <Content data-testid=\"techdocs-content\">\n {currentTabConfig.panels.map((config, index) => (\n <CustomPanel\n key={index}\n config={config}\n entities={!!entities ? entities : []}\n index={index}\n />\n ))}\n </Content>\n </TechDocsPageWrapper>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,MAAM,GAAG;AACf,EAAE,SAAS;AACX,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,IAAI,aAAa,EAAE,kBAAkB;AACrC,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE;AACrG,IAAI,GAAG,EAAE,KAAK;AACd,IAAI,MAAM;AACV,IAAI,QAAQ,EAAE,CAAC,CAAC,QAAQ,GAAG,QAAQ,GAAG,EAAE;AACxC,IAAI,KAAK;AACT,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACR;;;;"}
@@ -1,4 +1,4 @@
1
- export { c as TechDocsReaderLayout, b as TechDocsReaderPage } from './index-fba8389b.esm.js';
1
+ export { c as TechDocsReaderLayout, b as TechDocsReaderPage } from './index-f721929f.esm.js';
2
2
  import '@backstage/core-plugin-api';
3
3
  import '@backstage/errors';
4
4
  import 'event-source-polyfill';
@@ -36,5 +36,4 @@ import 'lodash';
36
36
  import '@material-ui/icons/Share';
37
37
  import '@material-ui/icons/Star';
38
38
  import '@material-ui/icons/StarBorder';
39
- import '@backstage/core-app-api';
40
- //# sourceMappingURL=index-7b32409a.esm.js.map
39
+ //# sourceMappingURL=index-da3a5884.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-da3a5884.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -35,7 +35,6 @@ import { capitalize } from 'lodash';
35
35
  import ShareIcon from '@material-ui/icons/Share';
36
36
  import Star from '@material-ui/icons/Star';
37
37
  import StarBorder from '@material-ui/icons/StarBorder';
38
- import { FlatRoutes } from '@backstage/core-app-api';
39
38
 
40
39
  const techdocsStorageApiRef = createApiRef({
41
40
  id: "plugin.techdocs.storageservice"
@@ -154,7 +153,7 @@ class TechDocsStorageClient {
154
153
  }
155
154
  }
156
155
 
157
- const useStyles$3 = makeStyles({
156
+ const useStyles$4 = makeStyles({
158
157
  flexContainer: {
159
158
  flexWrap: "wrap"
160
159
  },
@@ -171,7 +170,7 @@ const TechDocsSearchResultListItem = (props) => {
171
170
  asLink = true,
172
171
  title
173
172
  } = props;
174
- const classes = useStyles$3();
173
+ const classes = useStyles$4();
175
174
  const TextItem = () => {
176
175
  var _a;
177
176
  return /* @__PURE__ */ React.createElement(ListItemText, {
@@ -198,7 +197,7 @@ const TechDocsSearchResultListItem = (props) => {
198
197
  return /* @__PURE__ */ React.createElement(LinkWrapper, null, /* @__PURE__ */ React.createElement(ListItemWrapper, null, /* @__PURE__ */ React.createElement(TextItem, null)));
199
198
  };
200
199
 
201
- const useStyles$2 = makeStyles({
200
+ const useStyles$3 = makeStyles({
202
201
  root: {
203
202
  width: "100%"
204
203
  }
@@ -213,7 +212,7 @@ const TechDocsSearchBar = (props) => {
213
212
  setFilters,
214
213
  result: { loading, value: searchVal }
215
214
  } = useSearch();
216
- const classes = useStyles$2();
215
+ const classes = useStyles$3();
217
216
  const [options, setOptions] = useState([]);
218
217
  useEffect(() => {
219
218
  let mounted = true;
@@ -396,7 +395,7 @@ const TechDocsNotFound = ({ errorMessage }) => {
396
395
  });
397
396
  };
398
397
 
399
- const useStyles$1 = makeStyles((theme) => ({
398
+ const useStyles$2 = makeStyles((theme) => ({
400
399
  root: {
401
400
  marginBottom: theme.spacing(2)
402
401
  },
@@ -407,7 +406,7 @@ const useStyles$1 = makeStyles((theme) => ({
407
406
  }));
408
407
  const TechDocsStateIndicator = () => {
409
408
  let StateAlert = null;
410
- const classes = useStyles$1();
409
+ const classes = useStyles$2();
411
410
  const {
412
411
  state,
413
412
  contentReload,
@@ -1591,7 +1590,7 @@ const useTechDocsReaderDom = (entityRef) => {
1591
1590
  return dom;
1592
1591
  };
1593
1592
 
1594
- const useStyles = makeStyles({
1593
+ const useStyles$1 = makeStyles({
1595
1594
  search: {
1596
1595
  width: "100%",
1597
1596
  "@media (min-width: 76.1875em)": {
@@ -1602,7 +1601,7 @@ const useStyles = makeStyles({
1602
1601
  });
1603
1602
  const TechDocsReaderPageContent = withTechDocsReaderProvider((props) => {
1604
1603
  const { withSearch = true, onReady } = props;
1605
- const classes = useStyles();
1604
+ const classes = useStyles$1();
1606
1605
  const addons = useTechDocsAddons();
1607
1606
  const { entityRef, shadowRoot, setShadowRoot } = useTechDocsReaderPage();
1608
1607
  const dom = useTechDocsReaderDom(entityRef);
@@ -1753,19 +1752,24 @@ const TechDocsReaderPageHeader = (props) => {
1753
1752
  }, /* @__PURE__ */ React.createElement("title", null, tabTitle)), labels, children, addons.renderComponentsByLocation(TechDocsAddonLocations.Header));
1754
1753
  };
1755
1754
 
1756
- const TechDocsReaderPageSubheader = withStyles((theme) => ({
1755
+ const useStyles = makeStyles((theme) => ({
1757
1756
  root: {
1758
1757
  gridArea: "pageSubheader",
1759
1758
  flexDirection: "column",
1760
1759
  minHeight: "auto",
1761
1760
  padding: theme.spacing(3, 3, 0)
1762
1761
  }
1763
- }))(({ toolbarProps }) => {
1762
+ }));
1763
+ const TechDocsReaderPageSubheader = ({
1764
+ toolbarProps
1765
+ }) => {
1766
+ const classes = useStyles();
1764
1767
  const addons = useTechDocsAddons();
1765
1768
  const subheaderAddons = addons.renderComponentsByLocation(TechDocsAddonLocations.Subheader);
1766
1769
  if (!subheaderAddons)
1767
1770
  return null;
1768
1771
  return /* @__PURE__ */ React.createElement(Toolbar, {
1772
+ classes,
1769
1773
  ...toolbarProps
1770
1774
  }, subheaderAddons && /* @__PURE__ */ React.createElement(Box, {
1771
1775
  display: "flex",
@@ -1773,7 +1777,7 @@ const TechDocsReaderPageSubheader = withStyles((theme) => ({
1773
1777
  width: "100%",
1774
1778
  flexWrap: "wrap"
1775
1779
  }, subheaderAddons));
1776
- });
1780
+ };
1777
1781
 
1778
1782
  const TechDocsReaderLayout = ({
1779
1783
  withSearch,
@@ -1796,9 +1800,9 @@ const TechDocsReaderPage$1 = (props) => {
1796
1800
  const { type } = child;
1797
1801
  return !((_b = (_a = type == null ? void 0 : type.__backstage_data) == null ? void 0 : _a.map) == null ? void 0 : _b.get(TECHDOCS_ADDONS_WRAPPER_KEY));
1798
1802
  });
1799
- return page || /* @__PURE__ */ React.createElement(TechDocsReaderPageProvider, {
1803
+ return /* @__PURE__ */ React.createElement(TechDocsReaderPageProvider, {
1800
1804
  entityRef
1801
- }, /* @__PURE__ */ React.createElement(TechDocsReaderLayout, null));
1805
+ }, page || /* @__PURE__ */ React.createElement(TechDocsReaderLayout, null));
1802
1806
  }
1803
1807
  return /* @__PURE__ */ React.createElement(TechDocsReaderPageProvider, {
1804
1808
  entityRef
@@ -2109,7 +2113,7 @@ const EntityTechdocsContent = techdocsPlugin.provide(createRoutableExtension({
2109
2113
  }));
2110
2114
  const TechDocsCustomHome = techdocsPlugin.provide(createRoutableExtension({
2111
2115
  name: "TechDocsCustomHome",
2112
- component: () => import('./TechDocsCustomHome-b1e53b51.esm.js').then((m) => m.TechDocsCustomHome),
2116
+ component: () => import('./TechDocsCustomHome-9363196c.esm.js').then((m) => m.TechDocsCustomHome),
2113
2117
  mountPoint: rootRouteRef
2114
2118
  }));
2115
2119
  const TechDocsIndexPage$2 = techdocsPlugin.provide(createRoutableExtension({
@@ -2119,7 +2123,7 @@ const TechDocsIndexPage$2 = techdocsPlugin.provide(createRoutableExtension({
2119
2123
  }));
2120
2124
  const TechDocsReaderPage = techdocsPlugin.provide(createRoutableExtension({
2121
2125
  name: "TechDocsReaderPage",
2122
- component: () => import('./index-7b32409a.esm.js').then((m) => m.TechDocsReaderPage),
2126
+ component: () => import('./index-da3a5884.esm.js').then((m) => m.TechDocsReaderPage),
2123
2127
  mountPoint: rootDocsRouteRef
2124
2128
  }));
2125
2129
 
@@ -2166,8 +2170,7 @@ const EmbeddedDocsRouter = (props) => {
2166
2170
  annotation: TECHDOCS_ANNOTATION
2167
2171
  });
2168
2172
  }
2169
- return /* @__PURE__ */ React.createElement(FlatRoutes, null, /* @__PURE__ */ React.createElement(Route, {
2170
- path: "/*",
2173
+ return /* @__PURE__ */ React.createElement(Routes, null, /* @__PURE__ */ React.createElement(Route, {
2171
2174
  element: /* @__PURE__ */ React.createElement(EntityPageDocs, {
2172
2175
  entity
2173
2176
  })
@@ -2182,4 +2185,4 @@ var Router$1 = /*#__PURE__*/Object.freeze({
2182
2185
  });
2183
2186
 
2184
2187
  export { isTechDocsAvailable as A, Router as B, EmbeddedDocsRouter as C, DocsTable as D, EntityTechdocsContent as E, Reader as R, TechDocsPageWrapper as T, DocsCardGrid as a, TechDocsReaderPage$1 as b, TechDocsReaderLayout as c, TechDocsCustomHome as d, TechDocsIndexPage$2 as e, TechdocsPage as f, TechDocsReaderPage as g, techdocsStorageApiRef as h, techdocsApiRef as i, TechDocsClient as j, TechDocsStorageClient as k, TechDocsReaderPageHeader as l, TechDocsReaderPageContent as m, TechDocsReaderProvider as n, useTechDocsReaderDom as o, TechDocsReaderPageSubheader as p, TechDocsStateIndicator as q, TechDocsSearchResultListItem as r, TechDocsSearch as s, techdocsPlugin as t, useTechDocsReader as u, EntityListDocsGrid as v, withTechDocsReaderProvider as w, EntityListDocsTable as x, DefaultTechDocsHome as y, TechDocsPicker as z };
2185
- //# sourceMappingURL=index-fba8389b.esm.js.map
2188
+ //# sourceMappingURL=index-f721929f.esm.js.map