@backstage/plugin-catalog-react 1.2.4 → 1.3.0-next.0
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 +13 -0
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +3 -1
- package/dist/index.beta.d.ts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.3.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 929e1afe1b: Add `initialFilter` prop to EntityLifecyclePicker. This allows you to set an initial lifecycle for the catalog.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/catalog-model@1.1.6-next.0
|
|
13
|
+
- @backstage/catalog-client@1.3.1-next.0
|
|
14
|
+
- @backstage/plugin-catalog-common@1.0.11-next.0
|
|
15
|
+
|
|
3
16
|
## 1.2.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.alpha.d.ts
CHANGED
|
@@ -212,7 +212,9 @@ export declare class EntityLifecycleFilter implements EntityFilter {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/** @public */
|
|
215
|
-
export declare const EntityLifecyclePicker: (
|
|
215
|
+
export declare const EntityLifecyclePicker: (props: {
|
|
216
|
+
initialFilter?: string[];
|
|
217
|
+
}) => JSX.Element | null;
|
|
216
218
|
|
|
217
219
|
/**
|
|
218
220
|
* Creates new context for entity listing and filtering.
|
package/dist/index.beta.d.ts
CHANGED
|
@@ -212,7 +212,9 @@ export declare class EntityLifecycleFilter implements EntityFilter {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/** @public */
|
|
215
|
-
export declare const EntityLifecyclePicker: (
|
|
215
|
+
export declare const EntityLifecyclePicker: (props: {
|
|
216
|
+
initialFilter?: string[];
|
|
217
|
+
}) => JSX.Element | null;
|
|
216
218
|
|
|
217
219
|
/**
|
|
218
220
|
* Creates new context for entity listing and filtering.
|
package/dist/index.d.ts
CHANGED
|
@@ -212,7 +212,9 @@ export declare class EntityLifecycleFilter implements EntityFilter {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/** @public */
|
|
215
|
-
export declare const EntityLifecyclePicker: (
|
|
215
|
+
export declare const EntityLifecyclePicker: (props: {
|
|
216
|
+
initialFilter?: string[];
|
|
217
|
+
}) => JSX.Element | null;
|
|
216
218
|
|
|
217
219
|
/**
|
|
218
220
|
* Creates new context for entity listing and filtering.
|
package/dist/index.esm.js
CHANGED
|
@@ -974,8 +974,9 @@ const useStyles$d = makeStyles(
|
|
|
974
974
|
);
|
|
975
975
|
const icon$3 = /* @__PURE__ */ React.createElement(CheckBoxOutlineBlankIcon, { fontSize: "small" });
|
|
976
976
|
const checkedIcon$3 = /* @__PURE__ */ React.createElement(CheckBoxIcon, { fontSize: "small" });
|
|
977
|
-
const EntityLifecyclePicker = () => {
|
|
977
|
+
const EntityLifecyclePicker = (props) => {
|
|
978
978
|
var _a, _b;
|
|
979
|
+
const { initialFilter = [] } = props;
|
|
979
980
|
const classes = useStyles$d();
|
|
980
981
|
const {
|
|
981
982
|
updateFilters,
|
|
@@ -988,7 +989,7 @@ const EntityLifecyclePicker = () => {
|
|
|
988
989
|
[lifecyclesParameter]
|
|
989
990
|
);
|
|
990
991
|
const [selectedLifecycles, setSelectedLifecycles] = useState(
|
|
991
|
-
queryParamLifecycles.length ? queryParamLifecycles : (_b = (_a = filters.lifecycles) == null ? void 0 : _a.values) != null ? _b :
|
|
992
|
+
queryParamLifecycles.length ? queryParamLifecycles : (_b = (_a = filters.lifecycles) == null ? void 0 : _a.values) != null ? _b : initialFilter
|
|
992
993
|
);
|
|
993
994
|
useEffect(() => {
|
|
994
995
|
if (queryParamLifecycles.length) {
|