@backstage/plugin-catalog-react 0.0.0-nightly-20260217031303 → 0.0.0-nightly-20260220031100

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,11 +1,34 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20260217031303
3
+ ## 0.0.0-nightly-20260220031100
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/frontend-plugin-api@0.0.0-nightly-20260220031100
9
+ - @backstage/catalog-client@1.13.0
10
+ - @backstage/catalog-model@1.7.6
11
+ - @backstage/core-compat-api@0.0.0-nightly-20260220031100
12
+ - @backstage/core-components@0.0.0-nightly-20260220031100
13
+ - @backstage/core-plugin-api@0.0.0-nightly-20260220031100
14
+ - @backstage/errors@1.2.7
15
+ - @backstage/filter-predicates@0.1.0
16
+ - @backstage/frontend-test-utils@0.0.0-nightly-20260220031100
17
+ - @backstage/integration-react@0.0.0-nightly-20260220031100
18
+ - @backstage/types@1.2.2
19
+ - @backstage/ui@0.12.0
20
+ - @backstage/version-bridge@1.0.12
21
+ - @backstage/plugin-catalog-common@1.1.8
22
+ - @backstage/plugin-permission-common@0.9.6
23
+ - @backstage/plugin-permission-react@0.0.0-nightly-20260220031100
24
+
25
+ ## 2.0.0
4
26
 
5
27
  ### Minor Changes
6
28
 
7
29
  - 0e9578d: Migrated `UnregisterEntityDialog` from Material UI to Backstage UI components.
8
30
  - 491a06c: Add the ability to show icons for the tabs on the entity page (new frontend)
31
+ - b4e8249: Implemented support for the new `queryLocations` and `streamLocations` that allow paginated/streamed and filtered location queries
9
32
  - 7feb83b: **BREAKING ALPHA**: All of the predicate types and functions have been moved to the `@backstage/filter-predicates` package.
10
33
 
11
34
  When moving into the more general package, they were renamed as follows:
@@ -36,25 +59,22 @@
36
59
  - f523983: Fixes a bug where the `EntityListProvider` would not correctly hydrate query parameters if more than 20 were provided for the same key.
37
60
  - 09a6aad: The `catalogApiMock` test utility now returns a `MockWithApiFactory`, allowing it to be passed directly to test utilities like `renderTestApp` and `TestApiProvider` without needing the `[catalogApiRef, catalogApiMock()]` tuple.
38
61
  - 88dbd5e: fixed bug in `UserListPicker` by getting the `kindParamater` from the `filters` rather than from the `queryParameters`
39
- - a7e0d50: Prepare for React Router v7 migration by updating to v6.30.2 across all NFS packages and enabling v7 future flags. Convert routes from splat paths to parent/child structure with Outlet components.
62
+ - a7e0d50: Updated `react-router-dom` peer dependency to `^6.30.2` and explicitly disabled v7 future flags to suppress deprecation warnings.
40
63
  - 69d880e: Bump to latest zod to ensure it has the latest features
41
64
  - Updated dependencies
42
- - @backstage/ui@0.0.0-nightly-20260217031303
43
- - @backstage/frontend-test-utils@0.0.0-nightly-20260217031303
44
- - @backstage/core-components@0.0.0-nightly-20260217031303
45
- - @backstage/core-compat-api@0.0.0-nightly-20260217031303
46
- - @backstage/catalog-client@0.0.0-nightly-20260217031303
47
- - @backstage/frontend-plugin-api@0.0.0-nightly-20260217031303
48
- - @backstage/core-plugin-api@0.0.0-nightly-20260217031303
49
- - @backstage/integration-react@0.0.0-nightly-20260217031303
50
- - @backstage/plugin-permission-react@0.0.0-nightly-20260217031303
51
- - @backstage/version-bridge@0.0.0-nightly-20260217031303
52
- - @backstage/filter-predicates@0.0.0-nightly-20260217031303
53
- - @backstage/plugin-permission-common@0.0.0-nightly-20260217031303
54
- - @backstage/catalog-model@1.7.6
55
- - @backstage/errors@1.2.7
56
- - @backstage/types@1.2.2
57
- - @backstage/plugin-catalog-common@0.0.0-nightly-20260217031303
65
+ - @backstage/ui@0.12.0
66
+ - @backstage/frontend-test-utils@0.5.0
67
+ - @backstage/core-components@0.18.7
68
+ - @backstage/core-compat-api@0.5.8
69
+ - @backstage/frontend-plugin-api@0.14.0
70
+ - @backstage/catalog-client@1.13.0
71
+ - @backstage/core-plugin-api@1.12.3
72
+ - @backstage/integration-react@1.2.15
73
+ - @backstage/plugin-permission-react@0.4.40
74
+ - @backstage/version-bridge@1.0.12
75
+ - @backstage/filter-predicates@0.1.0
76
+ - @backstage/plugin-permission-common@0.9.6
77
+ - @backstage/plugin-catalog-common@1.1.8
58
78
 
59
79
  ## 2.0.0-next.2
60
80
 
package/dist/alpha.d.ts CHANGED
@@ -133,9 +133,9 @@ declare const EntityContentBlueprint: _backstage_frontend_plugin_api.ExtensionBl
133
133
  routeRef?: RouteRef;
