@backstage/plugin-catalog-react 0.0.0-nightly-20250910023713 → 0.0.0-nightly-20250913022938
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,6 +1,6 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20250913022938
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -26,22 +26,23 @@
|
|
|
26
26
|
### Patch Changes
|
|
27
27
|
|
|
28
28
|
- 0174799: Fix a potential race condition in EntityListProvider when selecting filters
|
|
29
|
+
- 79ff318: Removed the deprecation warning when not passing an explicit type to `EntityCardBlueprint`. Omitting the type is now intended, allowing the layout to pick the default type instead, typically `content`.
|
|
29
30
|
- ad0f58d: Support `default*` for older packages as this package is in range for breaking `/alpha` changes
|
|
30
31
|
- Updated dependencies
|
|
31
|
-
- @backstage/frontend-plugin-api@0.0.0-nightly-
|
|
32
|
-
- @backstage/core-plugin-api@0.0.0-nightly-
|
|
33
|
-
- @backstage/catalog-client@0.0.0-nightly-
|
|
34
|
-
- @backstage/core-components@0.0.0-nightly-
|
|
35
|
-
- @backstage/core-compat-api@0.0.0-nightly-
|
|
32
|
+
- @backstage/frontend-plugin-api@0.0.0-nightly-20250913022938
|
|
33
|
+
- @backstage/core-plugin-api@0.0.0-nightly-20250913022938
|
|
34
|
+
- @backstage/catalog-client@0.0.0-nightly-20250913022938
|
|
35
|
+
- @backstage/core-components@0.0.0-nightly-20250913022938
|
|
36
|
+
- @backstage/core-compat-api@0.0.0-nightly-20250913022938
|
|
36
37
|
- @backstage/catalog-model@1.7.5
|
|
37
38
|
- @backstage/errors@1.2.7
|
|
38
|
-
- @backstage/frontend-test-utils@0.0.0-nightly-
|
|
39
|
-
- @backstage/integration-react@0.0.0-nightly-
|
|
39
|
+
- @backstage/frontend-test-utils@0.0.0-nightly-20250913022938
|
|
40
|
+
- @backstage/integration-react@0.0.0-nightly-20250913022938
|
|
40
41
|
- @backstage/types@1.2.1
|
|
41
42
|
- @backstage/version-bridge@1.0.11
|
|
42
43
|
- @backstage/plugin-catalog-common@1.1.5
|
|
43
44
|
- @backstage/plugin-permission-common@0.9.1
|
|
44
|
-
- @backstage/plugin-permission-react@0.0.0-nightly-
|
|
45
|
+
- @backstage/plugin-permission-react@0.0.0-nightly-20250913022938
|
|
45
46
|
|
|
46
47
|
## 1.21.0-next.2
|
|
47
48
|
|
|
@@ -33,10 +33,6 @@ const EntityCardBlueprint = createExtensionBlueprint({
|
|
|
33
33
|
const finalType = config.type ?? type;
|
|
34
34
|
if (finalType) {
|
|
35
35
|
yield entityCardTypeDataRef(finalType);
|
|
36
|
-
} else {
|
|
37
|
-
console.warn(
|
|
38
|
-
`DEPRECATION WARNING: Not providing type for entity cards is deprecated. Missing from '${node.spec.id}'`
|
|
39
|
-
);
|
|
40
36
|
}
|
|
41
37
|
}
|
|
42
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityCardBlueprint.esm.js","sources":["../../../src/alpha/blueprints/EntityCardBlueprint.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\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\nimport {\n ExtensionBoundary,\n coreExtensionData,\n createExtensionBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n entityFilterFunctionDataRef,\n entityFilterExpressionDataRef,\n entityCardTypeDataRef,\n entityCardTypes,\n EntityCardType,\n} from './extensionData';\nimport { createEntityPredicateSchema } from '../predicates/createEntityPredicateSchema';\nimport { EntityPredicate } from '../predicates';\nimport { resolveEntityFilterData } from './resolveEntityFilterData';\nimport { Entity } from '@backstage/catalog-model';\n\n/**\n * @alpha\n * A blueprint for creating cards for the entity pages in the catalog.\n */\nexport const EntityCardBlueprint = createExtensionBlueprint({\n kind: 'entity-card',\n attachTo: { id: 'entity-content:catalog/overview', input: 'cards' },\n output: [\n coreExtensionData.reactElement,\n entityFilterFunctionDataRef.optional(),\n entityFilterExpressionDataRef.optional(),\n entityCardTypeDataRef.optional(),\n ],\n dataRefs: {\n filterFunction: entityFilterFunctionDataRef,\n filterExpression: entityFilterExpressionDataRef,\n type: entityCardTypeDataRef,\n },\n config: {\n schema: {\n filter: z =>\n z.union([z.string(), createEntityPredicateSchema(z)]).optional(),\n type: z => z.enum(entityCardTypes).optional(),\n },\n },\n *factory(\n {\n loader,\n filter,\n type,\n }: {\n loader: () => Promise<JSX.Element>;\n filter?: string | EntityPredicate | ((entity: Entity) => boolean);\n type?: EntityCardType;\n },\n { node, config },\n ) {\n yield coreExtensionData.reactElement(ExtensionBoundary.lazy(node, loader));\n\n yield* resolveEntityFilterData(filter, config, node);\n\n const finalType = config.type ?? type;\n if (finalType) {\n yield entityCardTypeDataRef(finalType);\n }
|
|
1
|
+
{"version":3,"file":"EntityCardBlueprint.esm.js","sources":["../../../src/alpha/blueprints/EntityCardBlueprint.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\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\nimport {\n ExtensionBoundary,\n coreExtensionData,\n createExtensionBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n entityFilterFunctionDataRef,\n entityFilterExpressionDataRef,\n entityCardTypeDataRef,\n entityCardTypes,\n EntityCardType,\n} from './extensionData';\nimport { createEntityPredicateSchema } from '../predicates/createEntityPredicateSchema';\nimport { EntityPredicate } from '../predicates';\nimport { resolveEntityFilterData } from './resolveEntityFilterData';\nimport { Entity } from '@backstage/catalog-model';\n\n/**\n * @alpha\n * A blueprint for creating cards for the entity pages in the catalog.\n */\nexport const EntityCardBlueprint = createExtensionBlueprint({\n kind: 'entity-card',\n attachTo: { id: 'entity-content:catalog/overview', input: 'cards' },\n output: [\n coreExtensionData.reactElement,\n entityFilterFunctionDataRef.optional(),\n entityFilterExpressionDataRef.optional(),\n entityCardTypeDataRef.optional(),\n ],\n dataRefs: {\n filterFunction: entityFilterFunctionDataRef,\n filterExpression: entityFilterExpressionDataRef,\n type: entityCardTypeDataRef,\n },\n config: {\n schema: {\n filter: z =>\n z.union([z.string(), createEntityPredicateSchema(z)]).optional(),\n type: z => z.enum(entityCardTypes).optional(),\n },\n },\n *factory(\n {\n loader,\n filter,\n type,\n }: {\n loader: () => Promise<JSX.Element>;\n filter?: string | EntityPredicate | ((entity: Entity) => boolean);\n type?: EntityCardType;\n },\n { node, config },\n ) {\n yield coreExtensionData.reactElement(ExtensionBoundary.lazy(node, loader));\n\n yield* resolveEntityFilterData(filter, config, node);\n\n const finalType = config.type ?? type;\n if (finalType) {\n yield entityCardTypeDataRef(finalType);\n }\n },\n});\n"],"names":[],"mappings":";;;;;AAqCO,MAAM,sBAAsB,wBAAA,CAAyB;AAAA,EAC1D,IAAA,EAAM,aAAA;AAAA,EACN,QAAA,EAAU,EAAE,EAAA,EAAI,iCAAA,EAAmC,OAAO,OAAA,EAAQ;AAAA,EAClE,MAAA,EAAQ;AAAA,IACN,iBAAA,CAAkB,YAAA;AAAA,IAClB,4BAA4B,QAAA,EAAS;AAAA,IACrC,8BAA8B,QAAA,EAAS;AAAA,IACvC,sBAAsB,QAAA;AAAS,GACjC;AAAA,EACA,QAAA,EAAU;AAAA,IACR,cAAA,EAAgB,2BAAA;AAAA,IAChB,gBAAA,EAAkB,6BAAA;AAAA,IAClB,IAAA,EAAM;AAAA,GACR;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,CAAA,CAAA,KACN,CAAA,CAAE,KAAA,CAAM,CAAC,CAAA,CAAE,MAAA,EAAO,EAAG,2BAAA,CAA4B,CAAC,CAAC,CAAC,EAAE,QAAA,EAAS;AAAA,MACjE,MAAM,CAAA,CAAA,KAAK,CAAA,CAAE,IAAA,CAAK,eAAe,EAAE,QAAA;AAAS;AAC9C,GACF;AAAA,EACA,CAAC,OAAA,CACC;AAAA,IACE,MAAA;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF,EAKA,EAAE,IAAA,EAAM,MAAA,EAAO,EACf;AACA,IAAA,MAAM,kBAAkB,YAAA,CAAa,iBAAA,CAAkB,IAAA,CAAK,IAAA,EAAM,MAAM,CAAC,CAAA;AAEzE,IAAA,OAAO,uBAAA,CAAwB,MAAA,EAAQ,MAAA,EAAQ,IAAI,CAAA;AAEnD,IAAA,MAAM,SAAA,GAAY,OAAO,IAAA,IAAQ,IAAA;AACjC,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,MAAM,sBAAsB,SAAS,CAAA;AAAA,IACvC;AAAA,EACF;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-react",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250913022938",
|
|
4
4
|
"description": "A frontend library that helps other Backstage plugins interact with the catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
"test": "backstage-cli package test"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@backstage/catalog-client": "0.0.0-nightly-
|
|
76
|
+
"@backstage/catalog-client": "0.0.0-nightly-20250913022938",
|
|
77
77
|
"@backstage/catalog-model": "1.7.5",
|
|
78
|
-
"@backstage/core-compat-api": "0.0.0-nightly-
|
|
79
|
-
"@backstage/core-components": "0.0.0-nightly-
|
|
80
|
-
"@backstage/core-plugin-api": "0.0.0-nightly-
|
|
78
|
+
"@backstage/core-compat-api": "0.0.0-nightly-20250913022938",
|
|
79
|
+
"@backstage/core-components": "0.0.0-nightly-20250913022938",
|
|
80
|
+
"@backstage/core-plugin-api": "0.0.0-nightly-20250913022938",
|
|
81
81
|
"@backstage/errors": "1.2.7",
|
|
82
|
-
"@backstage/frontend-plugin-api": "0.0.0-nightly-
|
|
83
|
-
"@backstage/frontend-test-utils": "0.0.0-nightly-
|
|
84
|
-
"@backstage/integration-react": "0.0.0-nightly-
|
|
82
|
+
"@backstage/frontend-plugin-api": "0.0.0-nightly-20250913022938",
|
|
83
|
+
"@backstage/frontend-test-utils": "0.0.0-nightly-20250913022938",
|
|
84
|
+
"@backstage/integration-react": "0.0.0-nightly-20250913022938",
|
|
85
85
|
"@backstage/plugin-catalog-common": "1.1.5",
|
|
86
86
|
"@backstage/plugin-permission-common": "0.9.1",
|
|
87
|
-
"@backstage/plugin-permission-react": "0.0.0-nightly-
|
|
87
|
+
"@backstage/plugin-permission-react": "0.0.0-nightly-20250913022938",
|
|
88
88
|
"@backstage/types": "1.2.1",
|
|
89
89
|
"@backstage/version-bridge": "1.0.11",
|
|
90
90
|
"@material-ui/core": "^4.12.2",
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
"zen-observable": "^0.10.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@backstage/cli": "0.0.0-nightly-
|
|
104
|
-
"@backstage/core-app-api": "0.0.0-nightly-
|
|
103
|
+
"@backstage/cli": "0.0.0-nightly-20250913022938",
|
|
104
|
+
"@backstage/core-app-api": "0.0.0-nightly-20250913022938",
|
|
105
105
|
"@backstage/plugin-catalog-common": "1.1.5",
|
|
106
|
-
"@backstage/plugin-scaffolder-common": "0.0.0-nightly-
|
|
107
|
-
"@backstage/test-utils": "0.0.0-nightly-
|
|
106
|
+
"@backstage/plugin-scaffolder-common": "0.0.0-nightly-20250913022938",
|
|
107
|
+
"@backstage/test-utils": "0.0.0-nightly-20250913022938",
|
|
108
108
|
"@testing-library/dom": "^10.0.0",
|
|
109
109
|
"@testing-library/jest-dom": "^6.0.0",
|
|
110
110
|
"@testing-library/react": "^16.0.0",
|