@backstage/plugin-techdocs 1.0.0 → 1.0.1-next.2
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 +48 -0
- package/dist/esm/{TechDocsCustomHome-174c6f0d.esm.js → TechDocsCustomHome-e38e305b.esm.js} +1 -1
- package/dist/esm/{TechDocsCustomHome-174c6f0d.esm.js.map → TechDocsCustomHome-e38e305b.esm.js.map} +1 -1
- package/dist/index.esm.js +34 -20
- package/dist/index.esm.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs
|
|
2
2
|
|
|
3
|
+
## 1.0.1-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f0fb9153b7: Fix broken query selectors on techdocs
|
|
8
|
+
- 9975ff9852: Applied the fix from version 1.0.1 of this package, which is part of the v1.0.2 release of Backstage.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/core-components@0.9.3-next.1
|
|
11
|
+
- @backstage/plugin-catalog-react@1.0.1-next.2
|
|
12
|
+
- @backstage/catalog-model@1.0.1-next.1
|
|
13
|
+
|
|
14
|
+
## 1.0.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Pin the `event-source-polyfill` dependency to version 1.0.25
|
|
19
|
+
|
|
20
|
+
## 1.0.1-next.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 0152c0de22: Some documentation layout tweaks:
|
|
25
|
+
|
|
26
|
+
- drawer toggle margins
|
|
27
|
+
- code block margins
|
|
28
|
+
- sidebar drawer width
|
|
29
|
+
- inner content width
|
|
30
|
+
- footer link width
|
|
31
|
+
- sidebar table of contents scroll
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- @backstage/integration@1.1.0-next.1
|
|
35
|
+
- @backstage/plugin-catalog-react@1.0.1-next.1
|
|
36
|
+
- @backstage/integration-react@1.0.1-next.1
|
|
37
|
+
|
|
38
|
+
## 1.0.1-next.0
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- fe53fe97d7: Fix permalink scrolling for anchors where the id starts with a number.
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
- @backstage/catalog-model@1.0.1-next.0
|
|
45
|
+
- @backstage/plugin-search@0.7.5-next.0
|
|
46
|
+
- @backstage/integration@1.0.1-next.0
|
|
47
|
+
- @backstage/plugin-catalog-react@1.0.1-next.0
|
|
48
|
+
- @backstage/core-components@0.9.3-next.0
|
|
49
|
+
- @backstage/integration-react@1.0.1-next.0
|
|
50
|
+
|
|
3
51
|
## 1.0.0
|
|
4
52
|
|
|
5
53
|
### Major Changes
|
package/dist/esm/{TechDocsCustomHome-174c6f0d.esm.js.map → TechDocsCustomHome-e38e305b.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TechDocsCustomHome-
|
|
1
|
+
{"version":3,"file":"TechDocsCustomHome-e38e305b.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,MAAM,MAAS,GAAA;AAAA,EACb,SAAA;AAAA,EACA,YAAA;AACF,CAAA,CAAA;AAuCA,MAAM,cAAc,CAAC;AAAA,EAC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useEffect, useReducer, useRef, useMemo, c
|
|
|
5
5
|
import { useNavigate as useNavigate$1, useParams, Routes, Route } from 'react-router-dom';
|
|
6
6
|
import { withStyles, Tooltip, ThemeProvider, SvgIcon, makeStyles, ListItemText, ListItem, Divider, TextField, InputAdornment, IconButton, CircularProgress, createStyles, Button, Drawer, Grid, Typography, useTheme, lighten, alpha, Card, CardMedia, CardContent, CardActions } from '@material-ui/core';
|
|
7
7
|
import { scmIntegrationsApiRef } from '@backstage/integration-react';
|
|
8
|
-
import { Link, LogViewer, ErrorPage, Progress, SidebarPinStateContext, HeaderLabel, Header, ItemCardGrid, ItemCardHeader, Button as Button$1, WarningPanel, CodeSnippet, SubvalueCell, Table, EmptyState, PageWithHeader, Content, ContentHeader, SupportButton, Page, MissingAnnotationEmptyState } from '@backstage/core-components';
|
|
8
|
+
import { Link, LogViewer, ErrorPage, Progress, SidebarPinStateContext, sidebarConfig, HeaderLabel, Header, ItemCardGrid, ItemCardHeader, Button as Button$1, WarningPanel, CodeSnippet, SubvalueCell, Table, EmptyState, PageWithHeader, Content, ContentHeader, SupportButton, Page, MissingAnnotationEmptyState } from '@backstage/core-components';
|
|
9
9
|
import { replaceGitHubUrlType } from '@backstage/integration';
|
|
10
10
|
import FeedbackOutlinedIcon from '@material-ui/icons/FeedbackOutlined';
|
|
11
11
|
import ReactDOM from 'react-dom';
|
|
@@ -243,10 +243,11 @@ const addSidebarToggle = () => {
|
|
|
243
243
|
}
|
|
244
244
|
const toggleSidebar = mkdocsToggleSidebar.cloneNode();
|
|
245
245
|
ReactDOM.render(React.createElement(MenuIcon), toggleSidebar);
|
|
246
|
-
toggleSidebar.style.paddingLeft = "5px";
|
|
247
|
-
toggleSidebar.classList.add("md-content__button");
|
|
248
|
-
toggleSidebar.title = "Toggle Sidebar";
|
|
249
246
|
toggleSidebar.id = "toggle-sidebar";
|
|
247
|
+
toggleSidebar.title = "Toggle Sidebar";
|
|
248
|
+
toggleSidebar.classList.add("md-content__button");
|
|
249
|
+
toggleSidebar.style.setProperty("padding", "0 0 0 5px");
|
|
250
|
+
toggleSidebar.style.setProperty("margin", "0.4rem 0 0.4rem 0.4rem");
|
|
250
251
|
article == null ? void 0 : article.prepend(toggleSidebar);
|
|
251
252
|
return dom;
|
|
252
253
|
};
|
|
@@ -464,7 +465,7 @@ const scrollIntoAnchor = () => {
|
|
|
464
465
|
var _a;
|
|
465
466
|
if (window.location.hash) {
|
|
466
467
|
const hash = window.location.hash.slice(1);
|
|
467
|
-
(_a = dom == null ? void 0 : dom.querySelector(
|
|
468
|
+
(_a = dom == null ? void 0 : dom.querySelector(`[id="${hash}"]`)) == null ? void 0 : _a.scrollIntoView();
|
|
468
469
|
}
|
|
469
470
|
}, 200);
|
|
470
471
|
return dom;
|
|
@@ -1218,12 +1219,6 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1218
1219
|
scrollbar-color: rgb(193, 193, 193) #eee;
|
|
1219
1220
|
scrollbar-width: thin;
|
|
1220
1221
|
}
|
|
1221
|
-
.md-sidebar .md-sidebar__scrollwrap {
|
|
1222
|
-
width: calc(16rem - 10px);
|
|
1223
|
-
}
|
|
1224
|
-
.md-sidebar--secondary {
|
|
1225
|
-
right: ${theme.spacing(3)}px;
|
|
1226
|
-
}
|
|
1227
1222
|
.md-sidebar::-webkit-scrollbar {
|
|
1228
1223
|
width: 5px;
|
|
1229
1224
|
}
|
|
@@ -1246,6 +1241,12 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1246
1241
|
.md-sidebar::-webkit-scrollbar-thumb:hover {
|
|
1247
1242
|
background: rgb(125, 125, 125);
|
|
1248
1243
|
}
|
|
1244
|
+
.md-sidebar--secondary {
|
|
1245
|
+
right: ${theme.spacing(3)}px;
|
|
1246
|
+
}
|
|
1247
|
+
.md-sidebar__scrollwrap {
|
|
1248
|
+
overflow: unset !important;
|
|
1249
|
+
}
|
|
1249
1250
|
|
|
1250
1251
|
.md-content {
|
|
1251
1252
|
max-width: calc(100% - 16rem * 2);
|
|
@@ -1260,7 +1261,7 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1260
1261
|
.md-footer__title {
|
|
1261
1262
|
background-color: unset;
|
|
1262
1263
|
}
|
|
1263
|
-
.md-footer-nav__link {
|
|
1264
|
+
.md-footer__link, .md-footer-nav__link {
|
|
1264
1265
|
width: 16rem;
|
|
1265
1266
|
}
|
|
1266
1267
|
|
|
@@ -1324,18 +1325,28 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1324
1325
|
height: 100%;
|
|
1325
1326
|
}
|
|
1326
1327
|
.md-sidebar--primary {
|
|
1327
|
-
width:
|
|
1328
|
+
width: 16rem !important;
|
|
1328
1329
|
z-index: 200;
|
|
1329
|
-
left: ${isPinned ?
|
|
1330
|
+
left: ${isPinned ? `calc(-16rem + ${sidebarConfig.drawerWidthOpen}px)` : `calc(-16rem + ${sidebarConfig.drawerWidthClosed}px)`} !important;
|
|
1330
1331
|
}
|
|
1331
1332
|
.md-sidebar--secondary:not([hidden]) {
|
|
1332
1333
|
display: none;
|
|
1333
1334
|
}
|
|
1335
|
+
[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary {
|
|
1336
|
+
transform: translateX(16rem);
|
|
1337
|
+
}
|
|
1334
1338
|
|
|
1335
1339
|
.md-content {
|
|
1336
1340
|
max-width: 100%;
|
|
1337
1341
|
margin-left: 0;
|
|
1338
1342
|
}
|
|
1343
|
+
.md-content__inner {
|
|
1344
|
+
margin: 0;
|
|
1345
|
+
}
|
|
1346
|
+
.md-content__inner .highlighttable {
|
|
1347
|
+
max-width: 100%;
|
|
1348
|
+
margin: 1em 0;
|
|
1349
|
+
}
|
|
1339
1350
|
|
|
1340
1351
|
.md-header__button {
|
|
1341
1352
|
margin: 0.4rem 0;
|
|
@@ -1351,7 +1362,7 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1351
1362
|
position: static;
|
|
1352
1363
|
padding-left: 0;
|
|
1353
1364
|
}
|
|
1354
|
-
.md-footer-nav__link {
|
|
1365
|
+
.md-footer__link, .md-footer-nav__link {
|
|
1355
1366
|
/* footer links begin to overlap at small sizes without setting width */
|
|
1356
1367
|
width: 50%;
|
|
1357
1368
|
}
|
|
@@ -1359,8 +1370,11 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1359
1370
|
|
|
1360
1371
|
@media screen and (max-width: 600px) {
|
|
1361
1372
|
.md-sidebar--primary {
|
|
1362
|
-
left: -
|
|
1363
|
-
width:
|
|
1373
|
+
left: -16rem !important;
|
|
1374
|
+
width: 16rem;
|
|
1375
|
+
}
|
|
1376
|
+
.md-sidebar--primary .md-sidebar__scrollwrap {
|
|
1377
|
+
bottom: ${sidebarConfig.mobileSidebarHeight}px;
|
|
1364
1378
|
}
|
|
1365
1379
|
}
|
|
1366
1380
|
`
|
|
@@ -1463,7 +1477,7 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1463
1477
|
.highlight .md-clipboard:after {
|
|
1464
1478
|
content: unset;
|
|
1465
1479
|
}
|
|
1466
|
-
|
|
1480
|
+
|
|
1467
1481
|
.highlight .nx {
|
|
1468
1482
|
color: ${isDarkTheme ? "#ff53a3" : "#ec407a"};
|
|
1469
1483
|
}
|
|
@@ -1551,7 +1565,7 @@ const useTechDocsReaderDom = (entityRef) => {
|
|
|
1551
1565
|
window.open(`${parsedUrl.pathname}${parsedUrl.hash}`, "_blank");
|
|
1552
1566
|
} else {
|
|
1553
1567
|
navigate(`${parsedUrl.pathname}${parsedUrl.hash}`);
|
|
1554
|
-
(_a = transformedElement == null ? void 0 : transformedElement.querySelector(
|
|
1568
|
+
(_a = transformedElement == null ? void 0 : transformedElement.querySelector(`[id='${parsedUrl.hash.slice(1)}']`)) == null ? void 0 : _a.scrollIntoView();
|
|
1555
1569
|
}
|
|
1556
1570
|
} else {
|
|
1557
1571
|
if (modifierActive) {
|
|
@@ -1995,7 +2009,7 @@ const EntityTechdocsContent = techdocsPlugin.provide(createRoutableExtension({
|
|
|
1995
2009
|
}));
|
|
1996
2010
|
const TechDocsCustomHome = techdocsPlugin.provide(createRoutableExtension({
|
|
1997
2011
|
name: "TechDocsCustomHome",
|
|
1998
|
-
component: () => import('./esm/TechDocsCustomHome-
|
|
2012
|
+
component: () => import('./esm/TechDocsCustomHome-e38e305b.esm.js').then((m) => m.TechDocsCustomHome),
|
|
1999
2013
|
mountPoint: rootRouteRef
|
|
2000
2014
|
}));
|
|
2001
2015
|
const TechDocsIndexPage$2 = techdocsPlugin.provide(createRoutableExtension({
|