@backstage/plugin-scaffolder 1.4.0-next.1 → 1.4.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 +95 -6
- package/alpha/package.json +1 -1
- package/dist/esm/{Router-a85c58bd.esm.js → Router-e14e5f4e.esm.js} +7 -5
- package/dist/esm/Router-e14e5f4e.esm.js.map +1 -0
- package/dist/esm/{default-a3df1f11.esm.js → default-ffab2851.esm.js} +2 -2
- package/dist/esm/{default-a3df1f11.esm.js.map → default-ffab2851.esm.js.map} +1 -1
- package/dist/esm/{index-eff50288.esm.js → index-8dd91f94.esm.js} +3 -3
- package/dist/esm/{index-eff50288.esm.js.map → index-8dd91f94.esm.js.map} +1 -1
- package/dist/esm/{index-470abc37.esm.js → index-a298f509.esm.js} +80 -76
- package/dist/esm/index-a298f509.esm.js.map +1 -0
- package/dist/index.alpha.d.ts +3 -0
- package/dist/index.beta.d.ts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +1 -1
- package/package.json +24 -24
- package/dist/esm/Router-a85c58bd.esm.js.map +0 -1
- package/dist/esm/index-470abc37.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d8eb82f447: Add `allowedRepos` `ui:option` to `RepoUrlPicker` component, and move `repoName` field to own component
|
|
8
|
+
- 9a96199f86: Add support for `allowedOwners` to the `BitbucketRepoPicker` used for the workspace value.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 37539e29d8: The template editor now shows the cause of request errors that happen during a dry-run.
|
|
13
|
+
- b557e6c58d: Fixed that adding more than one `allowedOwner` or `allowedRepo` in the template config will now still set the first value as default in the initial form state of `RepoUrlPicker`.
|
|
14
|
+
- 842282ecf9: Bumped `codemirror` dependencies to `v6.0.0`.
|
|
15
|
+
- 11a5ca35f3: Add allowArbitraryValues for <OwnerPicker /> to provide input validation. This makes it a better experience of users, as they can now expect the values they enter to correspond to a valid owner. This is set to the default behavior by default.
|
|
16
|
+
- d600cb2ab6: contextMenu prop passed through to <ScaffolderPageContents /> from the <ScaffolderPage /> component
|
|
17
|
+
- a70869e775: Updated dependency `msw` to `^0.43.0`.
|
|
18
|
+
- 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
|
|
19
|
+
- 72622d9143: Updated dependency `yaml` to `^2.0.0`.
|
|
20
|
+
- 693990d4fe: Updated dependency `@react-hookz/web` to `^15.0.0`.
|
|
21
|
+
- 8006d0f9bf: Updated dependency `msw` to `^0.44.0`.
|
|
22
|
+
- e2d7b76f43: Upgrade git-url-parse to 12.0.0.
|
|
23
|
+
|
|
24
|
+
Motivation for upgrade is transitively upgrading parse-url which is vulnerable
|
|
25
|
+
to several CVEs detected by Snyk.
|
|
26
|
+
|
|
27
|
+
- SNYK-JS-PARSEURL-2935944
|
|
28
|
+
- SNYK-JS-PARSEURL-2935947
|
|
29
|
+
- SNYK-JS-PARSEURL-2936249
|
|
30
|
+
|
|
31
|
+
- 464bb0e6c8: The max content size for dry-run files has been reduced from 256k to 64k.
|
|
32
|
+
- 14146703e5: Add `allowArbitraryValues` to `ui:options` in `OwnedEntityPicker`, similar to `allowArbitraryValues` in `EntityPicker`
|
|
33
|
+
- a7c0b34d70: Swap usage of `MaterialTable` with `Table` from `core-components`
|
|
34
|
+
- 1764296a68: Allow to create Gerrit project using default owner
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
- @backstage/core-components@0.10.0
|
|
37
|
+
- @backstage/catalog-model@1.1.0
|
|
38
|
+
- @backstage/core-plugin-api@1.0.4
|
|
39
|
+
- @backstage/integration@1.2.2
|
|
40
|
+
- @backstage/catalog-client@1.0.4
|
|
41
|
+
- @backstage/integration-react@1.1.2
|
|
42
|
+
- @backstage/plugin-catalog-react@1.1.2
|
|
43
|
+
- @backstage/theme@0.2.16
|
|
44
|
+
- @backstage/errors@1.1.0
|
|
45
|
+
- @backstage/plugin-catalog-common@1.0.4
|
|
46
|
+
- @backstage/plugin-permission-react@0.4.3
|
|
47
|
+
- @backstage/plugin-scaffolder-common@1.1.2
|
|
48
|
+
|
|
49
|
+
## 1.4.0-next.3
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- b557e6c58d: Fixed that adding more than one `allowedOwner` or `allowedRepo` in the template config will now still set the first value as default in the initial form state of `RepoUrlPicker`.
|
|
54
|
+
- d600cb2ab6: contextMenu prop passed through to <ScaffolderPageContents /> from the <ScaffolderPage /> component
|
|
55
|
+
- a70869e775: Updated dependency `msw` to `^0.43.0`.
|
|
56
|
+
- 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
|
|
57
|
+
- 72622d9143: Updated dependency `yaml` to `^2.0.0`.
|
|
58
|
+
- 693990d4fe: Updated dependency `@react-hookz/web` to `^15.0.0`.
|
|
59
|
+
- Updated dependencies
|
|
60
|
+
- @backstage/core-plugin-api@1.0.4-next.0
|
|
61
|
+
- @backstage/core-components@0.10.0-next.3
|
|
62
|
+
- @backstage/catalog-client@1.0.4-next.2
|
|
63
|
+
- @backstage/integration-react@1.1.2-next.3
|
|
64
|
+
- @backstage/integration@1.2.2-next.3
|
|
65
|
+
- @backstage/catalog-model@1.1.0-next.3
|
|
66
|
+
- @backstage/plugin-catalog-react@1.1.2-next.3
|
|
67
|
+
- @backstage/plugin-permission-react@0.4.3-next.1
|
|
68
|
+
|
|
69
|
+
## 1.4.0-next.2
|
|
70
|
+
|
|
71
|
+
### Minor Changes
|
|
72
|
+
|
|
73
|
+
- d8eb82f447: Add `allowedRepos` `ui:option` to `RepoUrlPicker` component, and move `repoName` field to own component
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- e2d7b76f43: Upgrade git-url-parse to 12.0.0.
|
|
78
|
+
|
|
79
|
+
Motivation for upgrade is transitively upgrading parse-url which is vulnerable
|
|
80
|
+
to several CVEs detected by Snyk.
|
|
81
|
+
|
|
82
|
+
- SNYK-JS-PARSEURL-2935944
|
|
83
|
+
- SNYK-JS-PARSEURL-2935947
|
|
84
|
+
- SNYK-JS-PARSEURL-2936249
|
|
85
|
+
|
|
86
|
+
- 14146703e5: Add `allowArbitraryValues` to `ui:options` in `OwnedEntityPicker`, similar to `allowArbitraryValues` in `EntityPicker`
|
|
87
|
+
- Updated dependencies
|
|
88
|
+
- @backstage/core-components@0.10.0-next.2
|
|
89
|
+
- @backstage/catalog-model@1.1.0-next.2
|
|
90
|
+
- @backstage/theme@0.2.16-next.1
|
|
91
|
+
- @backstage/integration@1.2.2-next.2
|
|
92
|
+
- @backstage/plugin-catalog-react@1.1.2-next.2
|
|
93
|
+
- @backstage/integration-react@1.1.2-next.2
|
|
94
|
+
|
|
3
95
|
## 1.4.0-next.1
|
|
4
96
|
|
|
5
97
|
### Patch Changes
|
|
@@ -18,12 +110,6 @@
|
|
|
18
110
|
|
|
19
111
|
## 1.4.0-next.0
|
|
20
112
|
|
|
21
|
-
### Minor Changes
|
|
22
|
-
|
|
23
|
-
- 3500c13a33: A new template editor has been added which is accessible via the context menu on the top right hand corner of the Create page. It allows you to load a template from a local directory, edit it with a preview, execute it in dry-run mode, and view the results. Note that the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API) must be supported by your browser for this to be available.
|
|
24
|
-
|
|
25
|
-
To support the new template editor the `ScaffolderApi` now has an optional `dryRun` method, which is implemented by the default `ScaffolderClient`.
|
|
26
|
-
|
|
27
113
|
### Patch Changes
|
|
28
114
|
|
|
29
115
|
- 37539e29d8: The template editor now shows the cause of request errors that happen during a dry-run.
|
|
@@ -66,6 +152,9 @@
|
|
|
66
152
|
|
|
67
153
|
- 72dfcbc8bf: Gerrit Integration: Implemented a `RepoUrlPicker` for Gerrit.
|
|
68
154
|
- f93af969cd: Added the ability to support running of templates that are not in the `default` namespace
|
|
155
|
+
- 3500c13a33: A new template editor has been added which is accessible via the context menu on the top right hand corner of the Create page. It allows you to load a template from a local directory, edit it with a preview, execute it in dry-run mode, and view the results. Note that the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API) must be supported by your browser for this to be available.
|
|
156
|
+
|
|
157
|
+
To support the new template editor the `ScaffolderApi` now has an optional `dryRun` method, which is implemented by the default `ScaffolderClient`.
|
|
69
158
|
|
|
70
159
|
### Patch Changes
|
|
71
160
|
|
package/alpha/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { useNavigate, Navigate, useOutlet, Routes, Route, useParams as useParams
|
|
|
3
3
|
import { ItemCardHeader, MarkdownContent, Button, ContentHeader, Progress, WarningPanel, Link as Link$1, Content, ItemCardGrid, Page, Header, CreateButton, SupportButton, StructuredMetadataTable, InfoCard, ErrorPage, ErrorPanel, LogViewer, StatusError, StatusOK, StatusPending, Lifecycle, EmptyState, Table as Table$1 } from '@backstage/core-components';
|
|
4
4
|
import { useRouteRef, useApi, errorApiRef, featureFlagsApiRef, useApiHolder, alertApiRef, useElementFilter } from '@backstage/core-plugin-api';
|
|
5
5
|
import { getEntityRelations, getEntitySourceLocation, FavoriteEntity, EntityRefLinks, useEntityList, EntityListProvider, CatalogFilterLayout, EntitySearchBar, EntityKindPicker, UserListPicker, EntityTagPicker, catalogApiRef, humanizeEntityRef, EntityRefLink } from '@backstage/plugin-catalog-react';
|
|
6
|
-
import { s as selectedTemplateRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, S as SecretsContext, c as scaffolderApiRef, d as scaffolderTaskRouteRef, f as rootRouteRef, g as TaskStatusStepper, h as TaskPageLinks, F as FIELD_EXTENSION_WRAPPER_KEY, i as FIELD_EXTENSION_KEY, l as legacySelectedTemplateRouteRef, j as SecretsContextProvider, k as TaskPage } from './index-
|
|
6
|
+
import { s as selectedTemplateRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, S as SecretsContext, c as scaffolderApiRef, d as scaffolderTaskRouteRef, f as rootRouteRef, g as TaskStatusStepper, h as TaskPageLinks, F as FIELD_EXTENSION_WRAPPER_KEY, i as FIELD_EXTENSION_KEY, l as legacySelectedTemplateRouteRef, j as SecretsContextProvider, k as TaskPage } from './index-a298f509.esm.js';
|
|
7
7
|
import { RELATION_OWNED_BY, parseEntityRef, stringifyEntityRef } from '@backstage/catalog-model';
|
|
8
8
|
import { makeStyles, useTheme, Card, CardMedia, CardContent, Box, Typography, Chip, CardActions, IconButton, Tooltip, Link, Stepper, Step, StepLabel, StepContent, Button as Button$1, Paper, LinearProgress, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Divider as Divider$1, FormControl, InputLabel, Select, MenuItem as MenuItem$1, List as List$2, ListItemIcon as ListItemIcon$1, ListItemText as ListItemText$1 } from '@material-ui/core';
|
|
9
9
|
import { scmIntegrationsApiRef, ScmIntegrationIcon } from '@backstage/integration-react';
|
|
@@ -66,7 +66,7 @@ import SettingsIcon from '@material-ui/icons/Settings';
|
|
|
66
66
|
import AllIcon from '@material-ui/icons/FontDownload';
|
|
67
67
|
import { DateTime, Interval } from 'luxon';
|
|
68
68
|
import humanizeDuration from 'humanize-duration';
|
|
69
|
-
import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-
|
|
69
|
+
import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-ffab2851.esm.js';
|
|
70
70
|
import '@backstage/errors';
|
|
71
71
|
import 'zen-observable';
|
|
72
72
|
import '@material-ui/core/FormControl';
|
|
@@ -359,10 +359,12 @@ const ScaffolderPageContents = ({
|
|
|
359
359
|
};
|
|
360
360
|
const ScaffolderPage = ({
|
|
361
361
|
TemplateCardComponent,
|
|
362
|
-
groups
|
|
362
|
+
groups,
|
|
363
|
+
contextMenu
|
|
363
364
|
}) => /* @__PURE__ */ React.createElement(EntityListProvider, null, /* @__PURE__ */ React.createElement(ScaffolderPageContents, {
|
|
364
365
|
TemplateCardComponent,
|
|
365
|
-
groups
|
|
366
|
+
groups,
|
|
367
|
+
contextMenu
|
|
366
368
|
}));
|
|
367
369
|
|
|
368
370
|
function isObject$1(value) {
|
|
@@ -2394,4 +2396,4 @@ const Router = (props) => {
|
|
|
2394
2396
|
};
|
|
2395
2397
|
|
|
2396
2398
|
export { Router };
|
|
2397
|
-
//# sourceMappingURL=Router-
|
|
2399
|
+
//# sourceMappingURL=Router-e14e5f4e.esm.js.map
|