134
134
  filter?: string | FilterPredicate | ((entity: Entity) => boolean);
135
135
  };
136
- output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
136
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
137
137
  optional: true;
138
- }> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: Entity) => boolean, "catalog.entity-filter-function", {
138
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: Entity) => boolean, "catalog.entity-filter-function", {
139
139
  optional: true;
140
140
  }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
141
141
  optional: true;
@@ -23,6 +23,8 @@ function catalogApiMock(options) {
23
23
  refreshEntity: jest.fn(),
24
24
  getEntityFacets: jest.fn(),
25
25
  getLocations: jest.fn(),
26
+ queryLocations: jest.fn(),
27
+ streamLocations: jest.fn(),
26
28
  getLocationById: jest.fn(),
27
29
  getLocationByRef: jest.fn(),
28
30
  addLocation: jest.fn(),
@@ -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 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,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,EArCa,cAAA,KAAA,cAAA,GAAA,EAAA,CAAA,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 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,EAvCa,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-20260217031303",
3
+ "version": "0.0.0-nightly-20260220031100",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the catalog",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -73,21 +73,21 @@
73
73
  "test": "backstage-cli package test"
74
74
  },
75
75
  "dependencies": {
76
- "@backstage/catalog-client": "0.0.0-nightly-20260217031303",
76
+ "@backstage/catalog-client": "1.13.0",
77
77
  "@backstage/catalog-model": "1.7.6",
78
- "@backstage/core-compat-api": "0.0.0-nightly-20260217031303",
79
- "@backstage/core-components": "0.0.0-nightly-20260217031303",
80
- "@backstage/core-plugin-api": "0.0.0-nightly-20260217031303",
78
+ "@backstage/core-compat-api": "0.0.0-nightly-20260220031100",
79
+ "@backstage/core-components": "0.0.0-nightly-20260220031100",
80
+ "@backstage/core-plugin-api": "0.0.0-nightly-20260220031100",
81
81
  "@backstage/errors": "1.2.7",
82
- "@backstage/filter-predicates": "0.0.0-nightly-20260217031303",
83
- "@backstage/frontend-plugin-api": "0.0.0-nightly-20260217031303",
84
- "@backstage/integration-react": "0.0.0-nightly-20260217031303",
85
- "@backstage/plugin-catalog-common": "0.0.0-nightly-20260217031303",
86
- "@backstage/plugin-permission-common": "0.0.0-nightly-20260217031303",
87
- "@backstage/plugin-permission-react": "0.0.0-nightly-20260217031303",
82
+ "@backstage/filter-predicates": "0.1.0",
83
+ "@backstage/frontend-plugin-api": "0.0.0-nightly-20260220031100",
84
+ "@backstage/integration-react": "0.0.0-nightly-20260220031100",
85
+ "@backstage/plugin-catalog-common": "1.1.8",
86
+ "@backstage/plugin-permission-common": "0.9.6",
87
+ "@backstage/plugin-permission-react": "0.0.0-nightly-20260220031100",
88
88
  "@backstage/types": "1.2.2",
89
- "@backstage/ui": "0.0.0-nightly-20260217031303",
90
- "@backstage/version-bridge": "0.0.0-nightly-20260217031303",
89
+ "@backstage/ui": "0.12.0",
90
+ "@backstage/version-bridge": "1.0.12",
91
91
  "@material-ui/core": "^4.12.2",
92
92
  "@material-ui/icons": "^4.9.1",
93
93
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -101,12 +101,12 @@
101
101
  "zen-observable": "^0.10.0"
102
102
  },
103
103
  "devDependencies": {
104
- "@backstage/cli": "0.0.0-nightly-20260217031303",
105
- "@backstage/core-app-api": "0.0.0-nightly-20260217031303",
106
- "@backstage/frontend-test-utils": "0.0.0-nightly-20260217031303",
107
- "@backstage/plugin-catalog-common": "0.0.0-nightly-20260217031303",
108
- "@backstage/plugin-scaffolder-common": "0.0.0-nightly-20260217031303",
109
- "@backstage/test-utils": "0.0.0-nightly-20260217031303",
104
+ "@backstage/cli": "0.0.0-nightly-20260220031100",
105
+ "@backstage/core-app-api": "0.0.0-nightly-20260220031100",
106
+ "@backstage/frontend-test-utils": "0.0.0-nightly-20260220031100",
107
+ "@backstage/plugin-catalog-common": "1.1.8",
108
+ "@backstage/plugin-scaffolder-common": "0.0.0-nightly-20260220031100",
109
+ "@backstage/test-utils": "0.0.0-nightly-20260220031100",
110
110
  "@testing-library/dom": "^10.0.0",
111
111
  "@testing-library/jest-dom": "^6.0.0",
112
112
  "@testing-library/react": "^16.0.0",
@@ -120,7 +120,7 @@
120
120
  "zod": "^3.25.76"
121
121
  },
122
122
  "peerDependencies": {
123
- "@backstage/frontend-test-utils": "0.0.0-nightly-20260217031303",
123
+ "@backstage/frontend-test-utils": "0.0.0-nightly-20260220031100",
124
124
  "@types/react": "^17.0.0 || ^18.0.0",
125
125
  "react": "^17.0.0 || ^18.0.0",
126
126
  "react-dom": "^17.0.0 || ^18.0.0",