@backstage/plugin-catalog-react 0.0.0-nightly-20260411031533 → 0.0.0-nightly-20260414031820
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,32 +1,33 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20260414031820
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- 482ceed: Migrated from `assertError` to `toError` for error handling.
|
|
8
8
|
- 51aacae: Fixed a UI flicker in the catalog entity list where changing a filter would briefly flash stale data before showing the new results.
|
|
9
9
|
- eba2f61: Fixed `EntityInfoCard` header overflowing on narrow screens.
|
|
10
|
+
- 7308885: Updated `catalogApiMock` to include the new `updateLocation` method stub, keeping it in sync with the `CatalogApi` interface.
|
|
10
11
|
- 5f9a531: Deprecated `humanizeEntityRef` and `humanizeEntity` in favor of the Catalog Presentation API. Use `useEntityPresentation`, `EntityDisplayName`, or `entityPresentationApiRef` instead.
|
|
11
12
|
- 0416216: Fixed entity relation cards (e.g., "Has components") only showing one entity at a time by using `paginationOptions: { type: 'none' }` instead of deriving page size from data length.
|
|
12
13
|
- fa232da: Migrated `InspectEntityDialog` from Material UI to Backstage UI components. Added new translation keys: `inspectEntityDialog.overviewPage.copyAriaLabel`, `inspectEntityDialog.overviewPage.copiedStatus`, `inspectEntityDialog.overviewPage.helpLinkAriaLabel`, and `inspectEntityDialog.colocatedPage.entityListAriaLabel`.
|
|
13
14
|
- Updated dependencies
|
|
14
|
-
- @backstage/ui@0.0.0-nightly-
|
|
15
|
-
- @backstage/errors@0.0.0-nightly-
|
|
16
|
-
- @backstage/
|
|
17
|
-
- @backstage/
|
|
18
|
-
- @backstage/core-compat-api@0.0.0-nightly-
|
|
19
|
-
- @backstage/catalog-client@0.0.0-nightly-
|
|
20
|
-
- @backstage/
|
|
21
|
-
- @backstage/
|
|
22
|
-
- @backstage/
|
|
23
|
-
- @backstage/
|
|
24
|
-
- @backstage/
|
|
25
|
-
- @backstage/
|
|
15
|
+
- @backstage/ui@0.0.0-nightly-20260414031820
|
|
16
|
+
- @backstage/errors@0.0.0-nightly-20260414031820
|
|
17
|
+
- @backstage/frontend-plugin-api@0.0.0-nightly-20260414031820
|
|
18
|
+
- @backstage/core-components@0.0.0-nightly-20260414031820
|
|
19
|
+
- @backstage/core-compat-api@0.0.0-nightly-20260414031820
|
|
20
|
+
- @backstage/catalog-client@0.0.0-nightly-20260414031820
|
|
21
|
+
- @backstage/plugin-permission-react@0.0.0-nightly-20260414031820
|
|
22
|
+
- @backstage/catalog-model@0.0.0-nightly-20260414031820
|
|
23
|
+
- @backstage/core-plugin-api@0.0.0-nightly-20260414031820
|
|
24
|
+
- @backstage/filter-predicates@0.0.0-nightly-20260414031820
|
|
25
|
+
- @backstage/plugin-permission-common@0.0.0-nightly-20260414031820
|
|
26
|
+
- @backstage/frontend-test-utils@0.0.0-nightly-20260414031820
|
|
27
|
+
- @backstage/integration-react@0.0.0-nightly-20260414031820
|
|
26
28
|
- @backstage/types@1.2.2
|
|
27
29
|
- @backstage/version-bridge@1.0.12
|
|
28
|
-
- @backstage/plugin-catalog-common@0.0.0-nightly-
|
|
29
|
-
- @backstage/plugin-permission-react@0.0.0-nightly-20260411031533
|
|
30
|
+
- @backstage/plugin-catalog-common@0.0.0-nightly-20260414031820
|
|
30
31
|
|
|
31
32
|
## 2.1.2-next.2
|
|
32
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogApiMock.esm.js","sources":["../../src/testUtils/catalogApiMock.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 { ApiFactory, createApiFactory } from '@backstage/frontend-plugin-api';\nimport { InMemoryCatalogClient } from '@backstage/catalog-client/testUtils';\nimport { Entity } from '@backstage/catalog-model';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { CatalogApi } from '@backstage/catalog-client';\nimport {\n createApiMock,\n attachMockApiFactory,\n type MockWithApiFactory,\n} from '@backstage/frontend-test-utils';\n\n/**\n * Creates a fake catalog client that handles entities in memory storage. Note\n * that this client may be severely limited in functionality, and advanced\n * functions may not be available at all.\n *\n * @public\n */\nexport function catalogApiMock(options?: {\n entities?: Entity[];\n}): MockWithApiFactory<CatalogApi> {\n const instance = new InMemoryCatalogClient(options);\n return attachMockApiFactory(catalogApiRef, instance);\n}\n\n/**\n * A collection of mock functionality for the catalog service.\n *\n * @public\n */\nexport namespace catalogApiMock {\n /**\n * Creates a fake catalog client that handles entities in memory storage. Note\n * that this client may be severely limited in functionality, and advanced\n * functions may not be available at all.\n */\n export const factory = (options?: {\n entities?: Entity[];\n }): ApiFactory<CatalogApi, CatalogApi, {}> =>\n createApiFactory({\n api: catalogApiRef,\n deps: {},\n factory: () => new InMemoryCatalogClient(options),\n });\n /**\n * Creates a catalog client whose methods are mock functions, possibly with\n * some of them overloaded by the caller.\n */\n export const mock = createApiMock(catalogApiRef, () => ({\n getEntities: jest.fn(),\n getEntitiesByRefs: jest.fn(),\n queryEntities: jest.fn(),\n getEntityAncestors: jest.fn(),\n getEntityByRef: jest.fn(),\n removeEntityByUid: jest.fn(),\n refreshEntity: jest.fn(),\n getEntityFacets: jest.fn(),\n getLocations: jest.fn(),\n queryLocations: jest.fn(),\n streamLocations: jest.fn(),\n getLocationById: jest.fn(),\n getLocationByRef: jest.fn(),\n addLocation: jest.fn(),\n removeLocationById: jest.fn(),\n getLocationByEntity: jest.fn(),\n validateEntity: jest.fn(),\n analyzeLocation: jest.fn(),\n streamEntities: jest.fn(),\n streamEntityPages: jest.fn(),\n }));\n}\n"],"names":["catalogApiMock"],"mappings":";;;;;AAkCO,SAAS,eAAe,OAAA,EAEI;AACjC,EAAA,MAAM,QAAA,GAAW,IAAI,qBAAA,CAAsB,OAAO,CAAA;AAClD,EAAA,OAAO,oBAAA,CAAqB,eAAe,QAAQ,CAAA;AACrD;AAAA,CAOO,CAAUA,eAAAA,KAAV;AAME,EAAMA,eAAAA,CAAA,OAAA,GAAU,CAAC,OAAA,KAGtB,gBAAA,CAAiB;AAAA,IACf,GAAA,EAAK,aAAA;AAAA,IACL,MAAM,EAAC;AAAA,IACP,OAAA,EAAS,MAAM,IAAI,qBAAA,CAAsB,OAAO;AAAA,GACjD,CAAA;AAKI,EAAMA,eAAAA,CAAA,IAAA,GAAO,aAAA,CAAc,aAAA,EAAe,OAAO;AAAA,IACtD,WAAA,EAAa,KAAK,EAAA,EAAG;AAAA,IACrB,iBAAA,EAAmB,KAAK,EAAA,EAAG;AAAA,IAC3B,aAAA,EAAe,KAAK,EAAA,EAAG;AAAA,IACvB,kBAAA,EAAoB,KAAK,EAAA,EAAG;AAAA,IAC5B,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,iBAAA,EAAmB,KAAK,EAAA,EAAG;AAAA,IAC3B,aAAA,EAAe,KAAK,EAAA,EAAG;AAAA,IACvB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,YAAA,EAAc,KAAK,EAAA,EAAG;AAAA,IACtB,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,gBAAA,EAAkB,KAAK,EAAA,EAAG;AAAA,IAC1B,WAAA,EAAa,KAAK,EAAA,EAAG;AAAA,IACrB,kBAAA,EAAoB,KAAK,EAAA,EAAG;AAAA,IAC5B,mBAAA,EAAqB,KAAK,EAAA,EAAG;AAAA,IAC7B,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,iBAAA,EAAmB,KAAK,EAAA;AAAG,GAC7B,CAAE,CAAA;AAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"catalogApiMock.esm.js","sources":["../../src/testUtils/catalogApiMock.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 { ApiFactory, createApiFactory } from '@backstage/frontend-plugin-api';\nimport { InMemoryCatalogClient } from '@backstage/catalog-client/testUtils';\nimport { Entity } from '@backstage/catalog-model';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { CatalogApi } from '@backstage/catalog-client';\nimport {\n createApiMock,\n attachMockApiFactory,\n type MockWithApiFactory,\n} from '@backstage/frontend-test-utils';\n\n/**\n * Creates a fake catalog client that handles entities in memory storage. Note\n * that this client may be severely limited in functionality, and advanced\n * functions may not be available at all.\n *\n * @public\n */\nexport function catalogApiMock(options?: {\n entities?: Entity[];\n}): MockWithApiFactory<CatalogApi> {\n const instance = new InMemoryCatalogClient(options);\n return attachMockApiFactory(catalogApiRef, instance);\n}\n\n/**\n * A collection of mock functionality for the catalog service.\n *\n * @public\n */\nexport namespace catalogApiMock {\n /**\n * Creates a fake catalog client that handles entities in memory storage. Note\n * that this client may be severely limited in functionality, and advanced\n * functions may not be available at all.\n */\n export const factory = (options?: {\n entities?: Entity[];\n }): ApiFactory<CatalogApi, CatalogApi, {}> =>\n createApiFactory({\n api: catalogApiRef,\n deps: {},\n factory: () => new InMemoryCatalogClient(options),\n });\n /**\n * Creates a catalog client whose methods are mock functions, possibly with\n * some of them overloaded by the caller.\n */\n export const mock = createApiMock(catalogApiRef, () => ({\n getEntities: jest.fn(),\n getEntitiesByRefs: jest.fn(),\n queryEntities: jest.fn(),\n getEntityAncestors: jest.fn(),\n getEntityByRef: jest.fn(),\n removeEntityByUid: jest.fn(),\n refreshEntity: jest.fn(),\n getEntityFacets: jest.fn(),\n getLocations: jest.fn(),\n queryLocations: jest.fn(),\n streamLocations: jest.fn(),\n getLocationById: jest.fn(),\n getLocationByRef: jest.fn(),\n addLocation: jest.fn(),\n removeLocationById: jest.fn(),\n updateLocation: jest.fn(),\n getLocationByEntity: jest.fn(),\n validateEntity: jest.fn(),\n analyzeLocation: jest.fn(),\n streamEntities: jest.fn(),\n streamEntityPages: jest.fn(),\n }));\n}\n"],"names":["catalogApiMock"],"mappings":";;;;;AAkCO,SAAS,eAAe,OAAA,EAEI;AACjC,EAAA,MAAM,QAAA,GAAW,IAAI,qBAAA,CAAsB,OAAO,CAAA;AAClD,EAAA,OAAO,oBAAA,CAAqB,eAAe,QAAQ,CAAA;AACrD;AAAA,CAOO,CAAUA,eAAAA,KAAV;AAME,EAAMA,eAAAA,CAAA,OAAA,GAAU,CAAC,OAAA,KAGtB,gBAAA,CAAiB;AAAA,IACf,GAAA,EAAK,aAAA;AAAA,IACL,MAAM,EAAC;AAAA,IACP,OAAA,EAAS,MAAM,IAAI,qBAAA,CAAsB,OAAO;AAAA,GACjD,CAAA;AAKI,EAAMA,eAAAA,CAAA,IAAA,GAAO,aAAA,CAAc,aAAA,EAAe,OAAO;AAAA,IACtD,WAAA,EAAa,KAAK,EAAA,EAAG;AAAA,IACrB,iBAAA,EAAmB,KAAK,EAAA,EAAG;AAAA,IAC3B,aAAA,EAAe,KAAK,EAAA,EAAG;AAAA,IACvB,kBAAA,EAAoB,KAAK,EAAA,EAAG;AAAA,IAC5B,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,iBAAA,EAAmB,KAAK,EAAA,EAAG;AAAA,IAC3B,aAAA,EAAe,KAAK,EAAA,EAAG;AAAA,IACvB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,YAAA,EAAc,KAAK,EAAA,EAAG;AAAA,IACtB,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,gBAAA,EAAkB,KAAK,EAAA,EAAG;AAAA,IAC1B,WAAA,EAAa,KAAK,EAAA,EAAG;AAAA,IACrB,kBAAA,EAAoB,KAAK,EAAA,EAAG;AAAA,IAC5B,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,mBAAA,EAAqB,KAAK,EAAA,EAAG;AAAA,IAC7B,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,eAAA,EAAiB,KAAK,EAAA,EAAG;AAAA,IACzB,cAAA,EAAgB,KAAK,EAAA,EAAG;AAAA,IACxB,iBAAA,EAAmB,KAAK,EAAA;AAAG,GAC7B,CAAE,CAAA;AAAA,CAAA,EAxCa,cAAA,KAAA,cAAA,GAAA,EAAA,CAAA,CAAA;;;;"}
|
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-20260414031820",
|
|
4
4
|
"description": "A frontend library that helps other Backstage plugins interact with the catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library",
|
|
@@ -73,20 +73,20 @@
|
|
|
73
73
|
"test": "backstage-cli package test"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@backstage/catalog-client": "0.0.0-nightly-
|
|
77
|
-
"@backstage/catalog-model": "0.0.0-nightly-
|
|
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-
|
|
81
|
-
"@backstage/errors": "0.0.0-nightly-
|
|
82
|
-
"@backstage/filter-predicates": "0.0.0-nightly-
|
|
83
|
-
"@backstage/frontend-plugin-api": "0.0.0-nightly-
|
|
84
|
-
"@backstage/integration-react": "0.0.0-nightly-
|
|
85
|
-
"@backstage/plugin-catalog-common": "0.0.0-nightly-
|
|
86
|
-
"@backstage/plugin-permission-common": "0.0.0-nightly-
|
|
87
|
-
"@backstage/plugin-permission-react": "0.0.0-nightly-
|
|
76
|
+
"@backstage/catalog-client": "0.0.0-nightly-20260414031820",
|
|
77
|
+
"@backstage/catalog-model": "0.0.0-nightly-20260414031820",
|
|
78
|
+
"@backstage/core-compat-api": "0.0.0-nightly-20260414031820",
|
|
79
|
+
"@backstage/core-components": "0.0.0-nightly-20260414031820",
|
|
80
|
+
"@backstage/core-plugin-api": "0.0.0-nightly-20260414031820",
|
|
81
|
+
"@backstage/errors": "0.0.0-nightly-20260414031820",
|
|
82
|
+
"@backstage/filter-predicates": "0.0.0-nightly-20260414031820",
|
|
83
|
+
"@backstage/frontend-plugin-api": "0.0.0-nightly-20260414031820",
|
|
84
|
+
"@backstage/integration-react": "0.0.0-nightly-20260414031820",
|
|
85
|
+
"@backstage/plugin-catalog-common": "0.0.0-nightly-20260414031820",
|
|
86
|
+
"@backstage/plugin-permission-common": "0.0.0-nightly-20260414031820",
|
|
87
|
+
"@backstage/plugin-permission-react": "0.0.0-nightly-20260414031820",
|
|
88
88
|
"@backstage/types": "1.2.2",
|
|
89
|
-
"@backstage/ui": "0.0.0-nightly-
|
|
89
|
+
"@backstage/ui": "0.0.0-nightly-20260414031820",
|
|
90
90
|
"@backstage/version-bridge": "1.0.12",
|
|
91
91
|
"@material-ui/core": "^4.12.2",
|
|
92
92
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -102,12 +102,12 @@
|
|
|
102
102
|
"zen-observable": "^0.10.0"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@backstage/cli": "0.0.0-nightly-
|
|
106
|
-
"@backstage/core-app-api": "0.0.0-nightly-
|
|
107
|
-
"@backstage/frontend-test-utils": "0.0.0-nightly-
|
|
108
|
-
"@backstage/plugin-catalog-common": "0.0.0-nightly-
|
|
109
|
-
"@backstage/plugin-scaffolder-common": "0.0.0-nightly-
|
|
110
|
-
"@backstage/test-utils": "0.0.0-nightly-
|
|
105
|
+
"@backstage/cli": "0.0.0-nightly-20260414031820",
|
|
106
|
+
"@backstage/core-app-api": "0.0.0-nightly-20260414031820",
|
|
107
|
+
"@backstage/frontend-test-utils": "0.0.0-nightly-20260414031820",
|
|
108
|
+
"@backstage/plugin-catalog-common": "0.0.0-nightly-20260414031820",
|
|
109
|
+
"@backstage/plugin-scaffolder-common": "0.0.0-nightly-20260414031820",
|
|
110
|
+
"@backstage/test-utils": "0.0.0-nightly-20260414031820",
|
|
111
111
|
"@testing-library/dom": "^10.0.0",
|
|
112
112
|
"@testing-library/jest-dom": "^6.0.0",
|
|
113
113
|
"@testing-library/react": "^16.0.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"zod": "^3.25.76 || ^4.0.0"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
|
-
"@backstage/frontend-test-utils": "0.0.0-nightly-
|
|
124
|
+
"@backstage/frontend-test-utils": "0.0.0-nightly-20260414031820",
|
|
125
125
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
126
126
|
"react": "^17.0.0 || ^18.0.0",
|
|
127
127
|
"react-dom": "^17.0.0 || ^18.0.0",
|