@backstage/plugin-techdocs 1.1.1-next.1 → 1.1.1

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/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { Config } from '@backstage/config';
7
7
  import * as React from 'react';
8
8
  import React__default, { ReactNode, PropsWithChildren } from 'react';
9
9
  import { ToolbarProps } from '@material-ui/core';
10
+ import { ResultHighlight } from '@backstage/plugin-search-common';
10
11
  import { TableColumn, TableProps } from '@backstage/core-components';
11
12
  import { UserListFilterKind } from '@backstage/plugin-catalog-react';
12
13
  import { CSSProperties } from '@material-ui/styles';
@@ -148,6 +149,55 @@ declare class TechDocsStorageClient implements TechDocsStorageApi {
148
149
  getBaseUrl(oldBaseUrl: string, entityId: CompoundEntityRef, path: string): Promise<string>;
149
150
  }
150
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
+
151
201
  /**
152
202
  * Props for {@link TechDocsReaderLayout}
153
203
  * @public
@@ -224,55 +274,6 @@ declare const TechDocsReaderPageContent: (props: TechDocsReaderPageContentProps)
224
274
  */
225
275
  declare const Reader: (props: TechDocsReaderPageContentProps) => JSX.Element;
226
276
 
227
- /**
228
- * @public
229
- * A state representation that is used to configure the UI of <Reader />
230
- */
231
- declare type ContentStateTypes =
232
- /** There is nothing to display but a loading indicator */
233
- 'CHECKING'
234
- /** There is no content yet -> present a full screen loading page */
235
- | 'INITIAL_BUILD'
236
- /** There is content, but the backend is about to update it */
237
- | 'CONTENT_STALE_REFRESHING'
238
- /** There is content, but after a reload, the content will be different */
239
- | 'CONTENT_STALE_READY'
240
- /** There is content, the backend tried to update it, but failed */
241
- | 'CONTENT_STALE_ERROR'
242
- /** There is nothing to see but a "not found" page. Is also shown on page load errors */
243
- | 'CONTENT_NOT_FOUND'
244
- /** There is only the latest and greatest content */
245
- | 'CONTENT_FRESH';
246
- /**
247
- * @public shared reader state
248
- */
249
- declare type ReaderState = {
250
- state: ContentStateTypes;
251
- path: string;
252
- contentReload: () => void;
253
- content?: string;
254
- contentErrorMessage?: string;
255
- syncErrorMessage?: string;
256
- buildLog: string[];
257
- };
258
-
259
- /**
260
- * @public Render function for {@link TechDocsReaderProvider}
261
- */
262
- declare type TechDocsReaderProviderRenderFunction = (value: ReaderState) => JSX.Element;
263
- /**
264
- * @public Props for {@link TechDocsReaderProvider}
265
- */
266
- declare type TechDocsReaderProviderProps = {
267
- children: TechDocsReaderProviderRenderFunction | ReactNode;
268
- };
269
- /**
270
- * Provides shared building process state to the reader page components.
271
- *
272
- * @public
273
- */
274
- declare const TechDocsReaderProvider: ({ children, }: TechDocsReaderProviderProps) => JSX.Element;
275
-
276
277
  /**
277
278
  * Renders the reader page subheader.
278
279
  * Please use the Tech Docs add-ons to customize it
@@ -289,6 +290,7 @@ declare const TechDocsReaderPageSubheader: ({ toolbarProps, }: {
289
290
  */
