@backstage/plugin-catalog-import 0.9.7-next.1 → 0.9.7-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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @backstage/plugin-catalog-import
2
2
 
3
+ ## 0.9.7-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/catalog-client@1.4.1-next.0
9
+ - @backstage/core-components@0.12.6-next.2
10
+ - @backstage/plugin-catalog-react@1.4.1-next.2
11
+ - @backstage/core-plugin-api@1.5.1-next.1
12
+ - @backstage/catalog-model@1.2.1
13
+ - @backstage/config@1.0.7
14
+ - @backstage/errors@1.1.5
15
+ - @backstage/integration@1.4.4-next.0
16
+ - @backstage/integration-react@1.1.12-next.2
17
+ - @backstage/plugin-catalog-common@1.0.13-next.0
18
+
3
19
  ## 0.9.7-next.1
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -72,10 +72,10 @@ interface ImportInfoCardProps {
72
72
  */
73
73
  declare const ImportInfoCard: (props: ImportInfoCardProps) => JSX.Element;
74
74
 
75
- declare type RecursivePartial<T> = {
75
+ type RecursivePartial<T> = {
76
76
  [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
77
77
  };
78
- declare type PartialEntity = RecursivePartial<Entity>;
78
+ type PartialEntity = RecursivePartial<Entity>;
79
79
 
80
80
  /**
81
81
  * Utility API reference for the {@link CatalogImportApi}.
@@ -88,7 +88,7 @@ declare const catalogImportApiRef: _backstage_core_plugin_api.ApiRef<CatalogImpo
88
88
  *
89
89
  * @public
90
90
  */
91
- declare type AnalyzeResult = {
91
+ type AnalyzeResult = {
92
92
  type: 'locations';
93
93
  locations: Array<{
94
94
  target: string;
@@ -166,13 +166,13 @@ declare class CatalogImportClient implements CatalogImportApi {
166
166
  *
167
167
  * @public
168
168
  */
169
- declare type ImportFlows = 'unknown' | 'single-location' | 'multiple-locations' | 'no-location';
169
+ type ImportFlows = 'unknown' | 'single-location' | 'multiple-locations' | 'no-location';
170
170
  /**
171
171
  * Result of the prepare state.
172
172
  *
173
173
  * @public
174
174
  */
175
- declare type PrepareResult = {
175
+ type PrepareResult = {
176
176
  type: 'locations';
177
177
  locations: Array<{
178
178
  exists?: boolean;
@@ -191,7 +191,7 @@ declare type PrepareResult = {
191
191
  entities: CompoundEntityRef[];
192
192
  }>;
193
193
  };
194
- declare type ReviewResult = {
194
+ type ReviewResult = {
195
195
  type: 'locations';
196
196
  locations: Array<{
197
197
  target: string;
@@ -212,14 +212,14 @@ declare type ReviewResult = {
212
212
  entities: Entity[];
213
213
  }>;
214
214
  };
215
- declare type onAnalysisFn = (flow: ImportFlows, url: string, result: AnalyzeResult, opts?: {
215
+ type onAnalysisFn = (flow: ImportFlows, url: string, result: AnalyzeResult, opts?: {
216
216
  prepareResult?: PrepareResult;
217
217
  }) => void;
218
- declare type onPrepareFn = (result: PrepareResult, opts?: {
218
+ type onPrepareFn = (result: PrepareResult, opts?: {
219
219
  notRepeatable?: boolean;
220
220
  }) => void;
221
- declare type onReviewFn = (result: ReviewResult) => void;
222
- declare type State = {
221
+ type onReviewFn = (result: ReviewResult) => void;
222
+ type State = {
223
223
  activeState: 'analyze';
224
224
  onAnalysis: onAnalysisFn;
225
225
  } | {
@@ -238,7 +238,7 @@ declare type State = {
238
238
  prepareResult: PrepareResult;
239
239
  reviewResult: ReviewResult;
240
240
  };
241
- declare type ImportState = State & {
241
+ type ImportState = State & {
242
242
  activeFlow: ImportFlows;
243
243
  activeStepNumber: number;
244
244
  analysisUrl?: string;
@@ -246,11 +246,11 @@ declare type ImportState = State & {
246
246
  onReset: () => void;
247
247
  };
248
248
 
249
- declare type StepperApis = {
249
+ type StepperApis = {
250
250
  catalogImportApi: CatalogImportApi;
251
251
  };
252
252
 
253
- declare type StepConfiguration = {
253
+ type StepConfiguration = {
254
254
  stepLabel: React.ReactElement;
255
255
  content: React.ReactElement;
256
256
  };
@@ -362,7 +362,7 @@ declare const AutocompleteTextField: <TFieldValue extends string>(props: Autocom
362
362
  *
363
363
  * @public
364
364
  */
365
- declare type PreparePullRequestFormProps<TFieldValues extends Record<string, any>> = Pick<UseFormProps<TFieldValues>, 'defaultValues'> & {
365
+ type PreparePullRequestFormProps<TFieldValues extends Record<string, any>> = Pick<UseFormProps<TFieldValues>, 'defaultValues'> & {
366
366
  onSubmit: SubmitHandler<TFieldValues>;
367
367
  render: (props: Pick<UseFormReturn<TFieldValues>, 'formState' | 'register' | 'control' | 'setValue'> & {
368
368
  values: UnpackNestedValue<TFieldValues>;
@@ -420,7 +420,7 @@ interface PreviewPullRequestComponentProps {
420
420
  */
421
421
  declare const PreviewPullRequestComponent: (props: PreviewPullRequestComponentProps) => JSX.Element;
422
422
 
423
- declare type FormData = {
423
+ type FormData = {
424
424
  title: string;
425
425
  body: string;
426
426
  componentName: string;
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.7-next.1",
4
+ "version": "0.9.7-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.0",
35
+ "@backstage/catalog-client": "^1.4.1-next.0",
36
36
  "@backstage/catalog-model": "^1.2.1",
37
37
  "@backstage/config": "^1.0.7",
38
- "@backstage/core-components": "^0.12.6-next.1",
39
- "@backstage/core-plugin-api": "^1.5.1-next.0",
38
+ "@backstage/core-components": "^0.12.6-next.2",
39
+ "@backstage/core-plugin-api": "^1.5.1-next.1",
40
40
  "@backstage/errors": "^1.1.5",
41
41
  "@backstage/integration": "^1.4.4-next.0",
42
- "@backstage/integration-react": "^1.1.12-next.1",
42
+ "@backstage/integration-react": "^1.1.12-next.2",
43
43
  "@backstage/plugin-catalog-common": "^1.0.13-next.0",
44
- "@backstage/plugin-catalog-react": "^1.4.1-next.1",
44
+ "@backstage/plugin-catalog-react": "^1.4.1-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.6-next.1",
64
- "@backstage/core-app-api": "^1.7.0-next.1",
65
- "@backstage/dev-utils": "^1.0.14-next.1",
66
- "@backstage/test-utils": "^1.3.0-next.1",
63
+ "@backstage/cli": "^0.22.6-next.2",
64
+ "@backstage/core-app-api": "^1.7.0-next.2",
65
+ "@backstage/dev-utils": "^1.0.14-next.2",
66
+ "@backstage/test-utils": "^1.3.0-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",