@backstage/plugin-techdocs 1.1.1-next.2 → 1.1.2-next.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 +58 -0
- package/dist/esm/{TechDocsCustomHome-b77adc6d.esm.js → TechDocsCustomHome-778a795b.esm.js} +5 -7
- package/dist/esm/{TechDocsCustomHome-b77adc6d.esm.js.map → TechDocsCustomHome-778a795b.esm.js.map} +1 -1
- package/dist/esm/{index-c537b1f3.esm.js → index-9202d491.esm.js} +821 -797
- package/dist/esm/index-9202d491.esm.js.map +1 -0
- package/dist/esm/{index-52f21300.esm.js → index-d4a4af9b.esm.js} +7 -9
- package/dist/esm/index-d4a4af9b.esm.js.map +1 -0
- package/dist/index.d.ts +51 -51
- package/dist/index.esm.js +6 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +17 -17
- package/dist/esm/index-52f21300.esm.js.map +0 -1
- package/dist/esm/index-c537b1f3.esm.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { c as TechDocsReaderLayout, b as TechDocsReaderPage } from './index-
|
|
1
|
+
export { c as TechDocsReaderLayout, b as TechDocsReaderPage } from './index-9202d491.esm.js';
|
|
2
2
|
import '@backstage/core-plugin-api';
|
|
3
3
|
import '@backstage/errors';
|
|
4
4
|
import 'event-source-polyfill';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-router-dom';
|
|
7
|
-
import '@backstage/core-components';
|
|
8
7
|
import '@backstage/plugin-techdocs-react';
|
|
9
|
-
import '
|
|
8
|
+
import 'react-use/lib/useAsync';
|
|
9
|
+
import 'react-use/lib/useAsyncRetry';
|
|
10
|
+
import '@backstage/core-components';
|
|
10
11
|
import '@material-ui/core';
|
|
11
|
-
import '@material-ui/styles';
|
|
12
12
|
import '@backstage/plugin-search-react';
|
|
13
13
|
import '@material-ui/icons/Search';
|
|
14
14
|
import '@material-ui/lab/Autocomplete';
|
|
@@ -16,16 +16,13 @@ import 'react-router';
|
|
|
16
16
|
import 'react-use/lib/useDebounce';
|
|
17
17
|
import '@material-ui/lab';
|
|
18
18
|
import '@material-ui/icons/Close';
|
|
19
|
-
import 'react-use/lib/useAsync';
|
|
20
|
-
import 'react-use/lib/useAsyncRetry';
|
|
21
|
-
import '@material-ui/core/styles';
|
|
22
19
|
import '@backstage/integration-react';
|
|
20
|
+
import 'dompurify';
|
|
23
21
|
import '@backstage/integration';
|
|
24
22
|
import '@material-ui/icons/FeedbackOutlined';
|
|
25
23
|
import 'react-dom';
|
|
26
24
|
import 'git-url-parse';
|
|
27
25
|
import '@material-ui/icons/Menu';
|
|
28
|
-
import 'dompurify';
|
|
29
26
|
import 'react-helmet';
|
|
30
27
|
import '@material-ui/icons/Code';
|
|
31
28
|
import '@backstage/plugin-catalog-react';
|
|
@@ -34,6 +31,7 @@ import '@material-ui/icons/Settings';
|
|
|
34
31
|
import 'react-use/lib/useCopyToClipboard';
|
|
35
32
|
import 'lodash';
|
|
36
33
|
import '@material-ui/icons/Share';
|
|
34
|
+
import '@material-ui/styles';
|
|
37
35
|
import '@material-ui/icons/Star';
|
|
38
36
|
import '@material-ui/icons/StarBorder';
|
|
39
|
-
//# sourceMappingURL=index-
|
|
37
|
+
//# sourceMappingURL=index-d4a4af9b.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-d4a4af9b.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,55 @@ declare class TechDocsStorageClient implements TechDocsStorageApi {
|
|
|
149
149
|
getBaseUrl(oldBaseUrl: string, entityId: CompoundEntityRef, path: string): Promise<string>;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
* A state representation that is used to configure the UI of <Reader />
|
|
155
|
+
*/
|
|
156
|
+
declare type ContentStateTypes =
|
|
157
|
+
/** There is nothing to display but a loading indicator */
|
|
158
|
+
'CHECKING'
|
|
159
|
+
/** There is no content yet -> present a full screen loading page */
|
|
160
|
+
| 'INITIAL_BUILD'
|
|
161
|
+
/** There is content, but the backend is about to update it */
|
|
162
|
+
| 'CONTENT_STALE_REFRESHING'
|
|
163
|
+
/** There is content, but after a reload, the content will be different */
|
|
164
|
+
| 'CONTENT_STALE_READY'
|
|
165
|
+
/** There is content, the backend tried to update it, but failed */
|
|
166
|
+
| 'CONTENT_STALE_ERROR'
|
|
167
|
+
/** There is nothing to see but a "not found" page. Is also shown on page load errors */
|
|
168
|
+
| 'CONTENT_NOT_FOUND'
|
|
169
|
+
/** There is only the latest and greatest content */
|
|
170
|
+
| 'CONTENT_FRESH';
|
|
171
|
+
/**
|
|
172
|
+
* @public shared reader state
|
|
173
|
+
*/
|
|
174
|
+
declare type ReaderState = {
|
|
175
|
+
state: ContentStateTypes;
|
|
176
|
+
path: string;
|
|
177
|
+
contentReload: () => void;
|
|
178
|
+
content?: string;
|
|
179
|
+
contentErrorMessage?: string;
|
|
180
|
+
syncErrorMessage?: string;
|
|
181
|
+
buildLog: string[];
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @public Render function for {@link TechDocsReaderProvider}
|
|
186
|
+
*/
|
|
187
|
+
declare type TechDocsReaderProviderRenderFunction = (value: ReaderState) => JSX.Element;
|
|
188
|
+
/**
|
|
189
|
+
* @public Props for {@link TechDocsReaderProvider}
|
|
190
|
+
*/
|
|
191
|
+
declare type TechDocsReaderProviderProps = {
|
|
192
|
+
children: TechDocsReaderProviderRenderFunction | ReactNode;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Provides shared building process state to the reader page components.
|
|
196
|
+
*
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
declare const TechDocsReaderProvider: ({ children, }: TechDocsReaderProviderProps) => JSX.Element;
|
|
200
|
+
|
|
152
201
|
/**
|
|
153
202
|
* Props for {@link TechDocsReaderLayout}
|
|
154
203
|
* @public
|
|
@@ -225,55 +274,6 @@ declare const TechDocsReaderPageContent: (props: TechDocsReaderPageContentProps)
|
|
|
225
274
|
*/
|
|
226
275
|
declare const Reader: (props: TechDocsReaderPageContentProps) => JSX.Element;
|
|
227
276
|
|
|
228
|
-
/**
|
|
229
|
-
* @public
|
|
230
|
-
* A state representation that is used to configure the UI of <Reader />
|
|
231
|
-
*/
|
|
232
|
-
declare type ContentStateTypes =
|
|
233
|
-
/** There is nothing to display but a loading indicator */
|
|
234
|
-
'CHECKING'
|
|
235
|
-
/** There is no content yet -> present a full screen loading page */
|
|
236
|
-
| 'INITIAL_BUILD'
|
|
237
|
-
/** There is content, but the backend is about to update it */
|
|
238
|
-
| 'CONTENT_STALE_REFRESHING'
|
|
239
|
-
/** There is content, but after a reload, the content will be different */
|
|
240
|
-
| 'CONTENT_STALE_READY'
|
|
241
|
-
/** There is content, the backend tried to update it, but failed */
|
|
242
|
-
| 'CONTENT_STALE_ERROR'
|
|
243
|
-
/** There is nothing to see but a "not found" page. Is also shown on page load errors */
|
|
244
|
-
| 'CONTENT_NOT_FOUND'
|
|
245
|
-
/** There is only the latest and greatest content */
|
|
246
|
-
| 'CONTENT_FRESH';
|
|
247
|
-
/**
|
|
248
|
-
* @public shared reader state
|
|
249
|
-
*/
|
|
250
|
-
declare type ReaderState = {
|
|
251
|
-
state: ContentStateTypes;
|
|
252
|
-
path: string;
|
|
253
|
-
contentReload: () => void;
|
|
254
|
-
content?: string;
|
|
255
|
-
contentErrorMessage?: string;
|
|
256
|
-
syncErrorMessage?: string;
|
|
257
|
-
buildLog: string[];
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @public Render function for {@link TechDocsReaderProvider}
|
|
262
|
-
*/
|
|
263
|
-
declare type TechDocsReaderProviderRenderFunction = (value: ReaderState) => JSX.Element;
|
|
264
|
-
/**
|
|
265
|
-
* @public Props for {@link TechDocsReaderProvider}
|
|
266
|
-
*/
|
|
267
|
-
declare type TechDocsReaderProviderProps = {
|
|
268
|
-
children: TechDocsReaderProviderRenderFunction | ReactNode;
|
|
269
|
-
};
|
|
270
|
-
/**
|
|
271
|
-
* Provides shared building process state to the reader page components.
|
|
272
|
-
*
|
|
273
|
-
* @public
|
|
274
|
-
*/
|
|
275
|
-
declare const TechDocsReaderProvider: ({ children, }: TechDocsReaderProviderProps) => JSX.Element;
|
|
276
|
-
|
|
277
277
|
/**
|
|
278
278
|
* Renders the reader page subheader.
|
|
279
279
|
* Please use the Tech Docs add-ons to customize it
|
|
@@ -542,7 +542,7 @@ declare const TechdocsPage: () => JSX.Element;
|
|
|
542
542
|
*/
|
|
543
543
|
declare const EntityTechdocsContent: (props: {
|
|
544
544
|
children?: React.ReactNode;
|
|
545
|
-
}) => JSX.Element;
|
|
545
|
+
}) => JSX.Element | null;
|
|
546
546
|
/**
|
|
547
547
|
* Component which takes a custom tabs config object and renders a documentation landing page.
|
|
548
548
|
*
|
|
@@ -579,7 +579,7 @@ declare const Router: () => JSX.Element;
|
|
|
579
579
|
*
|
|
580
580
|
* @public
|
|
581
581
|
*/
|
|
582
|
-
declare const EmbeddedDocsRouter: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
582
|
+
declare const EmbeddedDocsRouter: (props: PropsWithChildren<{}>) => JSX.Element | null;
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* The Backstage plugin that renders technical documentation for your components
|
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { u as DefaultTechDocsHome, a as DocsCardGrid, D as DocsTable, y as EmbeddedDocsRouter, r as EntityListDocsGrid, s as EntityListDocsTable, E as EntityTechdocsContent, R as Reader, x as Router, j as TechDocsClient, d as TechDocsCustomHome, e as TechDocsIndexPage, T as TechDocsPageWrapper, v as TechDocsPicker, c as TechDocsReaderLayout, g as TechDocsReaderPage, n as TechDocsReaderPageContent, m as TechDocsReaderPageHeader, o as TechDocsReaderPageSubheader, l as TechDocsReaderProvider, q as TechDocsSearch, p as TechDocsSearchResultListItem, k as TechDocsStorageClient, f as TechdocsPage, w as isTechDocsAvailable, t as plugin, i as techdocsApiRef, t as techdocsPlugin, h as techdocsStorageApiRef } from './esm/index-9202d491.esm.js';
|
|
2
2
|
import '@backstage/core-plugin-api';
|
|
3
3
|
import '@backstage/errors';
|
|
4
4
|
import 'event-source-polyfill';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-router-dom';
|
|
7
|
-
import '@backstage/core-components';
|
|
8
7
|
import '@backstage/plugin-techdocs-react';
|
|
9
|
-
import '
|
|
8
|
+
import 'react-use/lib/useAsync';
|
|
9
|
+
import 'react-use/lib/useAsyncRetry';
|
|
10
|
+
import '@backstage/core-components';
|
|
10
11
|
import '@material-ui/core';
|
|
11
|
-
import '@material-ui/styles';
|
|
12
12
|
import '@backstage/plugin-search-react';
|
|
13
13
|
import '@material-ui/icons/Search';
|
|
14
14
|
import '@material-ui/lab/Autocomplete';
|
|
@@ -16,16 +16,13 @@ import 'react-router';
|
|
|
16
16
|
import 'react-use/lib/useDebounce';
|
|
17
17
|
import '@material-ui/lab';
|
|
18
18
|
import '@material-ui/icons/Close';
|
|
19
|
-
import 'react-use/lib/useAsync';
|
|
20
|
-
import 'react-use/lib/useAsyncRetry';
|
|
21
|
-
import '@material-ui/core/styles';
|
|
22
19
|
import '@backstage/integration-react';
|
|
20
|
+
import 'dompurify';
|
|
23
21
|
import '@backstage/integration';
|
|
24
22
|
import '@material-ui/icons/FeedbackOutlined';
|
|
25
23
|
import 'react-dom';
|
|
26
24
|
import 'git-url-parse';
|
|
27
25
|
import '@material-ui/icons/Menu';
|
|
28
|
-
import 'dompurify';
|
|
29
26
|
import 'react-helmet';
|
|
30
27
|
import '@material-ui/icons/Code';
|
|
31
28
|
import '@backstage/plugin-catalog-react';
|
|
@@ -34,6 +31,7 @@ import '@material-ui/icons/Settings';
|
|
|
34
31
|
import 'react-use/lib/useCopyToClipboard';
|
|
35
32
|
import 'lodash';
|
|
36
33
|
import '@material-ui/icons/Share';
|
|
34
|
+
import '@material-ui/styles';
|
|
37
35
|
import '@material-ui/icons/Star';
|
|
38
36
|
import '@material-ui/icons/StarBorder';
|
|
39
37
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-techdocs",
|
|
3
3
|
"description": "The Backstage plugin that renders technical documentation for your components",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2-next.0",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"clean": "backstage-cli package clean"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@backstage/catalog-model": "^1.0.2
|
|
39
|
-
"@backstage/config": "^1.0.1
|
|
40
|
-
"@backstage/core-components": "^0.9.
|
|
41
|
-
"@backstage/core-plugin-api": "^1.0.2
|
|
38
|
+
"@backstage/catalog-model": "^1.0.2",
|
|
39
|
+
"@backstage/config": "^1.0.1",
|
|
40
|
+
"@backstage/core-components": "^0.9.5-next.0",
|
|
41
|
+
"@backstage/core-plugin-api": "^1.0.2",
|
|
42
42
|
"@backstage/errors": "^1.0.0",
|
|
43
|
-
"@backstage/integration": "^1.2.
|
|
44
|
-
"@backstage/integration-react": "^1.1.
|
|
45
|
-
"@backstage/plugin-catalog-react": "^1.1.
|
|
46
|
-
"@backstage/plugin-search-common": "^0.3.4
|
|
47
|
-
"@backstage/plugin-search-react": "^0.2.0
|
|
48
|
-
"@backstage/plugin-techdocs-react": "^0.1
|
|
43
|
+
"@backstage/integration": "^1.2.1-next.0",
|
|
44
|
+
"@backstage/integration-react": "^1.1.1-next.0",
|
|
45
|
+
"@backstage/plugin-catalog-react": "^1.1.1-next.0",
|
|
46
|
+
"@backstage/plugin-search-common": "^0.3.4",
|
|
47
|
+
"@backstage/plugin-search-react": "^0.2.0",
|
|
48
|
+
"@backstage/plugin-techdocs-react": "^1.0.1-next.0",
|
|
49
49
|
"@backstage/theme": "^0.2.15",
|
|
50
50
|
"@material-ui/core": "^4.12.2",
|
|
51
51
|
"@material-ui/icons": "^4.9.1",
|
|
52
52
|
"@material-ui/lab": "4.0.0-alpha.57",
|
|
53
53
|
"@material-ui/styles": "^4.10.0",
|
|
54
54
|
"dompurify": "^2.2.9",
|
|
55
|
-
"event-source-polyfill": "1.0.
|
|
55
|
+
"event-source-polyfill": "1.0.25",
|
|
56
56
|
"git-url-parse": "^11.6.0",
|
|
57
57
|
"jss": "~10.8.2",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"react-dom": "^16.13.1 || ^17.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@backstage/cli": "^0.17.
|
|
71
|
-
"@backstage/core-app-api": "^1.0.2
|
|
72
|
-
"@backstage/dev-utils": "^1.0.
|
|
73
|
-
"@backstage/test-utils": "^1.1.0
|
|
70
|
+
"@backstage/cli": "^0.17.2-next.0",
|
|
71
|
+
"@backstage/core-app-api": "^1.0.2",
|
|
72
|
+
"@backstage/dev-utils": "^1.0.3-next.0",
|
|
73
|
+
"@backstage/test-utils": "^1.1.0",
|
|
74
74
|
"@testing-library/jest-dom": "^5.10.1",
|
|
75
75
|
"@testing-library/react": "^12.1.3",
|
|
76
76
|
"@testing-library/react-hooks": "^8.0.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"config.d.ts"
|
|
89
89
|
],
|
|
90
90
|
"configSchema": "config.d.ts",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "c1511c99a532aeb003a97510a5638bd939ee65ca"
|
|
92
92
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-52f21300.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|