@backstage/plugin-scaffolder 1.17.1 → 1.18.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 +34 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.d.ts +20 -5
- package/dist/alpha.esm.js +55 -97
- package/dist/alpha.esm.js.map +1 -1
- package/dist/esm/{OngoingTask-87c6761c.esm.js → OngoingTask-caf1a6e8.esm.js} +197 -445
- package/dist/esm/OngoingTask-caf1a6e8.esm.js.map +1 -0
- package/dist/esm/{DryRunResults-c0cd5eb5.esm.js → index-445b4718.esm.js} +1314 -634
- package/dist/esm/index-445b4718.esm.js.map +1 -0
- package/dist/esm/routes-1428737e.esm.js +275 -0
- package/dist/esm/routes-1428737e.esm.js.map +1 -0
- package/dist/index.d.ts +187 -18
- package/dist/index.esm.js +171 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -13
- package/dist/esm/DryRunResults-c0cd5eb5.esm.js.map +0 -1
- package/dist/esm/OngoingTask-87c6761c.esm.js.map +0 -1
- package/dist/esm/Router-5d4d36fb.esm.js +0 -1563
- package/dist/esm/Router-5d4d36fb.esm.js.map +0 -1
- package/dist/esm/index-38156f16.esm.js +0 -876
- package/dist/esm/index-38156f16.esm.js.map +0 -1
- package/dist/types/plugin.d-c637df46.d.ts +0 -214
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.18.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c56f1a2: Remove the old legacy exports from `/alpha`
|
|
8
|
+
- a86920b: Introduced a new `MultiEntityPicker` field that supports selecting multiple Entities
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- b0d1d80: Added basic support for the new frontend system, exported from the `/alpha` subpath.
|
|
13
|
+
- 912ca7b: Use `convertLegacyRouteRefs` to define routes in `/alpha` export plugin.
|
|
14
|
+
- da059d7: Removed alpha symbol from Task List header
|
|
15
|
+
- 6a74ffd: Updated dependency `@rjsf/utils` to `5.16.1`.
|
|
16
|
+
Updated dependency `@rjsf/core` to `5.16.1`.
|
|
17
|
+
Updated dependency `@rjsf/material-ui` to `5.16.1`.
|
|
18
|
+
Updated dependency `@rjsf/validator-ajv8` to `5.16.1`.
|
|
19
|
+
- 11b9a08: Introduced the first version of recoverable tasks.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/core-compat-api@0.1.2-next.0
|
|
22
|
+
- @backstage/plugin-catalog-react@1.9.4-next.0
|
|
23
|
+
- @backstage/plugin-scaffolder-react@1.8.0-next.0
|
|
24
|
+
- @backstage/frontend-plugin-api@0.5.1-next.0
|
|
25
|
+
- @backstage/catalog-client@1.6.0-next.0
|
|
26
|
+
- @backstage/plugin-scaffolder-common@1.5.0-next.0
|
|
27
|
+
- @backstage/core-components@0.13.10
|
|
28
|
+
- @backstage/catalog-model@1.4.3
|
|
29
|
+
- @backstage/core-plugin-api@1.8.2
|
|
30
|
+
- @backstage/errors@1.2.3
|
|
31
|
+
- @backstage/integration@1.8.0
|
|
32
|
+
- @backstage/integration-react@1.1.23
|
|
33
|
+
- @backstage/types@1.1.1
|
|
34
|
+
- @backstage/plugin-catalog-common@1.0.20
|
|
35
|
+
- @backstage/plugin-permission-react@0.4.19
|
|
36
|
+
|
|
3
37
|
## 1.17.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
2
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
1
3
|
import React__default from 'react';
|
|
2
4
|
import { TemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';
|
|
3
5
|
import { TemplateGroupFilter, FieldExtensionOptions, ReviewStepProps, LayoutOptions, FormProps as FormProps$1 } from '@backstage/plugin-scaffolder-react';
|
|
4
6
|
import { FormProps as FormProps$2 } from '@rjsf/core';
|
|
5
|
-
export { L as LegacyRouter, e as LegacyRouterProps, f as LegacyScaffolderPage } from './types/plugin.d-c637df46.js';
|
|
6
|
-
import '@backstage/catalog-model';
|
|
7
|
-
import '@backstage/plugin-scaffolder/alpha';
|
|
8
|
-
import '@backstage/core-plugin-api';
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* @alpha
|
|
@@ -59,4 +57,21 @@ type TemplateWizardPageProps = {
|
|
|
59
57
|
*/
|
|
60
58
|
type FormProps = Pick<FormProps$2, 'transformErrors' | 'noHtml5Validate'>;
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
/** @alpha */
|
|
61
|
+
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
|
|
62
|
+
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
63
|
+
selectedTemplate: _backstage_frontend_plugin_api.SubRouteRef<_backstage_core_plugin_api.PathParams<"/templates/:namespace/:templateName">>;
|
|
64
|
+
ongoingTask: _backstage_frontend_plugin_api.SubRouteRef<_backstage_core_plugin_api.PathParams<"/tasks/:taskId">>;
|
|
65
|
+
actions: _backstage_frontend_plugin_api.SubRouteRef<undefined>;
|
|
66
|
+
listTasks: _backstage_frontend_plugin_api.SubRouteRef<undefined>;
|
|
67
|
+
edit: _backstage_frontend_plugin_api.SubRouteRef<undefined>;
|
|
68
|
+
}, {
|
|
69
|
+
registerComponent: _backstage_frontend_plugin_api.ExternalRouteRef<undefined, true>;
|
|
70
|
+
viewTechDoc: _backstage_frontend_plugin_api.ExternalRouteRef<{
|
|
71
|
+
name: string;
|
|
72
|
+
kind: string;
|
|
73
|
+
namespace: string;
|
|
74
|
+
}, true>;
|
|
75
|
+
}>;
|
|
76
|
+
|
|
77
|
+
export { FormProps, TemplateListPageProps, TemplateWizardPageProps, _default as default };
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,102 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '@backstage/
|
|
6
|
-
import '@backstage/
|
|
7
|
-
import '
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createApiExtension, createApiFactory, discoveryApiRef, fetchApiRef, identityApiRef, createPageExtension, createNavItemExtension, createPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import CreateComponentIcon from '@material-ui/icons/AddCircleOutline';
|
|
4
|
+
import { convertLegacyRouteRef, compatWrapper, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
5
|
+
import { scmIntegrationsApiRef } from '@backstage/integration-react';
|
|
6
|
+
import { scaffolderApiRef } from '@backstage/plugin-scaffolder-react';
|
|
7
|
+
import { S as ScaffolderClient, r as rootRouteRef, s as selectedTemplateRouteRef, a as scaffolderTaskRouteRef, b as actionsRouteRef, c as scaffolderListTaskRouteRef, e as editRouteRef, d as registerComponentRouteRef, v as viewTechDocRouteRef } from './esm/routes-1428737e.esm.js';
|
|
8
8
|
import '@backstage/catalog-model';
|
|
9
|
-
import '@backstage/plugin-scaffolder-common';
|
|
10
|
-
import '@material-ui/core';
|
|
11
|
-
import '@backstage/integration-react';
|
|
12
|
-
import '@material-ui/icons/Language';
|
|
13
|
-
import '@material-ui/icons/Warning';
|
|
14
|
-
import '@backstage/plugin-catalog-common/alpha';
|
|
15
|
-
import '@backstage/plugin-permission-react';
|
|
16
|
-
import '@material-ui/core/IconButton';
|
|
17
|
-
import '@material-ui/core/ListItemIcon';
|
|
18
|
-
import '@material-ui/core/ListItemText';
|
|
19
|
-
import '@material-ui/core/MenuItem';
|
|
20
|
-
import '@material-ui/core/MenuList';
|
|
21
|
-
import '@material-ui/core/Popover';
|
|
22
|
-
import '@material-ui/core/styles';
|
|
23
|
-
import '@material-ui/icons/Description';
|
|
24
|
-
import '@material-ui/icons/Edit';
|
|
25
|
-
import '@material-ui/icons/List';
|
|
26
|
-
import '@material-ui/icons/MoreVert';
|
|
27
|
-
import 'zod-to-json-schema';
|
|
28
|
-
import 'qs';
|
|
29
|
-
import 'react-use/lib/useAsync';
|
|
30
|
-
import '@backstage/plugin-scaffolder-react';
|
|
31
|
-
import '@rjsf/core';
|
|
32
|
-
import '@rjsf/material-ui';
|
|
33
|
-
import 'lodash/cloneDeep';
|
|
34
|
-
import '@rjsf/validator-ajv8';
|
|
35
|
-
import '@backstage/plugin-scaffolder-react/alpha';
|
|
36
|
-
import './esm/DryRunResults-c0cd5eb5.esm.js';
|
|
37
|
-
import 'classnames';
|
|
38
|
-
import '@material-ui/icons/ExpandMore';
|
|
39
|
-
import '@material-ui/icons/ExpandLess';
|
|
40
|
-
import '@material-ui/core/Chip';
|
|
41
|
-
import '@material-ui/icons/Settings';
|
|
42
|
-
import '@material-ui/icons/FontDownload';
|
|
43
|
-
import 'luxon';
|
|
44
|
-
import 'humanize-duration';
|
|
45
|
-
import '@material-ui/core/Typography';
|
|
46
|
-
import '@material-ui/core/Card';
|
|
47
|
-
import '@material-ui/core/CardActionArea';
|
|
48
|
-
import '@material-ui/core/CardContent';
|
|
49
|
-
import '@material-ui/core/Tooltip';
|
|
50
|
-
import '@material-ui/icons/InfoOutlined';
|
|
51
|
-
import '@material-ui/icons/Close';
|
|
52
|
-
import '@material-ui/icons/Refresh';
|
|
53
|
-
import '@material-ui/icons/Save';
|
|
54
|
-
import '@codemirror/language';
|
|
55
|
-
import '@codemirror/legacy-modes/mode/yaml';
|
|
56
|
-
import '@codemirror/view';
|
|
57
|
-
import '@react-hookz/web';
|
|
58
|
-
import '@uiw/react-codemirror';
|
|
59
|
-
import '@material-ui/core/Accordion';
|
|
60
|
-
import '@material-ui/core/AccordionDetails';
|
|
61
|
-
import '@material-ui/core/AccordionSummary';
|
|
62
|
-
import '@material-ui/core/Divider';
|
|
63
|
-
import 'yaml';
|
|
64
|
-
import '@material-ui/core/List';
|
|
65
|
-
import '@material-ui/core/ListItem';
|
|
66
|
-
import '@material-ui/core/ListItemSecondaryAction';
|
|
67
|
-
import '@material-ui/icons/Cancel';
|
|
68
|
-
import '@material-ui/icons/Check';
|
|
69
|
-
import '@material-ui/icons/Delete';
|
|
70
|
-
import '@material-ui/icons/GetApp';
|
|
71
|
-
import '@material-ui/core/Box';
|
|
72
|
-
import '@material-ui/core/Tab';
|
|
73
|
-
import '@material-ui/core/Tabs';
|
|
74
|
-
import '@material-ui/lab/TreeView';
|
|
75
|
-
import '@material-ui/icons/ChevronRight';
|
|
76
|
-
import '@material-ui/lab/TreeItem';
|
|
77
|
-
import '@material-ui/core/Grid';
|
|
78
|
-
import '@material-ui/core/Step';
|
|
79
|
-
import '@material-ui/core/StepLabel';
|
|
80
|
-
import '@material-ui/core/Stepper';
|
|
81
|
-
import '@material-ui/icons/FiberManualRecord';
|
|
82
|
-
import 'react-use/lib/useInterval';
|
|
83
|
-
import 'react-use/lib/useDebounce';
|
|
84
9
|
import '@backstage/errors';
|
|
10
|
+
import 'qs';
|
|
85
11
|
import 'zen-observable';
|
|
86
12
|
import 'event-source-polyfill';
|
|
87
|
-
import '@backstage/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
13
|
+
import '@backstage/core-plugin-api';
|
|
14
|
+
|
|
15
|
+
const scaffolderApi = createApiExtension({
|
|
16
|
+
factory: createApiFactory({
|
|
17
|
+
api: scaffolderApiRef,
|
|
18
|
+
deps: {
|
|
19
|
+
discoveryApi: discoveryApiRef,
|
|
20
|
+
scmIntegrationsApi: scmIntegrationsApiRef,
|
|
21
|
+
fetchApi: fetchApiRef,
|
|
22
|
+
identityApi: identityApiRef
|
|
23
|
+
},
|
|
24
|
+
factory: ({ discoveryApi, scmIntegrationsApi, fetchApi, identityApi }) => new ScaffolderClient({
|
|
25
|
+
discoveryApi,
|
|
26
|
+
scmIntegrationsApi,
|
|
27
|
+
fetchApi,
|
|
28
|
+
identityApi
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
const scaffolderPage = createPageExtension({
|
|
33
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
34
|
+
defaultPath: "/create",
|
|
35
|
+
loader: () => import('./esm/index-445b4718.esm.js').then((m) => compatWrapper(/* @__PURE__ */ React.createElement(m.Router, null)))
|
|
36
|
+
});
|
|
37
|
+
const scaffolderNavItem = createNavItemExtension({
|
|
38
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
39
|
+
title: "Create...",
|
|
40
|
+
icon: CreateComponentIcon
|
|
41
|
+
});
|
|
42
|
+
var alpha = createPlugin({
|
|
43
|
+
id: "scaffolder",
|
|
44
|
+
routes: convertLegacyRouteRefs({
|
|
45
|
+
root: rootRouteRef,
|
|
46
|
+
selectedTemplate: selectedTemplateRouteRef,
|
|
47
|
+
ongoingTask: scaffolderTaskRouteRef,
|
|
48
|
+
actions: actionsRouteRef,
|
|
49
|
+
listTasks: scaffolderListTaskRouteRef,
|
|
50
|
+
edit: editRouteRef
|
|
51
|
+
}),
|
|
52
|
+
externalRoutes: convertLegacyRouteRefs({
|
|
53
|
+
registerComponent: registerComponentRouteRef,
|
|
54
|
+
viewTechDoc: viewTechDocRouteRef
|
|
55
|
+
}),
|
|
56
|
+
extensions: [scaffolderApi, scaffolderPage, scaffolderNavItem]
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export { alpha as default };
|
|
102
60
|
//# sourceMappingURL=alpha.esm.js.map
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 React from 'react';\nimport {\n createApiExtension,\n createApiFactory,\n createNavItemExtension,\n createPageExtension,\n createPlugin,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\nimport CreateComponentIcon from '@material-ui/icons/AddCircleOutline';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { scmIntegrationsApiRef } from '@backstage/integration-react';\nimport { scaffolderApiRef } from '@backstage/plugin-scaffolder-react';\nimport { ScaffolderClient } from './api';\nimport {\n registerComponentRouteRef,\n rootRouteRef,\n viewTechDocRouteRef,\n selectedTemplateRouteRef,\n scaffolderTaskRouteRef,\n scaffolderListTaskRouteRef,\n actionsRouteRef,\n editRouteRef,\n} from './routes';\n\nexport {\n type FormProps,\n type TemplateListPageProps,\n type TemplateWizardPageProps,\n} from './next';\n\nconst scaffolderApi = createApiExtension({\n factory: createApiFactory({\n api: scaffolderApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n scmIntegrationsApi: scmIntegrationsApiRef,\n fetchApi: fetchApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ discoveryApi, scmIntegrationsApi, fetchApi, identityApi }) =>\n new ScaffolderClient({\n discoveryApi,\n scmIntegrationsApi,\n fetchApi,\n identityApi,\n }),\n }),\n});\n\nconst scaffolderPage = createPageExtension({\n routeRef: convertLegacyRouteRef(rootRouteRef),\n defaultPath: '/create',\n loader: () =>\n import('./components/Router').then(m => compatWrapper(<m.Router />)),\n});\n\nconst scaffolderNavItem = createNavItemExtension({\n routeRef: convertLegacyRouteRef(rootRouteRef),\n title: 'Create...',\n icon: CreateComponentIcon,\n});\n\n/** @alpha */\nexport default createPlugin({\n id: 'scaffolder',\n routes: convertLegacyRouteRefs({\n root: rootRouteRef,\n selectedTemplate: selectedTemplateRouteRef,\n ongoingTask: scaffolderTaskRouteRef,\n actions: actionsRouteRef,\n listTasks: scaffolderListTaskRouteRef,\n edit: editRouteRef,\n }),\n externalRoutes: convertLegacyRouteRefs({\n registerComponent: registerComponentRouteRef,\n viewTechDoc: viewTechDocRouteRef,\n }),\n extensions: [scaffolderApi, scaffolderPage, scaffolderNavItem],\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAqDA,MAAM,gBAAgB,kBAAmB,CAAA;AAAA,EACvC,SAAS,gBAAiB,CAAA;AAAA,IACxB,GAAK,EAAA,gBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,kBAAoB,EAAA,qBAAA;AAAA,MACpB,QAAU,EAAA,WAAA;AAAA,MACV,WAAa,EAAA,cAAA;AAAA,KACf;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,oBAAoB,QAAU,EAAA,WAAA,EACtD,KAAA,IAAI,gBAAiB,CAAA;AAAA,MACnB,YAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA;AAAA,GACJ,CAAA;AACH,CAAC,CAAA,CAAA;AAED,MAAM,iBAAiB,mBAAoB,CAAA;AAAA,EACzC,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,EAC5C,WAAa,EAAA,SAAA;AAAA,EACb,MAAQ,EAAA,MACN,OAAO,6BAAqB,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,KAAA,CAAA,aAAA,CAAA,CAAA,CAAE,MAAF,EAAA,IAAS,CAAE,CAAC,CAAA;AACvE,CAAC,CAAA,CAAA;AAED,MAAM,oBAAoB,sBAAuB,CAAA;AAAA,EAC/C,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,EAC5C,KAAO,EAAA,WAAA;AAAA,EACP,IAAM,EAAA,mBAAA;AACR,CAAC,CAAA,CAAA;AAGD,YAAe,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,YAAA;AAAA,EACJ,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,IAAM,EAAA,YAAA;AAAA,IACN,gBAAkB,EAAA,wBAAA;AAAA,IAClB,WAAa,EAAA,sBAAA;AAAA,IACb,OAAS,EAAA,eAAA;AAAA,IACT,SAAW,EAAA,0BAAA;AAAA,IACX,IAAM,EAAA,YAAA;AAAA,GACP,CAAA;AAAA,EACD,gBAAgB,sBAAuB,CAAA;AAAA,IACrC,iBAAmB,EAAA,yBAAA;AAAA,IACnB,WAAa,EAAA,mBAAA;AAAA,GACd,CAAA;AAAA,EACD,UAAY,EAAA,CAAC,aAAe,EAAA,cAAA,EAAgB,iBAAiB,CAAA;AAC/D,CAAC,CAAA;;;;"}
|