@backstage/plugin-catalog-import 0.9.13 → 0.9.14-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 +32 -16
- package/dist/index.d.ts +21 -20
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-import
|
|
2
2
|
|
|
3
|
-
## 0.9.
|
|
3
|
+
## 0.9.14-next.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- @backstage/integration@1.
|
|
9
|
-
- @backstage/
|
|
10
|
-
- @backstage/plugin-
|
|
11
|
-
- @backstage/
|
|
12
|
-
- @backstage/catalog-
|
|
13
|
-
- @backstage/
|
|
14
|
-
- @backstage/
|
|
15
|
-
- @backstage/
|
|
8
|
+
- @backstage/integration-react@1.1.19-next.2
|
|
9
|
+
- @backstage/core-components@0.13.5-next.2
|
|
10
|
+
- @backstage/core-plugin-api@1.6.0-next.2
|
|
11
|
+
- @backstage/config@1.1.0-next.1
|
|
12
|
+
- @backstage/plugin-catalog-react@1.8.4-next.2
|
|
13
|
+
- @backstage/integration@1.7.0-next.2
|
|
14
|
+
- @backstage/catalog-model@1.4.2-next.1
|
|
15
|
+
- @backstage/catalog-client@1.4.4-next.1
|
|
16
16
|
- @backstage/errors@1.2.1
|
|
17
|
-
- @backstage/plugin-catalog-common@1.0.
|
|
17
|
+
- @backstage/plugin-catalog-common@1.0.16-next.1
|
|
18
|
+
|
|
19
|
+
## 0.9.14-next.1
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @backstage/plugin-catalog-react@1.8.4-next.1
|
|
25
|
+
- @backstage/core-components@0.13.5-next.1
|
|
26
|
+
- @backstage/config@1.1.0-next.0
|
|
27
|
+
- @backstage/integration@1.7.0-next.1
|
|
28
|
+
- @backstage/integration-react@1.1.19-next.1
|
|
29
|
+
- @backstage/catalog-model@1.4.2-next.0
|
|
30
|
+
- @backstage/core-plugin-api@1.6.0-next.1
|
|
31
|
+
- @backstage/catalog-client@1.4.4-next.0
|
|
32
|
+
- @backstage/plugin-catalog-common@1.0.16-next.0
|
|
33
|
+
- @backstage/errors@1.2.1
|
|
34
|
+
|
|
35
|
+
## 0.9.13-next.0
|
|
20
36
|
|
|
21
37
|
### Patch Changes
|
|
22
38
|
|
|
23
39
|
- Updated dependencies
|
|
24
|
-
- @backstage/integration@1.
|
|
25
|
-
- @backstage/integration
|
|
26
|
-
- @backstage/plugin-
|
|
40
|
+
- @backstage/integration-react@1.1.18-next.0
|
|
41
|
+
- @backstage/integration@1.7.0-next.0
|
|
42
|
+
- @backstage/core-plugin-api@1.6.0-next.0
|
|
43
|
+
- @backstage/core-components@0.13.5-next.0
|
|
27
44
|
- @backstage/catalog-client@1.4.3
|
|
28
45
|
- @backstage/catalog-model@1.4.1
|
|
29
46
|
- @backstage/config@1.0.8
|
|
30
|
-
- @backstage/core-components@0.13.4
|
|
31
|
-
- @backstage/core-plugin-api@1.5.3
|
|
32
47
|
- @backstage/errors@1.2.1
|
|
33
48
|
- @backstage/plugin-catalog-common@1.0.15
|
|
49
|
+
- @backstage/plugin-catalog-react@1.8.3-next.0
|
|
34
50
|
|
|
35
51
|
## 0.9.11
|
|
36
52
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
2
4
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
5
|
import { DiscoveryApi, IdentityApi, ConfigApi } from '@backstage/core-plugin-api';
|
|
4
6
|
import { Entity, CompoundEntityRef } from '@backstage/catalog-model';
|
|
5
|
-
import React from 'react';
|
|
6
7
|
import { InfoCardVariants } from '@backstage/core-components';
|
|
7
8
|
import { TextFieldProps } from '@material-ui/core/TextField/TextField';
|
|
8
9
|
import { FieldErrors, Controller, UseFormProps, SubmitHandler, UseFormReturn, UnpackNestedValue } from 'react-hook-form';
|
|
@@ -24,14 +25,14 @@ declare const catalogImportPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
24
25
|
*
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
27
|
-
declare const CatalogImportPage: () => JSX.Element;
|
|
28
|
+
declare const CatalogImportPage: () => React.JSX.Element;
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* The default catalog import page.
|
|
31
32
|
*
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
34
|
-
declare const DefaultImportPage: () => JSX.Element;
|
|
35
|
+
declare const DefaultImportPage: () => React__default.JSX.Element;
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* Props for {@link EntityListComponent}.
|
|
@@ -43,9 +44,9 @@ interface EntityListComponentProps {
|
|
|
43
44
|
target: string;
|
|
44
45
|
entities: (Entity | CompoundEntityRef)[];
|
|
45
46
|
}>;
|
|
46
|
-
locationListItemIcon: (target: string) =>
|
|
47
|
+
locationListItemIcon: (target: string) => React__default.ReactElement;
|
|
47
48
|
collapsed?: boolean;
|
|
48
|
-
firstListItem?:
|
|
49
|
+
firstListItem?: React__default.ReactElement;
|
|
49
50
|
onItemClick?: (target: string) => void;
|
|
50
51
|
withLinks?: boolean;
|
|
51
52
|
}
|
|
@@ -54,7 +55,7 @@ interface EntityListComponentProps {
|
|
|
54
55
|
*
|
|
55
56
|
* @public
|
|
56
57
|
*/
|
|
57
|
-
declare const EntityListComponent: (props: EntityListComponentProps) => JSX.Element;
|
|
58
|
+
declare const EntityListComponent: (props: EntityListComponentProps) => React__default.JSX.Element;
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
61
|
* Props for {@link ImportInfoCard}.
|
|
@@ -70,7 +71,7 @@ interface ImportInfoCardProps {
|
|
|
70
71
|
*
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
|
-
declare const ImportInfoCard: (props: ImportInfoCardProps) => JSX.Element;
|
|
74
|
+
declare const ImportInfoCard: (props: ImportInfoCardProps) => React__default.JSX.Element;
|
|
74
75
|
|
|
75
76
|
type RecursivePartial<T> = {
|
|
76
77
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
|
|
@@ -251,8 +252,8 @@ type StepperApis = {
|
|
|
251
252
|
};
|
|
252
253
|
|
|
253
254
|
type StepConfiguration = {
|
|
254
|
-
stepLabel:
|
|
255
|
-
content:
|
|
255
|
+
stepLabel: React__default.ReactElement;
|
|
256
|
+
content: React__default.ReactElement;
|
|
256
257
|
};
|
|
257
258
|
/**
|
|
258
259
|
* Defines the details of the stepper.
|
|
@@ -308,7 +309,7 @@ interface ImportStepperProps {
|
|
|
308
309
|
*
|
|
309
310
|
* @public
|
|
310
311
|
*/
|
|
311
|
-
declare const ImportStepper: (props: ImportStepperProps) => JSX.Element;
|
|
312
|
+
declare const ImportStepper: (props: ImportStepperProps) => React__default.JSX.Element;
|
|
312
313
|
|
|
313
314
|
/**
|
|
314
315
|
* Props for {@link StepInitAnalyzeUrl}.
|
|
@@ -331,7 +332,7 @@ interface StepInitAnalyzeUrlProps {
|
|
|
331
332
|
* @param disablePullRequest - if true, repositories without entities will abort the wizard
|
|
332
333
|
* @public
|
|
333
334
|
*/
|
|
334
|
-
declare const StepInitAnalyzeUrl: (props: StepInitAnalyzeUrlProps) => JSX.Element;
|
|
335
|
+
declare const StepInitAnalyzeUrl: (props: StepInitAnalyzeUrlProps) => React__default.JSX.Element;
|
|
335
336
|
|
|
336
337
|
/**
|
|
337
338
|
* Props for {@link AutocompleteTextField}.
|
|
@@ -343,10 +344,10 @@ interface AutocompleteTextFieldProps<TFieldValue extends string> {
|
|
|
343
344
|
options: string[];
|
|
344
345
|
required?: boolean;
|
|
345
346
|
errors?: FieldErrors;
|
|
346
|
-
rules?:
|
|
347
|
+
rules?: React__default.ComponentProps<typeof Controller>['rules'];
|
|
347
348
|
loading?: boolean;
|
|
348
349
|
loadingText?: string;
|
|
349
|
-
helperText?:
|
|
350
|
+
helperText?: React__default.ReactNode;
|
|
350
351
|
errorHelperText?: string;
|
|
351
352
|
textFieldProps?: Omit<TextFieldProps, 'required' | 'fullWidth'>;
|
|
352
353
|
}
|
|
@@ -355,7 +356,7 @@ interface AutocompleteTextFieldProps<TFieldValue extends string> {
|
|
|
355
356
|
*
|
|
356
357
|
* @public
|
|
357
358
|
*/
|
|
358
|
-
declare const AutocompleteTextField: <TFieldValue extends string>(props: AutocompleteTextFieldProps<TFieldValue>) => JSX.Element;
|
|
359
|
+
declare const AutocompleteTextField: <TFieldValue extends string>(props: AutocompleteTextFieldProps<TFieldValue>) => React__default.JSX.Element;
|
|
359
360
|
|
|
360
361
|
/**
|
|
361
362
|
* Props for {@link PreparePullRequestForm}.
|
|
@@ -366,7 +367,7 @@ type PreparePullRequestFormProps<TFieldValues extends Record<string, any>> = Pic
|
|
|
366
367
|
onSubmit: SubmitHandler<TFieldValues>;
|
|
367
368
|
render: (props: Pick<UseFormReturn<TFieldValues>, 'formState' | 'register' | 'control' | 'setValue'> & {
|
|
368
369
|
values: UnpackNestedValue<TFieldValues>;
|
|
369
|
-
}) =>
|
|
370
|
+
}) => React__default.ReactNode;
|
|
370
371
|
};
|
|
371
372
|
/**
|
|
372
373
|
* A form wrapper that creates a form that is used to prepare a pull request. It
|
|
@@ -378,7 +379,7 @@ type PreparePullRequestFormProps<TFieldValues extends Record<string, any>> = Pic
|
|
|
378
379
|
* @param render - render the form elements
|
|
379
380
|
* @public
|
|
380
381
|
*/
|
|
381
|
-
declare const PreparePullRequestForm: <TFieldValues extends Record<string, any>>(props: PreparePullRequestFormProps<TFieldValues>) => JSX.Element;
|
|
382
|
+
declare const PreparePullRequestForm: <TFieldValues extends Record<string, any>>(props: PreparePullRequestFormProps<TFieldValues>) => React__default.JSX.Element;
|
|
382
383
|
|
|
383
384
|
/**
|
|
384
385
|
* Props for {@link PreviewCatalogInfoComponent}.
|
|
@@ -398,7 +399,7 @@ interface PreviewCatalogInfoComponentProps {
|
|
|
398
399
|
*
|
|
399
400
|
* @public
|
|
400
401
|
*/
|
|
401
|
-
declare const PreviewCatalogInfoComponent: (props: PreviewCatalogInfoComponentProps) => JSX.Element;
|
|
402
|
+
declare const PreviewCatalogInfoComponent: (props: PreviewCatalogInfoComponentProps) => React__default.JSX.Element;
|
|
402
403
|
|
|
403
404
|
/**
|
|
404
405
|
* Props for {@link PreviewPullRequestComponent}.
|
|
@@ -418,7 +419,7 @@ interface PreviewPullRequestComponentProps {
|
|
|
418
419
|
*
|
|
419
420
|
* @public
|
|
420
421
|
*/
|
|
421
|
-
declare const PreviewPullRequestComponent: (props: PreviewPullRequestComponentProps) => JSX.Element;
|
|
422
|
+
declare const PreviewPullRequestComponent: (props: PreviewPullRequestComponentProps) => React__default.JSX.Element;
|
|
422
423
|
|
|
423
424
|
type FormData = {
|
|
424
425
|
title: string;
|
|
@@ -444,13 +445,13 @@ interface StepPrepareCreatePullRequestProps {
|
|
|
444
445
|
values: UnpackNestedValue<FormData>;
|
|
445
446
|
groups: string[];
|
|
446
447
|
groupsLoading: boolean;
|
|
447
|
-
}) =>
|
|
448
|
+
}) => React__default.ReactNode;
|
|
448
449
|
}
|
|
449
450
|
/**
|
|
450
451
|
* Prepares a pull request.
|
|
451
452
|
*
|
|
452
453
|
* @public
|
|
453
454
|
*/
|
|
454
|
-
declare const StepPrepareCreatePullRequest: (props: StepPrepareCreatePullRequestProps) => JSX.Element;
|
|
455
|
+
declare const StepPrepareCreatePullRequest: (props: StepPrepareCreatePullRequestProps) => React__default.JSX.Element;
|
|
455
456
|
|
|
456
457
|
export { AnalyzeResult, AutocompleteTextField, AutocompleteTextFieldProps, CatalogImportApi, CatalogImportClient, CatalogImportPage, DefaultImportPage, EntityListComponent, EntityListComponentProps, ImportFlows, ImportInfoCard, ImportInfoCardProps, ImportState, ImportStepper, ImportStepperProps, PreparePullRequestForm, PreparePullRequestFormProps, PrepareResult, PreviewCatalogInfoComponent, PreviewCatalogInfoComponentProps, PreviewPullRequestComponent, PreviewPullRequestComponentProps, StepInitAnalyzeUrl, StepInitAnalyzeUrlProps, StepPrepareCreatePullRequest, StepPrepareCreatePullRequestProps, catalogImportApiRef, catalogImportPlugin, defaultGenerateStepper, catalogImportPlugin as plugin };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-import",
|
|
3
3
|
"description": "A Backstage plugin the helps you import entities into your catalog",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.14-next.2",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"clean": "backstage-cli package clean"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/catalog-client": "^1.4.
|
|
36
|
-
"@backstage/catalog-model": "^1.4.1",
|
|
37
|
-
"@backstage/config": "^1.0.
|
|
38
|
-
"@backstage/core-components": "^0.13.
|
|
39
|
-
"@backstage/core-plugin-api": "^1.
|
|
35
|
+
"@backstage/catalog-client": "^1.4.4-next.1",
|
|
36
|
+
"@backstage/catalog-model": "^1.4.2-next.1",
|
|
37
|
+
"@backstage/config": "^1.1.0-next.1",
|
|
38
|
+
"@backstage/core-components": "^0.13.5-next.2",
|
|
39
|
+
"@backstage/core-plugin-api": "^1.6.0-next.2",
|
|
40
40
|
"@backstage/errors": "^1.2.1",
|
|
41
|
-
"@backstage/integration": "^1.
|
|
42
|
-
"@backstage/integration-react": "^1.1.
|
|
43
|
-
"@backstage/plugin-catalog-common": "^1.0.
|
|
44
|
-
"@backstage/plugin-catalog-react": "^1.8.
|
|
41
|
+
"@backstage/integration": "^1.7.0-next.2",
|
|
42
|
+
"@backstage/integration-react": "^1.1.19-next.2",
|
|
43
|
+
"@backstage/plugin-catalog-common": "^1.0.16-next.1",
|
|
44
|
+
"@backstage/plugin-catalog-react": "^1.8.4-next.2",
|
|
45
45
|
"@material-ui/core": "^4.12.2",
|
|
46
46
|
"@material-ui/icons": "^4.9.1",
|
|
47
47
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@backstage/cli": "^0.22.
|
|
64
|
-
"@backstage/core-app-api": "^1.
|
|
65
|
-
"@backstage/dev-utils": "^1.0.
|
|
66
|
-
"@backstage/test-utils": "^1.4.2",
|
|
63
|
+
"@backstage/cli": "^0.22.13-next.2",
|
|
64
|
+
"@backstage/core-app-api": "^1.10.0-next.2",
|
|
65
|
+
"@backstage/dev-utils": "^1.0.21-next.2",
|
|
66
|
+
"@backstage/test-utils": "^1.4.3-next.2",
|
|
67
67
|
"@testing-library/dom": "^8.0.0",
|
|
68
68
|
"@testing-library/jest-dom": "^5.10.1",
|
|
69
69
|
"@testing-library/react": "^12.1.3",
|