@backstage/plugin-scaffolder 1.19.2 → 1.19.3-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 +22 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.esm.js +1 -1
- package/dist/esm/{OngoingTask-BeP2EzG8.esm.js → OngoingTask-DUFd5c4n.esm.js} +5 -5
- package/dist/esm/{OngoingTask-BeP2EzG8.esm.js.map → OngoingTask-DUFd5c4n.esm.js.map} +1 -1
- package/dist/esm/{index-CSOk13rN.esm.js → index-nuajSqTY.esm.js} +2 -2
- package/dist/esm/{index-CSOk13rN.esm.js.map → index-nuajSqTY.esm.js.map} +1 -1
- package/dist/index.esm.js +3 -3
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.19.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4f1f6ca: Use default value for `MyGroupsPicker` if provided
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/integration@1.10.0-next.0
|
|
10
|
+
- @backstage/core-components@0.14.4-next.0
|
|
11
|
+
- @backstage/catalog-client@1.6.3
|
|
12
|
+
- @backstage/catalog-model@1.4.5
|
|
13
|
+
- @backstage/core-compat-api@0.2.4-next.0
|
|
14
|
+
- @backstage/core-plugin-api@1.9.1
|
|
15
|
+
- @backstage/errors@1.2.4
|
|
16
|
+
- @backstage/frontend-plugin-api@0.6.4-next.0
|
|
17
|
+
- @backstage/integration-react@1.1.26-next.0
|
|
18
|
+
- @backstage/types@1.1.1
|
|
19
|
+
- @backstage/plugin-catalog-common@1.0.22
|
|
20
|
+
- @backstage/plugin-catalog-react@1.11.3-next.0
|
|
21
|
+
- @backstage/plugin-permission-react@0.4.21
|
|
22
|
+
- @backstage/plugin-scaffolder-common@1.5.1
|
|
23
|
+
- @backstage/plugin-scaffolder-react@1.8.4-next.0
|
|
24
|
+
|
|
3
25
|
## 1.19.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.esm.js
CHANGED
|
@@ -32,7 +32,7 @@ const scaffolderApi = createApiExtension({
|
|
|
32
32
|
const scaffolderPage = createPageExtension({
|
|
33
33
|
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
34
34
|
defaultPath: "/create",
|
|
35
|
-
loader: () => import('./esm/index-
|
|
35
|
+
loader: () => import('./esm/index-nuajSqTY.esm.js').then((m) => compatWrapper(/* @__PURE__ */ React.createElement(m.Router, null)))
|
|
36
36
|
});
|
|
37
37
|
const scaffolderNavItem = createNavItemExtension({
|
|
38
38
|
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
@@ -1286,13 +1286,13 @@ const MyGroupsPicker = (props) => {
|
|
|
1286
1286
|
schema: { title, description },
|
|
1287
1287
|
required,
|
|
1288
1288
|
rawErrors,
|
|
1289
|
-
onChange
|
|
1289
|
+
onChange,
|
|
1290
|
+
formData
|
|
1290
1291
|
} = props;
|
|
1291
1292
|
const identityApi = useApi(identityApiRef);
|
|
1292
1293
|
const catalogApi = useApi(catalogApiRef);
|
|
1293
1294
|
const errorApi = useApi(errorApiRef);
|
|
1294
1295
|
const [groups, setGroups] = useState([]);
|
|
1295
|
-
const [selectedGroup, setSelectedGroup] = useState(null);
|
|
1296
1296
|
useAsync(async () => {
|
|
1297
1297
|
const { userEntityRef } = await identityApi.getBackstageIdentity();
|
|
1298
1298
|
if (!userEntityRef) {
|
|
@@ -1316,9 +1316,9 @@ const MyGroupsPicker = (props) => {
|
|
|
1316
1316
|
});
|
|
1317
1317
|
const updateChange = (_, value) => {
|
|
1318
1318
|
var _a;
|
|
1319
|
-
setSelectedGroup(value);
|
|
1320
1319
|
onChange((_a = value == null ? void 0 : value.ref) != null ? _a : "");
|
|
1321
1320
|
};
|
|
1321
|
+
const selectedEntity = (groups == null ? void 0 : groups.find((e) => e.ref === formData)) || null;
|
|
1322
1322
|
return /* @__PURE__ */ React.createElement(
|
|
1323
1323
|
FormControl,
|
|
1324
1324
|
{
|
|
@@ -1331,7 +1331,7 @@ const MyGroupsPicker = (props) => {
|
|
|
1331
1331
|
{
|
|
1332
1332
|
id: "OwnershipEntityRefPicker-dropdown",
|
|
1333
1333
|
options: groups || [],
|
|
1334
|
-
value:
|
|
1334
|
+
value: selectedEntity,
|
|
1335
1335
|
onChange: updateChange,
|
|
1336
1336
|
getOptionLabel: (group) => group.label,
|
|
1337
1337
|
renderInput: (params) => /* @__PURE__ */ React.createElement(
|
|
@@ -1569,4 +1569,4 @@ const OngoingTask = (props) => {
|
|
|
1569
1569
|
};
|
|
1570
1570
|
|
|
1571
1571
|
export { EntityPicker as E, MultiEntityPicker as M, OwnerPicker as O, RepoUrlPicker as R, EntityPickerSchema as a, EntityNamePicker as b, EntityNamePickerSchema as c, MultiEntityPickerSchema as d, entityNamePickerValidation as e, RepoUrlPickerSchema as f, OwnerPickerSchema as g, MyGroupsPicker as h, MyGroupsPickerSchema as i, OwnedEntityPicker as j, OwnedEntityPickerSchema as k, EntityTagsPicker as l, EntityTagsPickerSchema as m, OngoingTask as n, makeFieldSchemaFromZod as o, EntityPickerFieldSchema as p, OwnerPickerFieldSchema as q, repoPickerValidation as r, RepoUrlPickerFieldSchema as s, OwnedEntityPickerFieldSchema as t, EntityTagsPickerFieldSchema as u, validateMultiEntityPickerValidation as v, MyGroupsPickerFieldSchema as w };
|
|
1572
|
-
//# sourceMappingURL=OngoingTask-
|
|
1572
|
+
//# sourceMappingURL=OngoingTask-DUFd5c4n.esm.js.map
|