@backstage/plugin-techdocs 1.19.1-next.1 → 1.20.0

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,57 @@
1
1
  # @backstage/plugin-techdocs
2
2
 
3
+ ## 1.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4bbc7a9: Removed explicit support for React 17: the peer dependency range for `react`, `react-dom` and `@types/react` is now `^18.0.0`. React 17 is no longer tested or guaranteed to work, although it may continue to work in some cases. See the [migration guide](https://backstage.io/docs/frontend-system/architecture/migrations#157).
8
+
9
+ ### Patch Changes
10
+
11
+ - 9a1d5cf: Fixed the TechDocs table of contents drifting to the right on wide screens. It now stays aligned with the right edge of the documentation content.
12
+ - Updated dependencies
13
+ - @backstage/frontend-plugin-api@1.0.0
14
+ - @backstage/core-plugin-api@1.13.0
15
+ - @backstage/integration@2.2.0
16
+ - @backstage/catalog-client@1.16.4
17
+ - @backstage/core-components@0.18.16
18
+ - @backstage/errors@1.4.0
19
+ - @backstage/plugin-catalog-react@4.0.0
20
+ - @backstage/ui@0.20.0
21
+ - @backstage/integration-react@1.3.0
22
+ - @backstage/plugin-auth-react@0.1.33
23
+ - @backstage/plugin-search-react@1.12.0
24
+ - @backstage/plugin-techdocs-react@1.5.0
25
+ - @backstage/theme@0.7.4
26
+ - @backstage/catalog-model@1.10.3
27
+ - @backstage/config@1.3.11
28
+ - @backstage/filter-predicates@0.2.1
29
+ - @backstage/plugin-search-common@1.2.27
30
+ - @backstage/plugin-techdocs-common@0.1.3
31
+
32
+ ## 1.19.1-next.2
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+ - @backstage/errors@1.4.0-next.0
38
+ - @backstage/integration@2.1.4-next.0
39
+ - @backstage/core-components@0.18.16-next.1
40
+ - @backstage/ui@0.20.0-next.0
41
+ - @backstage/frontend-plugin-api@0.19.0-next.2
42
+ - @backstage/catalog-client@1.16.4-next.1
43
+ - @backstage/catalog-model@1.10.3-next.0
44
+ - @backstage/config@1.3.11-next.0
45
+ - @backstage/core-plugin-api@1.12.12-next.2
46
+ - @backstage/filter-predicates@0.2.1-next.0
47
+ - @backstage/plugin-auth-react@0.1.33-next.1
48
+ - @backstage/plugin-catalog-react@4.0.0-next.2
49
+ - @backstage/integration-react@1.2.24-next.1
50
+ - @backstage/plugin-techdocs-react@1.4.1-next.2
51
+ - @backstage/plugin-search-common@1.2.27-next.0
52
+ - @backstage/plugin-techdocs-common@0.1.3-next.0
53
+ - @backstage/plugin-search-react@1.11.10-next.2
54
+
3
55
  ## 1.19.1-next.1
4
56
 
5
57
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -91,14 +91,14 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
91
91
  name: undefined;
92
92
  config: {};
93
93
  configInput: {};
94
- output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
94
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.ApiFactory, "core.api.factory", {}>;
95
95
  inputs: {};
96
- params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
96
+ params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.ApiFactory>;
97
97
  }>;
98
98
  "api:techdocs/addons": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
99
99
  config: {};
100
100
  configInput: {};
101
- output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
101
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.ApiFactory, "core.api.factory", {}>;
102
102
  inputs: {
103
103
  addons: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_plugin_techdocs_react.TechDocsAddonOptions, "techdocs.addon", {}>, {
104
104
  singleton: false;
@@ -108,16 +108,16 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
108
108
  };
109
109
  kind: "api";
110
110
  name: "addons";
111
- params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
111
+ params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.ApiFactory>;
112
112
  }>;
113
113
  "api:techdocs/storage": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
114
114
  kind: "api";
115
115
  name: "storage";
116
116
  config: {};
117
117
  configInput: {};
118
- output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
118
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.ApiFactory, "core.api.factory", {}>;
119
119
  inputs: {};
