@red-hat-developer-hub/backstage-plugin-scorecard 3.0.0 → 3.0.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @red-hat-developer-hub/backstage-plugin-scorecard
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e3fb07a: Export translations module as default for NFS auto-discovery
|
|
8
|
+
- @red-hat-developer-hub/backstage-plugin-scorecard-common@3.0.1
|
|
9
|
+
|
|
3
10
|
## 3.0.0
|
|
4
11
|
|
|
5
12
|
### Major Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -10,6 +10,7 @@ import { scorecardEntityLayoutGrid } from './extensions/scorecardLayoutExtension
|
|
|
10
10
|
export { scorecardTranslationRef } from './translations/ref.esm.js';
|
|
11
11
|
|
|
12
12
|
const scorecardTranslation = TranslationBlueprint.make({
|
|
13
|
+
name: "scorecard-translations",
|
|
13
14
|
params: {
|
|
14
15
|
resource: scorecardTranslations
|
|
15
16
|
}
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Scorecard plugin for Backstage – entity scorecards, metrics, and entities page.\n * @packageDocumentation\n */\n\nimport {\n createFrontendModule,\n createFrontendPlugin,\n} from '@backstage/frontend-plugin-api';\nimport { TranslationBlueprint } from '@backstage/plugin-app-react';\nimport { rootRouteRef, scorecardDrillDownRouteRef } from './routes';\nimport { scorecardTranslations } from './translations';\nimport { scorecardApi } from './extensions/api';\nimport { scorecardEntityContent } from './extensions/entityTab';\nimport {\n aggregatedCardWithDeprecatedMetricIdWidget,\n aggregatedCardWithDefaultAggregationWidget,\n aggregatedCardWithGithubOpenPrsWidget,\n aggregatedCardWithJiraOpenIssuesWidget,\n aggregatedCardWithGithubFilecheckLicenseWidget,\n aggregatedCardWithGithubFilecheckCodeownersWidget,\n aggregatedCardWithGithubOpenPrsWeightedWidget,\n} from './extensions/homePageCards';\nimport { scorecardPage } from './extensions/scorecardPage';\nimport { scorecardEntityLayoutGrid } from './extensions/scorecardLayoutExtensions';\n\n/**\n * Extension for Scorecard translations.\n */\nconst scorecardTranslation = TranslationBlueprint.make({\n params: {\n resource: scorecardTranslations,\n },\n});\n\n/**\n * The primary Scorecard frontend plugin for the new Backstage frontend system.\n *\n * Includes page, API, entity tab, layout, and homepage widget extensions.\n * Translations remain a separate app module (NFS requirement).\n *\n * @public\n */\nexport default createFrontendPlugin({\n pluginId: 'scorecard',\n extensions: [\n scorecardApi,\n scorecardPage,\n scorecardEntityContent,\n scorecardEntityLayoutGrid,\n aggregatedCardWithDeprecatedMetricIdWidget,\n aggregatedCardWithDefaultAggregationWidget,\n aggregatedCardWithJiraOpenIssuesWidget,\n aggregatedCardWithGithubOpenPrsWidget,\n aggregatedCardWithGithubFilecheckLicenseWidget,\n aggregatedCardWithGithubFilecheckCodeownersWidget,\n aggregatedCardWithGithubOpenPrsWeightedWidget,\n ],\n routes: {\n root: rootRouteRef,\n drillDown: scorecardDrillDownRouteRef,\n },\n});\n\n/**\n * App module that automatically registers Scorecard translations.\n * @public\n */\nexport const scorecardTranslationsModule = createFrontendModule({\n pluginId: 'app',\n extensions: [scorecardTranslation],\n});\n\nexport { scorecardTranslationRef, scorecardTranslations } from './translations';\n\n/**\n * Props for Scorecard entity-tab layout components.\n * @public\n */\nexport type { ScorecardLayoutProps } from './blueprints/ScorecardLayoutBlueprint';\n"],"names":[],"mappings":";;;;;;;;;;;AA6CA,MAAM,oBAAA,GAAuB,qBAAqB,IAAA,CAAK;AAAA,EACrD,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU;AAAA;AAEd,CAAC,CAAA;AAUD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,WAAA;AAAA,EACV,UAAA,EAAY;AAAA,IACV,YAAA;AAAA,IACA,aAAA;AAAA,IACA,sBAAA;AAAA,IACA,yBAAA;AAAA,IACA,0CAAA;AAAA,IACA,0CAAA;AAAA,IACA,sCAAA;AAAA,IACA,qCAAA;AAAA,IACA,8CAAA;AAAA,IACA,iDAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,YAAA;AAAA,IACN,SAAA,EAAW;AAAA;AAEf,CAAC,CAAA;AAMM,MAAM,8BAA8B,oBAAA,CAAqB;AAAA,EAC9D,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY,CAAC,oBAAoB;AACnC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Scorecard plugin for Backstage – entity scorecards, metrics, and entities page.\n * @packageDocumentation\n */\n\nimport {\n createFrontendModule,\n createFrontendPlugin,\n} from '@backstage/frontend-plugin-api';\nimport { TranslationBlueprint } from '@backstage/plugin-app-react';\nimport { rootRouteRef, scorecardDrillDownRouteRef } from './routes';\nimport { scorecardTranslations } from './translations';\nimport { scorecardApi } from './extensions/api';\nimport { scorecardEntityContent } from './extensions/entityTab';\nimport {\n aggregatedCardWithDeprecatedMetricIdWidget,\n aggregatedCardWithDefaultAggregationWidget,\n aggregatedCardWithGithubOpenPrsWidget,\n aggregatedCardWithJiraOpenIssuesWidget,\n aggregatedCardWithGithubFilecheckLicenseWidget,\n aggregatedCardWithGithubFilecheckCodeownersWidget,\n aggregatedCardWithGithubOpenPrsWeightedWidget,\n} from './extensions/homePageCards';\nimport { scorecardPage } from './extensions/scorecardPage';\nimport { scorecardEntityLayoutGrid } from './extensions/scorecardLayoutExtensions';\n\n/**\n * Extension for Scorecard translations.\n */\nconst scorecardTranslation = TranslationBlueprint.make({\n name: 'scorecard-translations',\n params: {\n resource: scorecardTranslations,\n },\n});\n\n/**\n * The primary Scorecard frontend plugin for the new Backstage frontend system.\n *\n * Includes page, API, entity tab, layout, and homepage widget extensions.\n * Translations remain a separate app module (NFS requirement).\n *\n * @public\n */\nexport default createFrontendPlugin({\n pluginId: 'scorecard',\n extensions: [\n scorecardApi,\n scorecardPage,\n scorecardEntityContent,\n scorecardEntityLayoutGrid,\n aggregatedCardWithDeprecatedMetricIdWidget,\n aggregatedCardWithDefaultAggregationWidget,\n aggregatedCardWithJiraOpenIssuesWidget,\n aggregatedCardWithGithubOpenPrsWidget,\n aggregatedCardWithGithubFilecheckLicenseWidget,\n aggregatedCardWithGithubFilecheckCodeownersWidget,\n aggregatedCardWithGithubOpenPrsWeightedWidget,\n ],\n routes: {\n root: rootRouteRef,\n drillDown: scorecardDrillDownRouteRef,\n },\n});\n\n/**\n * App module that automatically registers Scorecard translations.\n * @public\n */\nexport const scorecardTranslationsModule = createFrontendModule({\n pluginId: 'app',\n extensions: [scorecardTranslation],\n});\n\nexport { scorecardTranslationRef, scorecardTranslations } from './translations';\n\n/**\n * Props for Scorecard entity-tab layout components.\n * @public\n */\nexport type { ScorecardLayoutProps } from './blueprints/ScorecardLayoutBlueprint';\n"],"names":[],"mappings":";;;;;;;;;;;AA6CA,MAAM,oBAAA,GAAuB,qBAAqB,IAAA,CAAK;AAAA,EACrD,IAAA,EAAM,wBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU;AAAA;AAEd,CAAC,CAAA;AAUD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,WAAA;AAAA,EACV,UAAA,EAAY;AAAA,IACV,YAAA;AAAA,IACA,aAAA;AAAA,IACA,sBAAA;AAAA,IACA,yBAAA;AAAA,IACA,0CAAA;AAAA,IACA,0CAAA;AAAA,IACA,sCAAA;AAAA,IACA,qCAAA;AAAA,IACA,8CAAA;AAAA,IACA,iDAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,YAAA;AAAA,IACN,SAAA,EAAW;AAAA;AAEf,CAAC,CAAA;AAMM,MAAM,8BAA8B,oBAAA,CAAqB;AAAA,EAC9D,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY,CAAC,oBAAoB;AACnC,CAAC;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { scorecardTranslationsModule as default } from './index.js';
|
|
2
|
+
import '@backstage/plugin-home-react/alpha';
|
|
3
|
+
import '@backstage/catalog-model';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@backstage/filter-predicates';
|
|
6
|
+
import '@backstage/frontend-plugin-api';
|
|
7
|
+
import '@backstage/core-plugin-api';
|
|
8
|
+
import './alpha.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scorecard-translations-module.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-scorecard",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
"types": "./dist/legacy.d.ts",
|
|
22
22
|
"default": "./dist/legacy.esm.js"
|
|
23
23
|
},
|
|
24
|
+
"./scorecard-translations-module": {
|
|
25
|
+
"backstage": "@backstage/FrontendModule",
|
|
26
|
+
"import": "./dist/scorecard-translations-module.esm.js",
|
|
27
|
+
"types": "./dist/scorecard-translations-module.d.ts",
|
|
28
|
+
"default": "./dist/scorecard-translations-module.esm.js"
|
|
29
|
+
},
|
|
24
30
|
"./package.json": "./package.json"
|
|
25
31
|
},
|
|
26
32
|
"typesVersions": {
|
|
@@ -31,6 +37,9 @@
|
|
|
31
37
|
"legacy": [
|
|
32
38
|
"dist/legacy.d.ts"
|
|
33
39
|
],
|
|
40
|
+
"scorecard-translations-module": [
|
|
41
|
+
"dist/scorecard-translations-module.d.ts"
|
|
42
|
+
],
|
|
34
43
|
"package.json": [
|
|
35
44
|
"package.json"
|
|
36
45
|
]
|
|
@@ -54,7 +63,8 @@
|
|
|
54
63
|
"@red-hat-developer-hub/backstage-plugin-scorecard-node"
|
|
55
64
|
],
|
|
56
65
|
"features": {
|
|
57
|
-
".": "@backstage/FrontendPlugin"
|
|
66
|
+
".": "@backstage/FrontendPlugin",
|
|
67
|
+
"./scorecard-translations-module": "@backstage/FrontendModule"
|
|
58
68
|
}
|
|
59
69
|
},
|
|
60
70
|
"sideEffects": false,
|
|
@@ -85,7 +95,7 @@
|
|
|
85
95
|
"@mui/icons-material": "5.18.0",
|
|
86
96
|
"@mui/lab": "5.0.0-alpha.177",
|
|
87
97
|
"@mui/material": "5.18.0",
|
|
88
|
-
"@red-hat-developer-hub/backstage-plugin-scorecard-common": "^3.0.
|
|
98
|
+
"@red-hat-developer-hub/backstage-plugin-scorecard-common": "^3.0.1",
|
|
89
99
|
"@tanstack/react-query": "^5.95.2",
|
|
90
100
|
"date-fns": "^4.1.0",
|
|
91
101
|
"react-use": "^17.2.4",
|