@backstage/plugin-techdocs 0.0.0-nightly-20240905022851 → 0.0.0-nightly-20240907022659
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,26 +1,27 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20240907022659
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- c891b69: Add `FavoriteToggle` in `core-components` to standardise favorite marking
|
|
7
8
|
- fec8b57: Updated exports to use the new type parameters for extensions and extension blueprints.
|
|
8
9
|
- 97db53e: Enhanced the table hover effect with a lighter color and updated the border radius to align with Backstage's theme styling
|
|
9
10
|
- Updated dependencies
|
|
10
|
-
- @backstage/
|
|
11
|
-
- @backstage/plugin-
|
|
12
|
-
- @backstage/
|
|
13
|
-
- @backstage/plugin-
|
|
14
|
-
- @backstage/
|
|
15
|
-
- @backstage/
|
|
16
|
-
- @backstage/integration@0.0.0-nightly-
|
|
11
|
+
- @backstage/core-components@0.0.0-nightly-20240907022659
|
|
12
|
+
- @backstage/plugin-catalog-react@0.0.0-nightly-20240907022659
|
|
13
|
+
- @backstage/frontend-plugin-api@0.0.0-nightly-20240907022659
|
|
14
|
+
- @backstage/plugin-techdocs-react@0.0.0-nightly-20240907022659
|
|
15
|
+
- @backstage/core-compat-api@0.0.0-nightly-20240907022659
|
|
16
|
+
- @backstage/plugin-search-react@0.0.0-nightly-20240907022659
|
|
17
|
+
- @backstage/integration@0.0.0-nightly-20240907022659
|
|
18
|
+
- @backstage/integration-react@0.0.0-nightly-20240907022659
|
|
19
|
+
- @backstage/plugin-auth-react@0.0.0-nightly-20240907022659
|
|
17
20
|
- @backstage/catalog-model@1.6.0
|
|
18
21
|
- @backstage/config@1.2.0
|
|
19
22
|
- @backstage/core-plugin-api@1.9.3
|
|
20
23
|
- @backstage/errors@1.2.4
|
|
21
|
-
- @backstage/integration-react@0.0.0-nightly-20240905022851
|
|
22
24
|
- @backstage/theme@0.5.6
|
|
23
|
-
- @backstage/plugin-auth-react@0.0.0-nightly-20240905022851
|
|
24
25
|
- @backstage/plugin-search-common@1.2.14
|
|
25
26
|
- @backstage/plugin-techdocs-common@0.1.0
|
|
26
27
|
|
package/alpha/package.json
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ShareIcon from '@material-ui/icons/Share';
|
|
3
|
-
import {
|
|
4
|
-
import Star from '@material-ui/icons/Star';
|
|
5
|
-
import StarBorder from '@material-ui/icons/StarBorder';
|
|
3
|
+
import { FavoriteToggleIcon } from '@backstage/core-components';
|
|
6
4
|
|
|
7
|
-
const YellowStar = withStyles({
|
|
8
|
-
root: {
|
|
9
|
-
color: "#f3ba37"
|
|
10
|
-
}
|
|
11
|
-
})(Star);
|
|
12
5
|
const actionFactories = {
|
|
13
6
|
createCopyDocsUrlAction(copyToClipboard) {
|
|
14
7
|
return (row) => {
|
|
@@ -25,7 +18,7 @@ const actionFactories = {
|
|
|
25
18
|
const isStarred = isStarredEntity(entity);
|
|
26
19
|
return {
|
|
27
20
|
cellStyle: { paddingLeft: "1em" },
|
|
28
|
-
icon: () =>
|
|
21
|
+
icon: () => /* @__PURE__ */ React.createElement(FavoriteToggleIcon, { isFavorite: isStarred }),
|
|
29
22
|
tooltip: isStarred ? "Remove from favorites" : "Add to favorites",
|
|
30
23
|
onClick: () => toggleStarredEntity(entity)
|
|
31
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.esm.js","sources":["../../../../src/home/components/Tables/actions.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 from 'react';\nimport ShareIcon from '@material-ui/icons/Share';\nimport { DocsTableRow } from './types';\nimport {
|
|
1
|
+
{"version":3,"file":"actions.esm.js","sources":["../../../../src/home/components/Tables/actions.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 from 'react';\nimport ShareIcon from '@material-ui/icons/Share';\nimport { DocsTableRow } from './types';\nimport { FavoriteToggleIcon } from '@backstage/core-components';\n\n/**\n * Not directly exported, but through DocsTable.actions and EntityListDocsTable.actions\n *\n * @public\n */\nexport const actionFactories = {\n createCopyDocsUrlAction(copyToClipboard: Function) {\n return (row: DocsTableRow) => {\n return {\n icon: () => <ShareIcon fontSize=\"small\" />,\n tooltip: 'Click to copy documentation link to clipboard',\n onClick: () =>\n copyToClipboard(`${window.location.origin}${row.resolved.docsUrl}`),\n };\n };\n },\n createStarEntityAction(\n isStarredEntity: Function,\n toggleStarredEntity: Function,\n ) {\n return (row: DocsTableRow) => {\n const entity = row.entity;\n const isStarred = isStarredEntity(entity);\n return {\n cellStyle: { paddingLeft: '1em' },\n icon: () => <FavoriteToggleIcon isFavorite={isStarred} />,\n tooltip: isStarred ? 'Remove from favorites' : 'Add to favorites',\n onClick: () => toggleStarredEntity(entity),\n };\n };\n },\n};\n"],"names":[],"mappings":";;;;AA0BO,MAAM,eAAkB,GAAA;AAAA,EAC7B,wBAAwB,eAA2B,EAAA;AACjD,IAAA,OAAO,CAAC,GAAsB,KAAA;AAC5B,MAAO,OAAA;AAAA,QACL,IAAM,EAAA,sBAAO,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,EAAU,UAAS,OAAQ,EAAA,CAAA;AAAA,QACxC,OAAS,EAAA,+CAAA;AAAA,QACT,OAAA,EAAS,MACP,eAAA,CAAgB,CAAG,EAAA,MAAA,CAAO,QAAS,CAAA,MAAM,CAAG,EAAA,GAAA,CAAI,QAAS,CAAA,OAAO,CAAE,CAAA,CAAA;AAAA,OACtE,CAAA;AAAA,KACF,CAAA;AAAA,GACF;AAAA,EACA,sBAAA,CACE,iBACA,mBACA,EAAA;AACA,IAAA,OAAO,CAAC,GAAsB,KAAA;AAC5B,MAAA,MAAM,SAAS,GAAI,CAAA,MAAA,CAAA;AACnB,MAAM,MAAA,SAAA,GAAY,gBAAgB,MAAM,CAAA,CAAA;AACxC,MAAO,OAAA;AAAA,QACL,SAAA,EAAW,EAAE,WAAA,EAAa,KAAM,EAAA;AAAA,QAChC,IAAM,EAAA,sBAAO,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,EAAmB,YAAY,SAAW,EAAA,CAAA;AAAA,QACvD,OAAA,EAAS,YAAY,uBAA0B,GAAA,kBAAA;AAAA,QAC/C,OAAA,EAAS,MAAM,mBAAA,CAAoB,MAAM,CAAA;AAAA,OAC3C,CAAA;AAAA,KACF,CAAA;AAAA,GACF;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-techdocs",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240907022659",
|
|
4
4
|
"description": "The Backstage plugin that renders technical documentation for your components",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@backstage/catalog-model": "^1.6.0",
|
|
62
62
|
"@backstage/config": "^1.2.0",
|
|
63
|
-
"@backstage/core-compat-api": "^0.0.0-nightly-
|
|
64
|
-
"@backstage/core-components": "^0.0.0-nightly-
|
|
63
|
+
"@backstage/core-compat-api": "^0.0.0-nightly-20240907022659",
|
|
64
|
+
"@backstage/core-components": "^0.0.0-nightly-20240907022659",
|
|
65
65
|
"@backstage/core-plugin-api": "^1.9.3",
|
|
66
66
|
"@backstage/errors": "^1.2.4",
|
|
67
|
-
"@backstage/frontend-plugin-api": "^0.0.0-nightly-
|
|
68
|
-
"@backstage/integration": "^0.0.0-nightly-
|
|
69
|
-
"@backstage/integration-react": "^0.0.0-nightly-
|
|
70
|
-
"@backstage/plugin-auth-react": "^0.0.0-nightly-
|
|
71
|
-
"@backstage/plugin-catalog-react": "^0.0.0-nightly-
|
|
67
|
+
"@backstage/frontend-plugin-api": "^0.0.0-nightly-20240907022659",
|
|
68
|
+
"@backstage/integration": "^0.0.0-nightly-20240907022659",
|
|
69
|
+
"@backstage/integration-react": "^0.0.0-nightly-20240907022659",
|
|
70
|
+
"@backstage/plugin-auth-react": "^0.0.0-nightly-20240907022659",
|
|
71
|
+
"@backstage/plugin-catalog-react": "^0.0.0-nightly-20240907022659",
|
|
72
72
|
"@backstage/plugin-search-common": "^1.2.14",
|
|
73
|
-
"@backstage/plugin-search-react": "^0.0.0-nightly-
|
|
73
|
+
"@backstage/plugin-search-react": "^0.0.0-nightly-20240907022659",
|
|
74
74
|
"@backstage/plugin-techdocs-common": "^0.1.0",
|
|
75
|
-
"@backstage/plugin-techdocs-react": "^0.0.0-nightly-
|
|
75
|
+
"@backstage/plugin-techdocs-react": "^0.0.0-nightly-20240907022659",
|
|
76
76
|
"@backstage/theme": "^0.5.6",
|
|
77
77
|
"@material-ui/core": "^4.12.2",
|
|
78
78
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
"react-use": "^17.2.4"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@backstage/cli": "^0.0.0-nightly-
|
|
92
|
-
"@backstage/core-app-api": "^0.0.0-nightly-
|
|
93
|
-
"@backstage/dev-utils": "^0.0.0-nightly-
|
|
94
|
-
"@backstage/plugin-techdocs-module-addons-contrib": "^0.0.0-nightly-
|
|
95
|
-
"@backstage/test-utils": "^0.0.0-nightly-
|
|
91
|
+
"@backstage/cli": "^0.0.0-nightly-20240907022659",
|
|
92
|
+
"@backstage/core-app-api": "^0.0.0-nightly-20240907022659",
|
|
93
|
+
"@backstage/dev-utils": "^0.0.0-nightly-20240907022659",
|
|
94
|
+
"@backstage/plugin-techdocs-module-addons-contrib": "^0.0.0-nightly-20240907022659",
|
|
95
|
+
"@backstage/test-utils": "^0.0.0-nightly-20240907022659",
|
|
96
96
|
"@testing-library/dom": "^10.0.0",
|
|
97
97
|
"@testing-library/jest-dom": "^6.0.0",
|
|
98
98
|
"@testing-library/react": "^15.0.0",
|