290
291
  declare type TechDocsSearchResultListItemProps = {
291
292
  result: any;
293
+ highlight?: ResultHighlight;
292
294
  lineClamp?: number;
293
295
  asListItem?: boolean;
294
296
  asLink?: boolean;
package/dist/index.esm.js CHANGED
@@ -1,15 +1,16 @@
1
- export { y as DefaultTechDocsHome, a as DocsCardGrid, D as DocsTable, C as EmbeddedDocsRouter, v as EntityListDocsGrid, x as EntityListDocsTable, E as EntityTechdocsContent, R as Reader, B as Router, j as TechDocsClient, d as TechDocsCustomHome, e as TechDocsIndexPage, T as TechDocsPageWrapper, z as TechDocsPicker, c as TechDocsReaderLayout, g as TechDocsReaderPage, m as TechDocsReaderPageContent, l as TechDocsReaderPageHeader, p as TechDocsReaderPageSubheader, n as TechDocsReaderProvider, s as TechDocsSearch, r as TechDocsSearchResultListItem, q as TechDocsStateIndicator, k as TechDocsStorageClient, f as TechdocsPage, A as isTechDocsAvailable, t as plugin, i as techdocsApiRef, t as techdocsPlugin, h as techdocsStorageApiRef, u as useTechDocsReader, o as useTechDocsReaderDom, w as withTechDocsReaderProvider } from './esm/index-76cc1cd7.esm.js';
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-dd16232a.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';
8
+ import 'react-use/lib/useAsync';
9
+ import 'react-use/lib/useAsyncRetry';
10
+ import '@backstage/core-components';
9
11
  import 'jss';
10
12
  import '@material-ui/core';
11
13
  import '@material-ui/styles';
12
- import 'react-text-truncate';
13
14
  import '@backstage/plugin-search-react';
14
15
  import '@material-ui/icons/Search';
15
16
  import '@material-ui/lab/Autocomplete';
@@ -17,8 +18,6 @@ import 'react-router';
17
18
  import 'react-use/lib/useDebounce';
18
19
  import '@material-ui/lab';
19
20
  import '@material-ui/icons/Close';
20
- import 'react-use/lib/useAsync';
21
- import 'react-use/lib/useAsyncRetry';
22
21
  import '@material-ui/core/styles';
23
22
  import '@backstage/integration-react';
24
23
  import '@backstage/integration';
@@ -31,6 +30,7 @@ import 'react-helmet';
31
30
  import '@material-ui/icons/Code';
32
31
  import '@backstage/plugin-catalog-react';
33
32
  import '@backstage/catalog-model';
33
+ import '@material-ui/icons/Settings';
34
34
  import 'react-use/lib/useCopyToClipboard';
35
35
  import 'lodash';
36
36
  import '@material-ui/icons/Share';
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.1-next.1",
4
+ "version": "1.1.1",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -35,16 +35,17 @@
35
35
  "clean": "backstage-cli package clean"
36
36
  },
37
37
  "dependencies": {
38
- "@backstage/catalog-model": "^1.0.1",
39
- "@backstage/config": "^1.0.0",
40
- "@backstage/core-components": "^0.9.4-next.0",
41
- "@backstage/core-plugin-api": "^1.0.2-next.0",
38
+ "@backstage/catalog-model": "^1.0.2",
39
+ "@backstage/config": "^1.0.1",
40
+ "@backstage/core-components": "^0.9.4",
41
+ "@backstage/core-plugin-api": "^1.0.2",
42
42
  "@backstage/errors": "^1.0.0",
43
- "@backstage/integration": "^1.2.0-next.0",
44
- "@backstage/integration-react": "^1.1.0-next.1",
45
- "@backstage/plugin-catalog-react": "^1.1.0-next.1",
46
- "@backstage/plugin-search-react": "^0.2.0-next.1",
47
- "@backstage/plugin-techdocs-react": "^0.1.1-next.1",
43
+ "@backstage/integration": "^1.2.0",
44
+ "@backstage/integration-react": "^1.1.0",
45
+ "@backstage/plugin-catalog-react": "^1.1.0",
46
+ "@backstage/plugin-search-common": "^0.3.4",
47
+ "@backstage/plugin-search-react": "^0.2.0",
48
+ "@backstage/plugin-techdocs-react": "^1.0.0",
48
49
  "@backstage/theme": "^0.2.15",
49
50
  "@material-ui/core": "^4.12.2",
50
51
  "@material-ui/icons": "^4.9.1",
@@ -58,7 +59,6 @@
58
59
  "react-helmet": "6.1.0",
59
60
  "react-router": "6.0.0-beta.0",
60
61
  "react-router-dom": "6.0.0-beta.0",
61
- "react-text-truncate": "^0.18.0",
62
62
  "react-use": "^17.2.4"
63
63
  },
64
64
  "peerDependencies": {
@@ -67,10 +67,10 @@
67
67
  "react-dom": "^16.13.1 || ^17.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@backstage/cli": "^0.17.1-next.1",
71
- "@backstage/core-app-api": "^1.0.2-next.0",
72
- "@backstage/dev-utils": "^1.0.2-next.1",
73
- "@backstage/test-utils": "^1.1.0-next.1",
70
+ "@backstage/cli": "^0.17.1",
71
+ "@backstage/core-app-api": "^1.0.2",
72
+ "@backstage/dev-utils": "^1.0.2",
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": "0b3df66a238c66a5498dab85b1ed85a8607289f1"
91
+ "gitHead": "96323f280ba32ee526c5b151cda42260aee927c9"
92
92
  }