@backstage-community/plugin-sonarqube 0.11.2 → 0.12.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +9 -4
  3. package/dist/alpha/entityCard.esm.js +2 -2
  4. package/dist/alpha/entityCard.esm.js.map +1 -1
  5. package/dist/alpha/entityContent.esm.js +2 -2
  6. package/dist/alpha/entityContent.esm.js.map +1 -1
  7. package/dist/api/SonarQubeClient.esm.js +1 -1
  8. package/dist/api/SonarQubeClient.esm.js.map +1 -1
  9. package/dist/components/SonarQubeCard/MetricInsights.esm.js +40 -32
  10. package/dist/components/SonarQubeCard/MetricInsights.esm.js.map +1 -1
  11. package/dist/components/SonarQubeCard/Percentage.esm.js +2 -2
  12. package/dist/components/SonarQubeCard/Percentage.esm.js.map +1 -1
  13. package/dist/components/SonarQubeCard/Rating.esm.js +3 -2
  14. package/dist/components/SonarQubeCard/Rating.esm.js.map +1 -1
  15. package/dist/components/SonarQubeCard/RatingCard.esm.js +12 -2
  16. package/dist/components/SonarQubeCard/RatingCard.esm.js.map +1 -1
  17. package/dist/components/SonarQubeCard/SonarQubeCard.esm.js +84 -72
  18. package/dist/components/SonarQubeCard/SonarQubeCard.esm.js.map +1 -1
  19. package/dist/components/SonarQubeCard/Value.esm.js +2 -2
  20. package/dist/components/SonarQubeCard/Value.esm.js.map +1 -1
  21. package/dist/components/SonarQubeContentPage/SonarQubeContentPage.esm.js +10 -7
  22. package/dist/components/SonarQubeContentPage/SonarQubeContentPage.esm.js.map +1 -1
  23. package/dist/components/SonarQubeTable/Columns.esm.js +44 -38
  24. package/dist/components/SonarQubeTable/Columns.esm.js.map +1 -1
  25. package/dist/components/SonarQubeTable/SonarQubeTable.esm.js +16 -16
  26. package/dist/components/SonarQubeTable/SonarQubeTable.esm.js.map +1 -1
  27. package/dist/components/index.esm.js +1 -1
  28. package/dist/index.d.ts +10 -11
  29. package/package.json +16 -16
package/dist/index.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- /// <reference types="react" />
2
1
  import { SonarQubeApi, FindingSummary } from '@backstage-community/plugin-sonarqube-react';
3
2
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
4
3
  import { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';
5
4
  import * as _backstage_catalog_model_index from '@backstage/catalog-model/index';
6
- import * as React from 'react';
7
- import React__default from 'react';
8
- import * as _backstage_core_components__ from '@backstage/core-components/*';
9
- import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import * as _backstage_core_components from '@backstage/core-components';
10
7
  import { InfoCardVariants } from '@backstage/core-components';
8
+ import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
9
+ import { ReactNode } from 'react';
11
10
 
12
11
  /** @public */
13
12
  declare class SonarQubeClient implements SonarQubeApi {
@@ -40,7 +39,7 @@ declare const SonarQubeCard: (props: {
40
39
  variant?: InfoCardVariants;
41
40
  duplicationRatings?: DuplicationRating[];
42
41
  missingAnnotationReadMoreUrl?: string;
43
- }) => React__default.JSX.Element;
42
+ }) => react_jsx_runtime.JSX.Element;
44
43
 
45
44
  /** @public */