120
- params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
120
+ params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.ApiFactory>;
121
121
  }>;
122
122
  "empty-state:techdocs/entity-content": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
123
123
  config: {};
@@ -155,7 +155,9 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
155
155
  };
156
156
  output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
157
157
  optional: true;
158
- }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
158
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.TranslationRefTuple<undefined>, "core.titleTranslation", {
159
+ optional: true;
160
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
159
161
  optional: true;
160
162
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
161
163
  optional: true;
@@ -184,7 +186,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
184
186
  defaultPath?: [Error: `Use the 'path' param instead`];
185
187
  path: string;
186
188
  defaultTitle?: [Error: `Use the 'title' param instead`];
187
- title: string;
189
+ title: string | _backstage_frontend_plugin_api.TranslationRefTuple<undefined>;
188
190
  defaultGroup?: [Error: `Use the 'group' param instead`];
189
191
  group?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
190
192
  icon?: string | react.ReactElement;
@@ -232,6 +234,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
232
234
  optional: true;
233
235
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
234
236
  optional: true;
237
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.TranslationRefTuple<undefined>, "core.titleTranslation", {
238
+ optional: true;
235
239
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
236
240
  optional: true;
237
241
  }>;
@@ -240,6 +244,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
240
244
  optional: true;
241
245
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
242
246
  optional: true;
247
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.TranslationRefTuple<undefined>, "core.titleTranslation", {
248
+ optional: true;
243
249
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
244
250
  optional: true;
245
251
  }>, {
@@ -252,7 +258,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
252
258
  name: undefined;
253
259
  params: {
254
260
  path: string;
255
- title?: string;
261
+ title?: string | _backstage_frontend_plugin_api.TranslationRefTuple<undefined>;
256
262
  icon?: _backstage_frontend_plugin_api.IconElement;
257
263
  loader?: () => Promise<react.JSX.Element>;
258
264
  routeRef?: _backstage_frontend_plugin_api.RouteRef;
@@ -278,6 +284,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
278
284
  optional: true;
279
285
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
280
286
  optional: true;
287
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.TranslationRefTuple<undefined>, "core.titleTranslation", {
288
+ optional: true;
281
289
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
282
290
  optional: true;
283
291
  }>;
@@ -286,6 +294,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
286
294
  optional: true;
287
295
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
288
296
  optional: true;
297
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.TranslationRefTuple<undefined>, "core.titleTranslation", {
298
+ optional: true;
289
299
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
290
300
  optional: true;
291
301
  }>, {
@@ -303,7 +313,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
303
313
  name: "reader";
304
314
  params: {
305
315
  path: string;
306
- title?: string;
316
+ title?: string | _backstage_frontend_plugin_api.TranslationRefTuple<undefined>;
307
317
  icon?: _backstage_frontend_plugin_api.IconElement;
308
318
  loader?: () => Promise<react.JSX.Element>;
309
319
  routeRef?: _backstage_frontend_plugin_api.RouteRef;
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-techdocs";
2
- var version = "1.19.1-next.1";
2
+ var version = "1.20.0";
3
3
  var description = "The Backstage plugin that renders technical documentation for your components";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
@@ -107,9 +107,9 @@ var devDependencies = {
107
107
  "react-router-dom": "^6.30.2"
108
108
  };
109
109
  var peerDependencies = {
110
- "@types/react": "^17.0.0 || ^18.0.0",
111
- react: "^17.0.0 || ^18.0.0",
112
- "react-dom": "^17.0.0 || ^18.0.0",
110
+ "@types/react": "^18.0.0",
111
+ react: "^18.0.0",
112
+ "react-dom": "^18.0.0",
113
113
  "react-router-dom": "^6.30.2"
114
114
  };
115
115
  var peerDependenciesMeta = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-techdocs",
3
- "version": "1.19.1-next.1",
3
+ "version": "1.20.0",
4
4
  "description": "The Backstage plugin that renders technical documentation for your components",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -71,24 +71,24 @@
71
71
  "test": "backstage-cli package test"
72
72
  },
73
73
  "dependencies": {
74
- "@backstage/catalog-client": "1.16.4-next.0",
75
- "@backstage/catalog-model": "1.10.2",
76
- "@backstage/config": "1.3.10",
77
- "@backstage/core-components": "0.18.16-next.0",
78
- "@backstage/core-plugin-api": "1.12.12-next.1",
79
- "@backstage/errors": "1.3.2",
80
- "@backstage/filter-predicates": "0.2.0",
81
- "@backstage/frontend-plugin-api": "0.19.0-next.1",
82
- "@backstage/integration": "2.1.3",
83
- "@backstage/integration-react": "1.2.24-next.0",
84
- "@backstage/plugin-auth-react": "0.1.33-next.0",
85
- "@backstage/plugin-catalog-react": "4.0.0-next.1",
86
- "@backstage/plugin-search-common": "1.2.26",
87
- "@backstage/plugin-search-react": "1.11.10-next.1",
88
- "@backstage/plugin-techdocs-common": "0.1.2",
89
- "@backstage/plugin-techdocs-react": "1.4.1-next.1",
90
- "@backstage/theme": "0.7.3",
91
- "@backstage/ui": "0.19.0",
74
+ "@backstage/catalog-client": "^1.16.4",
75
+ "@backstage/catalog-model": "^1.10.3",
76
+ "@backstage/config": "^1.3.11",
77
+ "@backstage/core-components": "^0.18.16",
78
+ "@backstage/core-plugin-api": "^1.13.0",
79
+ "@backstage/errors": "^1.4.0",
80
+ "@backstage/filter-predicates": "^0.2.1",
81
+ "@backstage/frontend-plugin-api": "^1.0.0",
82
+ "@backstage/integration": "^2.2.0",
83
+ "@backstage/integration-react": "^1.3.0",
84
+ "@backstage/plugin-auth-react": "^0.1.33",
85
+ "@backstage/plugin-catalog-react": "^4.0.0",
86
+ "@backstage/plugin-search-common": "^1.2.27",
87
+ "@backstage/plugin-search-react": "^1.12.0",
88
+ "@backstage/plugin-techdocs-common": "^0.1.3",
89
+ "@backstage/plugin-techdocs-react": "^1.5.0",
90
+ "@backstage/theme": "^0.7.4",
91
+ "@backstage/ui": "^0.20.0",
92
92
  "@material-ui/core": "^4.12.2",
93
93
  "@material-ui/icons": "^4.9.1",
94
94
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -103,12 +103,12 @@
103
103
  "zod": "^4.0.0"
104
104
  },
105
105
  "devDependencies": {
106
- "@backstage/cli": "0.36.8-next.1",
107
- "@backstage/core-app-api": "1.20.7-next.1",
108
- "@backstage/dev-utils": "1.1.29-next.0",
109
- "@backstage/plugin-catalog": "2.0.11-next.1",
110
- "@backstage/plugin-techdocs-module-addons-contrib": "1.1.42-next.1",
111
- "@backstage/test-utils": "1.7.24-next.0",
106
+ "@backstage/cli": "^0.36.8",
107
+ "@backstage/core-app-api": "^1.20.7",
108
+ "@backstage/dev-utils": "^1.2.0",
109
+ "@backstage/plugin-catalog": "^2.1.0",
110
+ "@backstage/plugin-techdocs-module-addons-contrib": "^1.2.0",
111
+ "@backstage/test-utils": "^1.8.0",
112
112
  "@testing-library/dom": "^10.0.0",
113
113
  "@testing-library/jest-dom": "^6.0.0",
114
114
  "@testing-library/react": "^16.0.0",
@@ -120,9 +120,9 @@
120
120
  "react-router-dom": "^6.30.2"
121
121
  },
122
122
  "peerDependencies": {
123
- "@types/react": "^17.0.0 || ^18.0.0",
124
- "react": "^17.0.0 || ^18.0.0",
125
- "react-dom": "^17.0.0 || ^18.0.0",
123
+ "@types/react": "^18.0.0",
124
+ "react": "^18.0.0",
125
+ "react-dom": "^18.0.0",
126
126
  "react-router-dom": "^6.30.2"
127
127
  },
128
128
  "peerDependenciesMeta": {