@backstage/plugin-techdocs 1.19.0-next.1 → 1.19.0-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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs
|
|
2
2
|
|
|
3
|
+
## 1.19.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6c74f3f: Migrated the `TechDocsPicker` filter from the deprecated `getCatalogFilters` to `getCatalogQuery`.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/frontend-plugin-api@0.18.2-next.1
|
|
10
|
+
- @backstage/catalog-client@1.16.3-next.1
|
|
11
|
+
- @backstage/plugin-catalog-react@3.3.0-next.2
|
|
12
|
+
- @backstage/core-components@0.18.15-next.3
|
|
13
|
+
- @backstage/ui@0.19.0-next.0
|
|
14
|
+
|
|
3
15
|
## 1.19.0-next.1
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { useEntityList
|
|
2
|
+
import { useEntityList } from '@backstage/plugin-catalog-react';
|
|
3
3
|
import { TECHDOCS_ANNOTATION } from '@backstage/plugin-techdocs-common';
|
|
4
4
|
|
|
5
5
|
class TechDocsFilter {
|
|
6
|
-
|
|
6
|
+
getCatalogQuery() {
|
|
7
7
|
return {
|
|
8
|
-
[`metadata.annotations.${TECHDOCS_ANNOTATION}`]:
|
|
8
|
+
[`metadata.annotations.${TECHDOCS_ANNOTATION}`]: { $exists: true }
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TechDocsPicker.esm.js","sources":["../../../src/home/components/TechDocsPicker.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 { useEffect } from 'react';\nimport {\n
|
|
1
|
+
{"version":3,"file":"TechDocsPicker.esm.js","sources":["../../../src/home/components/TechDocsPicker.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 { useEffect } from 'react';\nimport { FilterPredicate } from '@backstage/filter-predicates';\nimport {\n DefaultEntityFilters,\n EntityFilter,\n useEntityList,\n} from '@backstage/plugin-catalog-react';\nimport { TECHDOCS_ANNOTATION } from '@backstage/plugin-techdocs-common';\n\nclass TechDocsFilter implements EntityFilter {\n getCatalogQuery(): FilterPredicate {\n return {\n [`metadata.annotations.${TECHDOCS_ANNOTATION}`]: { $exists: true },\n };\n }\n}\n\ntype CustomFilters = DefaultEntityFilters & {\n techdocs?: TechDocsFilter;\n};\n\n/**\n * Component responsible for updating TechDocs filters\n *\n * @public\n */\nexport const TechDocsPicker = () => {\n const { updateFilters } = useEntityList<CustomFilters>();\n\n useEffect(() => {\n updateFilters({\n techdocs: new TechDocsFilter(),\n });\n }, [updateFilters]);\n\n return null;\n};\n"],"names":[],"mappings":";;;;AAyBA,MAAM,cAAA,CAAuC;AAAA,EAC3C,eAAA,GAAmC;AACjC,IAAA,OAAO;AAAA,MACL,CAAC,CAAA,qBAAA,EAAwB,mBAAmB,EAAE,GAAG,EAAE,SAAS,IAAA;AAAK,KACnE;AAAA,EACF;AACF;AAWO,MAAM,iBAAiB,MAAM;AAClC,EAAA,MAAM,EAAE,aAAA,EAAc,GAAI,aAAA,EAA6B;AAEvD,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,aAAA,CAAc;AAAA,MACZ,QAAA,EAAU,IAAI,cAAA;AAAe,KAC9B,CAAA;AAAA,EACH,CAAA,EAAG,CAAC,aAAa,CAAC,CAAA;AAElB,EAAA,OAAO,IAAA;AACT;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-techdocs";
|
|
2
|
-
var version = "1.19.0-next.
|
|
2
|
+
var version = "1.19.0-next.2";
|
|
3
3
|
var description = "The Backstage plugin that renders technical documentation for your components";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -64,6 +64,7 @@ var dependencies = {
|
|
|
64
64
|
"@backstage/core-components": "workspace:^",
|
|
65
65
|
"@backstage/core-plugin-api": "workspace:^",
|
|
66
66
|
"@backstage/errors": "workspace:^",
|
|
67
|
+
"@backstage/filter-predicates": "workspace:^",
|
|
67
68
|
"@backstage/frontend-plugin-api": "workspace:^",
|
|
68
69
|
"@backstage/integration": "workspace:^",
|
|
69
70
|
"@backstage/integration-react": "workspace:^",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-techdocs",
|
|
3
|
-
"version": "1.19.0-next.
|
|
3
|
+
"version": "1.19.0-next.2",
|
|
4
4
|
"description": "The Backstage plugin that renders technical documentation for your components",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -71,23 +71,24 @@
|
|
|
71
71
|
"test": "backstage-cli package test"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@backstage/catalog-client": "1.16.3-next.
|
|
74
|
+
"@backstage/catalog-client": "1.16.3-next.1",
|
|
75
75
|
"@backstage/catalog-model": "1.10.2-next.0",
|
|
76
76
|
"@backstage/config": "1.3.10-next.0",
|
|
77
|
-
"@backstage/core-components": "0.18.15-next.
|
|
77
|
+
"@backstage/core-components": "0.18.15-next.3",
|
|
78
78
|
"@backstage/core-plugin-api": "1.12.11-next.0",
|
|
79
79
|
"@backstage/errors": "1.3.2-next.0",
|
|
80
|
-
"@backstage/
|
|
80
|
+
"@backstage/filter-predicates": "0.1.6-next.0",
|
|
81
|
+
"@backstage/frontend-plugin-api": "0.18.2-next.1",
|
|
81
82
|
"@backstage/integration": "2.1.3-next.1",
|
|
82
83
|
"@backstage/integration-react": "1.2.23-next.0",
|
|
83
84
|
"@backstage/plugin-auth-react": "0.1.32-next.0",
|
|
84
|
-
"@backstage/plugin-catalog-react": "3.
|
|
85
|
+
"@backstage/plugin-catalog-react": "3.3.0-next.2",
|
|
85
86
|
"@backstage/plugin-search-common": "1.2.26-next.0",
|
|
86
87
|
"@backstage/plugin-search-react": "1.11.9-next.0",
|
|
87
88
|
"@backstage/plugin-techdocs-common": "0.1.2-next.0",
|
|
88
89
|
"@backstage/plugin-techdocs-react": "1.3.16-next.2",
|
|
89
90
|
"@backstage/theme": "0.7.3",
|
|
90
|
-
"@backstage/ui": "0.
|
|
91
|
+
"@backstage/ui": "0.19.0-next.0",
|
|
91
92
|
"@material-ui/core": "^4.12.2",
|
|
92
93
|
"@material-ui/icons": "^4.9.1",
|
|
93
94
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -103,9 +104,9 @@
|
|
|
103
104
|
},
|
|
104
105
|
"devDependencies": {
|
|
105
106
|
"@backstage/cli": "0.36.7-next.0",
|
|
106
|
-
"@backstage/core-app-api": "1.20.6-next.
|
|
107
|
-
"@backstage/dev-utils": "1.1.28-next.
|
|
108
|
-
"@backstage/plugin-catalog": "2.0.10-next.
|
|
107
|
+
"@backstage/core-app-api": "1.20.6-next.1",
|
|
108
|
+
"@backstage/dev-utils": "1.1.28-next.1",
|
|
109
|
+
"@backstage/plugin-catalog": "2.0.10-next.3",
|
|
109
110
|
"@backstage/plugin-techdocs-module-addons-contrib": "1.1.41-next.0",
|
|
110
111
|
"@backstage/test-utils": "1.7.23-next.0",
|
|
111
112
|
"@testing-library/dom": "^10.0.0",
|