46
45
  type SonarQubeContentPageProps = {
@@ -56,13 +55,13 @@ type SonarQubeTableProps = {
56
55
  tableContent: any[] | undefined;
57
56
  title?: string;
58
57
  options?: any | undefined;
59
- emptyContent?: React__default.ReactNode;
58
+ emptyContent?: ReactNode;
60
59
  localization?: any;
61
60
  };
62
61
  /**
63
62
  * @public
64
63
  */
65
- declare const SonarQubeTable: ({ tableContent, title, options, emptyContent, localization, }: SonarQubeTableProps) => React__default.JSX.Element;
64
+ declare const SonarQubeTable: ({ tableContent, title, options, emptyContent, localization, }: SonarQubeTableProps) => react_jsx_runtime.JSX.Element;
66
65
 
67
66
  /**
68
67
  * @public
@@ -81,12 +80,12 @@ declare const SONARQUBE_PROJECT_KEY_ANNOTATION = "sonarqube.org/project-key";
81
80
  declare const sonarQubePlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}, {}>;
82
81
  /** @public */
83
82
  declare const EntitySonarQubeCard: (props: {
84
- variant?: _backstage_core_components__.InfoCardVariants | undefined;
83
+ variant?: _backstage_core_components.InfoCardVariants | undefined;
85
84
  duplicationRatings?: DuplicationRating[] | undefined;
86
85
  missingAnnotationReadMoreUrl?: string | undefined;
87
- }) => React.JSX.Element;
86
+ }) => react_jsx_runtime.JSX.Element;
88
87
  /** @public */
89
- declare const EntitySonarQubeContentPage: (props: SonarQubeContentPageProps) => React.JSX.Element;
88
+ declare const EntitySonarQubeContentPage: (props: SonarQubeContentPageProps) => react_jsx_runtime.JSX.Element;
90
89
 
91
90
  /**
92
91
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-sonarqube",
3
- "version": "0.11.2",
3
+ "version": "0.12.1",
4
4
  "description": "",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "typesVersions": {
32
32
  "*": {
33
- "*": [
34
- "dist/index.d.ts"
35
- ],
36
33
  "alpha": [
37
34
  "dist/alpha.d.ts"
35
+ ],
36
+ "package.json": [
37
+ "package.json"
38
38
  ]
39
39
  }
40
40
  },
@@ -71,14 +71,14 @@
71
71
  "test": "backstage-cli package test"
72
72
  },
73
73
  "dependencies": {
74
- "@backstage-community/plugin-sonarqube-react": "^0.5.0",
74
+ "@backstage-community/plugin-sonarqube-react": "^0.6.0",
75
75
  "@backstage/catalog-model": "^1.7.3",
76
- "@backstage/core-compat-api": "^0.4.0",
77
- "@backstage/core-components": "^0.17.0",
78
- "@backstage/core-plugin-api": "^1.10.5",
79
- "@backstage/frontend-app-api": "^0.11.0",
80
- "@backstage/frontend-plugin-api": "^0.10.0",
81
- "@backstage/plugin-catalog-react": "^1.16.0",
76
+ "@backstage/core-compat-api": "^0.4.1",
77
+ "@backstage/core-components": "^0.17.1",
78
+ "@backstage/core-plugin-api": "^1.10.6",
79
+ "@backstage/frontend-app-api": "^0.11.1",
80
+ "@backstage/frontend-plugin-api": "^0.10.1",
81
+ "@backstage/plugin-catalog-react": "^1.17.0",
82
82
  "@material-ui/core": "^4.12.2",
83
83
  "@material-ui/icons": "^4.9.1",
84
84
  "@material-ui/styles": "^4.10.0",
@@ -89,11 +89,11 @@
89
89
  "react-use": "^17.2.4"
90
90
  },
91
91
  "devDependencies": {
92
- "@backstage/cli": "^0.31.0",
93
- "@backstage/core-app-api": "^1.16.0",
94
- "@backstage/dev-utils": "^1.1.8",
95
- "@backstage/frontend-test-utils": "^0.3.0",
96
- "@backstage/test-utils": "^1.7.6",
92
+ "@backstage/cli": "^0.32.0",
93
+ "@backstage/core-app-api": "^1.16.1",
94
+ "@backstage/dev-utils": "^1.1.9",
95
+ "@backstage/frontend-test-utils": "^0.3.1",
96
+ "@backstage/test-utils": "^1.7.7",
97
97
  "@testing-library/dom": "^10.0.0",
98
98
  "@testing-library/jest-dom": "^6.0.0",
99
99
  "@testing-library/react": "^15.0.0",