@backstage/plugin-catalog-react 1.21.4-next.2 → 1.21.4
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,22 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.21.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6d39141: Fixed an issue where `EntityOwnerPicker` failed to filter options when the input text contained uppercase characters.
|
|
8
|
+
- b3c0594: Use a versioned context for `useEntityList`, to better work with mixed `@backstage/plugin-catalog-react` versions.
|
|
9
|
+
- c51c901: $contains may have string value in an entity filter. Typescript type and Zod parser were not the same.
|
|
10
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/frontend-plugin-api@0.13.2
|
|
13
|
+
- @backstage/core-components@0.18.4
|
|
14
|
+
- @backstage/core-plugin-api@1.12.1
|
|
15
|
+
- @backstage/core-compat-api@0.5.5
|
|
16
|
+
- @backstage/frontend-test-utils@0.4.2
|
|
17
|
+
- @backstage/integration-react@1.2.13
|
|
18
|
+
- @backstage/plugin-permission-react@0.4.39
|
|
19
|
+
|
|
3
20
|
## 1.21.4-next.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
function createEntityPredicateSchema(z) {
|
|
2
|
-
const primitiveSchema = z.union([
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
z.
|
|
2
|
+
const primitiveSchema = z.union([
|
|
3
|
+
z.string(),
|
|
4
|
+
z.number(),
|
|
5
|
+
z.boolean()
|
|
6
6
|
]);
|
|
7
7
|
let valuePredicateSchema;
|
|
8
|
+
const expressionSchema = z.lazy(
|
|
9
|
+
() => z.union([
|
|
10
|
+
z.record(z.string().regex(/^(?!\$).*$/), valuePredicateSchema),
|
|
11
|
+
z.record(z.string().regex(/^\$/), z.never())
|
|
12
|
+
])
|
|
13
|
+
);
|
|
8
14
|
const predicateSchema = z.lazy(
|
|
9
15
|
() => z.union([
|
|
10
|
-
|
|
16
|
+
expressionSchema,
|
|
17
|
+
primitiveSchema,
|
|
11
18
|
z.object({ $all: z.array(predicateSchema) }),
|
|
12
19
|
z.object({ $any: z.array(predicateSchema) }),
|
|
13
|
-
z.object({ $not: predicateSchema })
|
|
14
|
-
z.record(z.string().regex(/^(?!\$).*$/), valuePredicateSchema)
|
|
20
|
+
z.object({ $not: predicateSchema })
|
|
15
21
|
])
|
|
16
22
|
);
|
|
17
23
|
valuePredicateSchema = z.union([
|
|
18
|
-
|
|
24
|
+
primitiveSchema,
|
|
19
25
|
z.object({ $exists: z.boolean() }),
|
|
20
26
|
z.object({ $in: z.array(primitiveSchema) }),
|
|
21
27
|
z.object({ $contains: predicateSchema })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEntityPredicateSchema.esm.js","sources":["../../../src/alpha/predicates/createEntityPredicateSchema.ts"],"sourcesContent":["/*\n * Copyright 2025 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 {
|
|
1
|
+
{"version":3,"file":"createEntityPredicateSchema.esm.js","sources":["../../../src/alpha/predicates/createEntityPredicateSchema.ts"],"sourcesContent":["/*\n * Copyright 2025 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 EntityPredicate,\n EntityPredicateExpression,\n EntityPredicatePrimitive,\n EntityPredicateValue,\n} from './types';\nimport type { z as zImpl, ZodType } from 'zod';\n\n/** @internal */\nexport function createEntityPredicateSchema(z: typeof zImpl) {\n const primitiveSchema = z.union([\n z.string(),\n z.number(),\n z.boolean(),\n ]) as ZodType<EntityPredicatePrimitive>;\n\n // eslint-disable-next-line prefer-const\n let valuePredicateSchema: ZodType<EntityPredicateValue>;\n\n const expressionSchema = z.lazy(() =>\n z.union([\n z.record(z.string().regex(/^(?!\\$).*$/), valuePredicateSchema),\n z.record(z.string().regex(/^\\$/), z.never()),\n ]),\n ) as ZodType<EntityPredicateExpression>;\n\n const predicateSchema = z.lazy(() =>\n z.union([\n expressionSchema,\n primitiveSchema,\n z.object({ $all: z.array(predicateSchema) }),\n z.object({ $any: z.array(predicateSchema) }),\n z.object({ $not: predicateSchema }),\n ]),\n ) as ZodType<EntityPredicate>;\n\n valuePredicateSchema = z.union([\n primitiveSchema,\n z.object({ $exists: z.boolean() }),\n z.object({ $in: z.array(primitiveSchema) }),\n z.object({ $contains: predicateSchema }),\n ]) as ZodType<EntityPredicateValue>;\n\n return predicateSchema;\n}\n"],"names":[],"mappings":"AAyBO,SAAS,4BAA4B,CAAA,EAAiB;AAC3D,EAAA,MAAM,eAAA,GAAkB,EAAE,KAAA,CAAM;AAAA,IAC9B,EAAE,MAAA,EAAO;AAAA,IACT,EAAE,MAAA,EAAO;AAAA,IACT,EAAE,OAAA;AAAQ,GACX,CAAA;AAGD,EAAA,IAAI,oBAAA;AAEJ,EAAA,MAAM,mBAAmB,CAAA,CAAE,IAAA;AAAA,IAAK,MAC9B,EAAE,KAAA,CAAM;AAAA,MACN,CAAA,CAAE,OAAO,CAAA,CAAE,MAAA,GAAS,KAAA,CAAM,YAAY,GAAG,oBAAoB,CAAA;AAAA,MAC7D,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,MAAA,EAAO,CAAE,MAAM,KAAK,CAAA,EAAG,CAAA,CAAE,KAAA,EAAO;AAAA,KAC5C;AAAA,GACH;AAEA,EAAA,MAAM,kBAAkB,CAAA,CAAE,IAAA;AAAA,IAAK,MAC7B,EAAE,KAAA,CAAM;AAAA,MACN,gBAAA;AAAA,MACA,eAAA;AAAA,MACA,CAAA,CAAE,OAAO,EAAE,IAAA,EAAM,EAAE,KAAA,CAAM,eAAe,GAAG,CAAA;AAAA,MAC3C,CAAA,CAAE,OAAO,EAAE,IAAA,EAAM,EAAE,KAAA,CAAM,eAAe,GAAG,CAAA;AAAA,MAC3C,CAAA,CAAE,MAAA,CAAO,EAAE,IAAA,EAAM,iBAAiB;AAAA,KACnC;AAAA,GACH;AAEA,EAAA,oBAAA,GAAuB,EAAE,KAAA,CAAM;AAAA,IAC7B,eAAA;AAAA,IACA,EAAE,MAAA,CAAO,EAAE,SAAS,CAAA,CAAE,OAAA,IAAW,CAAA;AAAA,IACjC,CAAA,CAAE,OAAO,EAAE,GAAA,EAAK,EAAE,KAAA,CAAM,eAAe,GAAG,CAAA;AAAA,IAC1C,CAAA,CAAE,MAAA,CAAO,EAAE,SAAA,EAAW,iBAAiB;AAAA,GACxC,CAAA;AAED,EAAA,OAAO,eAAA;AACT;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ type EntityPredicateValue = EntityPredicatePrimitive | {
|
|
|
69
69
|
} | {
|
|
70
70
|
$in: EntityPredicatePrimitive[];
|
|
71
71
|
} | {
|
|
72
|
-
$contains:
|
|
72
|
+
$contains: EntityPredicate;
|
|
73
73
|
};
|
|
74
74
|
/** @alpha */
|
|
75
75
|
type EntityPredicatePrimitive = string | number | boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-react",
|
|
3
|
-
"version": "1.21.4
|
|
3
|
+
"version": "1.21.4",
|
|
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": "1.12.1",
|
|
77
|
-
"@backstage/catalog-model": "1.7.6",
|
|
78
|
-
"@backstage/core-compat-api": "0.5.5
|
|
79
|
-
"@backstage/core-components": "0.18.4
|
|
80
|
-
"@backstage/core-plugin-api": "1.12.1
|
|
81
|
-
"@backstage/errors": "1.2.7",
|
|
82
|
-
"@backstage/frontend-plugin-api": "0.13.2
|
|
83
|
-
"@backstage/frontend-test-utils": "0.4.2
|
|
84
|
-
"@backstage/integration-react": "1.2.13
|
|
85
|
-
"@backstage/plugin-catalog-common": "1.1.7",
|
|
86
|
-
"@backstage/plugin-permission-common": "0.9.3",
|
|
87
|
-
"@backstage/plugin-permission-react": "0.4.39
|
|
88
|
-
"@backstage/types": "1.2.2",
|
|
89
|
-
"@backstage/version-bridge": "1.0.11",
|
|
76
|
+
"@backstage/catalog-client": "^1.12.1",
|
|
77
|
+
"@backstage/catalog-model": "^1.7.6",
|
|
78
|
+
"@backstage/core-compat-api": "^0.5.5",
|
|
79
|
+
"@backstage/core-components": "^0.18.4",
|
|
80
|
+
"@backstage/core-plugin-api": "^1.12.1",
|
|
81
|
+
"@backstage/errors": "^1.2.7",
|
|
82
|
+
"@backstage/frontend-plugin-api": "^0.13.2",
|
|
83
|
+
"@backstage/frontend-test-utils": "^0.4.2",
|
|
84
|
+
"@backstage/integration-react": "^1.2.13",
|
|
85
|
+
"@backstage/plugin-catalog-common": "^1.1.7",
|
|
86
|
+
"@backstage/plugin-permission-common": "^0.9.3",
|
|
87
|
+
"@backstage/plugin-permission-react": "^0.4.39",
|
|
88
|
+
"@backstage/types": "^1.2.2",
|
|
89
|
+
"@backstage/version-bridge": "^1.0.11",
|
|
90
90
|
"@material-ui/core": "^4.12.2",
|
|
91
91
|
"@material-ui/icons": "^4.9.1",
|
|
92
92
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
"zen-observable": "^0.10.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@backstage/cli": "0.35.0
|
|
104
|
-
"@backstage/core-app-api": "1.19.3
|
|
105
|
-
"@backstage/plugin-catalog-common": "1.1.7",
|
|
106
|
-
"@backstage/plugin-scaffolder-common": "1.7.4
|
|
107
|
-
"@backstage/test-utils": "1.7.14
|
|
103
|
+
"@backstage/cli": "^0.35.0",
|
|
104
|
+
"@backstage/core-app-api": "^1.19.3",
|
|
105
|
+
"@backstage/plugin-catalog-common": "^1.1.7",
|
|
106
|
+
"@backstage/plugin-scaffolder-common": "^1.7.4",
|
|
107
|
+
"@backstage/test-utils": "^1.7.14",
|
|
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",
|