@backstage/plugin-techdocs 0.12.0 → 0.12.4
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 +66 -0
- package/dist/index.d.ts +26 -24
- package/dist/index.esm.js +450 -370
- package/dist/index.esm.js.map +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs
|
|
2
2
|
|
|
3
|
+
## 0.12.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a9a8c6f7c5: Reader will now scroll to the top of the page when navigating between pages
|
|
8
|
+
- 106a5dc3ad: Restore original casing for `kind`, `namespace` and `name` in `DefaultTechDocsCollator`.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/config@0.1.11
|
|
11
|
+
- @backstage/theme@0.2.12
|
|
12
|
+
- @backstage/errors@0.1.4
|
|
13
|
+
- @backstage/integration@0.6.9
|
|
14
|
+
- @backstage/core-components@0.7.2
|
|
15
|
+
- @backstage/integration-react@0.1.13
|
|
16
|
+
- @backstage/plugin-catalog-react@0.6.2
|
|
17
|
+
- @backstage/catalog-model@0.9.6
|
|
18
|
+
- @backstage/plugin-search@0.4.16
|
|
19
|
+
- @backstage/core-plugin-api@0.1.12
|
|
20
|
+
|
|
21
|
+
## 0.12.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- ba5b75ed2f: Add `<EntityListDocsGrid>` as an alternative to `<EntityListDocsTable>` that
|
|
26
|
+
shows a grid of card instead of table.
|
|
27
|
+
|
|
28
|
+
Extend `<DocsCardGrid>` to display the entity title of the entity instead of the
|
|
29
|
+
name if available.
|
|
30
|
+
|
|
31
|
+
- 177401b571: Display entity title (if defined) in titles of TechDocs search results
|
|
32
|
+
- cdf8ca6111: Only replace the shadow dom if the content is changed to avoid a flickering UI.
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- @backstage/core-components@0.7.1
|
|
35
|
+
- @backstage/errors@0.1.3
|
|
36
|
+
- @backstage/core-plugin-api@0.1.11
|
|
37
|
+
- @backstage/plugin-catalog@0.7.2
|
|
38
|
+
- @backstage/plugin-catalog-react@0.6.1
|
|
39
|
+
- @backstage/catalog-model@0.9.5
|
|
40
|
+
|
|
41
|
+
## 0.12.2
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 76fef740fe: Refactored `<Reader />` component internals to support future extensibility.
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- @backstage/plugin-catalog-react@0.6.0
|
|
48
|
+
- @backstage/plugin-catalog@0.7.1
|
|
49
|
+
- @backstage/integration@0.6.8
|
|
50
|
+
- @backstage/core-components@0.7.0
|
|
51
|
+
- @backstage/theme@0.2.11
|
|
52
|
+
- @backstage/plugin-search@0.4.15
|
|
53
|
+
- @backstage/integration-react@0.1.12
|
|
54
|
+
|
|
55
|
+
## 0.12.1
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- 81a41ec249: Added a `name` key to all extensions in order to improve Analytics API metadata.
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
- @backstage/core-components@0.6.1
|
|
62
|
+
- @backstage/core-plugin-api@0.1.10
|
|
63
|
+
- @backstage/plugin-catalog@0.7.0
|
|
64
|
+
- @backstage/plugin-catalog-react@0.5.2
|
|
65
|
+
- @backstage/catalog-model@0.9.4
|
|
66
|
+
- @backstage/integration@0.6.7
|
|
67
|
+
- @backstage/plugin-search@0.4.14
|
|
68
|
+
|
|
3
69
|
## 0.12.0
|
|
4
70
|
|
|
5
71
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { Config } from '@backstage/config';
|
|
|
7
7
|
import * as _backstage_core_components from '@backstage/core-components';
|
|
8
8
|
import { TableColumn, TableProps } from '@backstage/core-components';
|
|
9
9
|
import { UserListFilterKind } from '@backstage/plugin-catalog-react';
|
|
10
|
-
import React from 'react';
|
|
11
10
|
import { CSSProperties } from '@material-ui/styles';
|
|
11
|
+
import React from 'react';
|
|
12
12
|
import * as _material_table_core from '@material-table/core';
|
|
13
13
|
|
|
14
14
|
declare type TechDocsMetadata = {
|
|
@@ -109,6 +109,14 @@ declare class TechDocsStorageClient implements TechDocsStorageApi {
|
|
|
109
109
|
getBaseUrl(oldBaseUrl: string, entityId: EntityName, path: string): Promise<string>;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
declare const DocsResultListItem: ({ result, lineClamp, asListItem, asLink, title, }: {
|
|
113
|
+
result: any;
|
|
114
|
+
lineClamp?: number | undefined;
|
|
115
|
+
asListItem?: boolean | undefined;
|
|
116
|
+
asLink?: boolean | undefined;
|
|
117
|
+
title?: string | undefined;
|
|
118
|
+
}) => JSX.Element;
|
|
119
|
+
|
|
112
120
|
declare type DocsTableRow = {
|
|
113
121
|
entity: Entity;
|
|
114
122
|
resolved: {
|
|
@@ -118,6 +126,14 @@ declare type DocsTableRow = {
|
|
|
118
126
|
};
|
|
119
127
|
};
|
|
120
128
|
|
|
129
|
+
declare const DefaultTechDocsHome: ({ initialFilter, columns, actions, }: {
|
|
130
|
+
initialFilter?: UserListFilterKind | undefined;
|
|
131
|
+
columns?: TableColumn<DocsTableRow>[] | undefined;
|
|
132
|
+
actions?: TableProps<DocsTableRow>['actions'];
|
|
133
|
+
}) => JSX.Element;
|
|
134
|
+
|
|
135
|
+
declare const EntityListDocsGrid: () => JSX.Element;
|
|
136
|
+
|
|
121
137
|
declare function createCopyDocsUrlAction(copyToClipboard: Function): (row: DocsTableRow) => {
|
|
122
138
|
icon: () => JSX.Element;
|
|
123
139
|
tooltip: string;
|
|
@@ -165,19 +181,6 @@ declare const EntityListDocsTable: {
|
|
|
165
181
|
actions: typeof actionFactories;
|
|
166
182
|
};
|
|
167
183
|
|
|
168
|
-
declare const DefaultTechDocsHome: ({ initialFilter, columns, actions, }: {
|
|
169
|
-
initialFilter?: UserListFilterKind | undefined;
|
|
170
|
-
columns?: TableColumn<DocsTableRow>[] | undefined;
|
|
171
|
-
actions?: TableProps<DocsTableRow>['actions'];
|
|
172
|
-
}) => JSX.Element;
|
|
173
|
-
|
|
174
|
-
declare type Props$2 = {
|
|
175
|
-
children?: React.ReactNode;
|
|
176
|
-
};
|
|
177
|
-
declare const TechDocsPageWrapper: ({ children }: Props$2) => JSX.Element;
|
|
178
|
-
|
|
179
|
-
declare const TechDocsPicker: () => null;
|
|
180
|
-
|
|
181
184
|
declare type PanelType = 'DocsCardGrid' | 'DocsTable';
|
|
182
185
|
interface PanelConfig {
|
|
183
186
|
title: string;
|
|
@@ -192,13 +195,12 @@ interface TabConfig {
|
|
|
192
195
|
}
|
|
193
196
|
declare type TabsConfig = TabConfig[];
|
|
194
197
|
|
|
195
|
-
declare
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}) => JSX.Element;
|
|
198
|
+
declare type Props$2 = {
|
|
199
|
+
children?: React.ReactNode;
|
|
200
|
+
};
|
|
201
|
+
declare const TechDocsPageWrapper: ({ children }: Props$2) => JSX.Element;
|
|
202
|
+
|
|
203
|
+
declare const TechDocsPicker: () => null;
|
|
202
204
|
|
|
203
205
|
declare type TechDocsPageRenderFunction = ({ techdocsMetadataValue, entityMetadataValue, entityRef, }: {
|
|
204
206
|
techdocsMetadataValue?: TechDocsMetadata | undefined;
|
|
@@ -245,10 +247,10 @@ declare const TechDocsReaderPage: ({ children }: TechDocsPageProps) => JSX.Eleme
|
|
|
245
247
|
|
|
246
248
|
declare type Props$1 = {
|
|
247
249
|
entityRef: EntityName;
|
|
248
|
-
onReady?: () => void;
|
|
249
250
|
withSearch?: boolean;
|
|
251
|
+
onReady?: () => void;
|
|
250
252
|
};
|
|
251
|
-
declare const Reader: ({ entityRef, onReady, withSearch }: Props$1) => JSX.Element;
|
|
253
|
+
declare const Reader: ({ entityRef, onReady, withSearch, }: Props$1) => JSX.Element;
|
|
252
254
|
|
|
253
255
|
declare type TechDocsPageHeaderProps = {
|
|
254
256
|
entityRef: EntityName;
|
|
@@ -265,4 +267,4 @@ declare type Props = {
|
|
|
265
267
|
};
|
|
266
268
|
declare const EmbeddedDocsRouter: (_props: Props) => JSX.Element;
|
|
267
269
|
|
|
268
|
-
export { DefaultTechDocsHome, DocsCardGrid, DocsResultListItem, DocsTable, DocsTableRow, EmbeddedDocsRouter, EntityListDocsTable, EntityTechdocsContent, PanelType, Reader, Router, SyncResult, TechDocsApi, TechDocsClient, TechDocsCustomHome, TechDocsIndexPage, TechDocsPage, TechDocsPageHeader, TechDocsPageHeaderProps, TechDocsPageProps, TechDocsPageRenderFunction, TechDocsPageWrapper, TechDocsPicker, TechDocsReaderPage, TechDocsStorageApi, TechDocsStorageClient, TechdocsPage, isTechDocsAvailable, techdocsPlugin as plugin, techdocsApiRef, techdocsPlugin, techdocsStorageApiRef };
|
|
270
|
+
export { DefaultTechDocsHome, DocsCardGrid, DocsResultListItem, DocsTable, DocsTableRow, EmbeddedDocsRouter, EntityListDocsGrid, EntityListDocsTable, EntityTechdocsContent, PanelType, Reader, Router, SyncResult, TechDocsApi, TechDocsClient, TechDocsCustomHome, TechDocsIndexPage, TechDocsPage, TechDocsPageHeader, TechDocsPageHeaderProps, TechDocsPageProps, TechDocsPageRenderFunction, TechDocsPageWrapper, TechDocsPicker, TechDocsReaderPage, TechDocsStorageApi, TechDocsStorageClient, TechdocsPage, isTechDocsAvailable, techdocsPlugin as plugin, techdocsApiRef, techdocsPlugin, techdocsStorageApiRef };
|