@backstage/plugin-scaffolder 1.35.3-next.2 → 1.35.3
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,37 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.35.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7455dae: Use node prefix on native imports
|
|
8
|
+
- 4e581a6: Updated the browser tab title on the template wizard page to display the specific template title instead of the generic "Create a new component" text.
|
|
9
|
+
- 7feb83b: Adjusted to use the new `@backstage/filter-predicates` types for predicate expressions.
|
|
10
|
+
- 018ca87: Added `title` and `icon` to the plugin definition for the new frontend system.
|
|
11
|
+
- 2eeca03: Scaffolder form fields in the new frontend system now use a Utility API pattern instead of multiple attachment points. The `FormFieldBlueprint` now uses this new approach, and while form fields created with older versions still work, they will produce a deprecation warning and will stop working in a future release.
|
|
12
|
+
|
|
13
|
+
As part of this change, the following alpha exports were removed:
|
|
14
|
+
|
|
15
|
+
- `formFieldsApiRef`
|
|
16
|
+
- `ScaffolderFormFieldsApi`
|
|
17
|
+
|
|
18
|
+
- b9d90a7: Added `@backstage/frontend-test-utils` as a dev dependency for mock API usage in tests.
|
|
19
|
+
- a7e0d50: Updated `react-router-dom` peer dependency to `^6.30.2` and explicitly disabled v7 future flags to suppress deprecation warnings.
|
|
20
|
+
- 69d880e: Bump to latest zod to ensure it has the latest features
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/plugin-catalog-react@2.0.0
|
|
23
|
+
- @backstage/integration@1.20.0
|
|
24
|
+
- @backstage/core-components@0.18.7
|
|
25
|
+
- @backstage/frontend-plugin-api@0.14.0
|
|
26
|
+
- @backstage/catalog-client@1.13.0
|
|
27
|
+
- @backstage/plugin-scaffolder-react@1.19.7
|
|
28
|
+
- @backstage/core-plugin-api@1.12.3
|
|
29
|
+
- @backstage/plugin-techdocs-react@1.3.8
|
|
30
|
+
- @backstage/integration-react@1.2.15
|
|
31
|
+
- @backstage/plugin-permission-react@0.4.40
|
|
32
|
+
- @backstage/plugin-catalog-common@1.1.8
|
|
33
|
+
- @backstage/plugin-scaffolder-common@1.7.6
|
|
34
|
+
|
|
3
35
|
## 1.35.3-next.2
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import CreateComponentIcon from '@material-ui/icons/AddCircleOutline';
|
|
2
4
|
import { viewTechDocRouteRef, registerComponentRouteRef, templatingExtensionsRouteRef, editRouteRef, scaffolderListTaskRouteRef, actionsRouteRef, scaffolderTaskRouteRef, selectedTemplateRouteRef, rootRouteRef } from '../routes.esm.js';
|
|
3
5
|
import { scaffolderApi, scaffolderPage, scaffolderNavItem, repoUrlPickerFormField, entityNamePickerFormField, entityPickerFormField, ownerPickerFormField, entityTagsPickerFormField, multiEntityPickerFormField, myGroupsPickerFormField, ownedEntityPickerFormField, repoBranchPickerFormField, repoOwnerPickerFormField } from './extensions.esm.js';
|
|
4
6
|
import { isTemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';
|
|
@@ -17,6 +19,8 @@ const scaffolderEntityIconLink = EntityIconLinkBlueprint.make({
|
|
|
17
19
|
});
|
|
18
20
|
var plugin = createFrontendPlugin({
|
|
19
21
|
pluginId: "scaffolder",
|
|
22
|
+
title: "Create",
|
|
23
|
+
icon: /* @__PURE__ */ jsx(CreateComponentIcon, {}),
|
|
20
24
|
info: { packageJson: () => import('../plugins/scaffolder/package.json.esm.js') },
|
|
21
25
|
routes: {
|
|
22
26
|
root: rootRouteRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n actionsRouteRef,\n editRouteRef,\n registerComponentRouteRef,\n rootRouteRef,\n scaffolderListTaskRouteRef,\n scaffolderTaskRouteRef,\n selectedTemplateRouteRef,\n templatingExtensionsRouteRef,\n viewTechDocRouteRef,\n} from '../routes';\nimport {\n entityNamePickerFormField,\n entityPickerFormField,\n entityTagsPickerFormField,\n multiEntityPickerFormField,\n myGroupsPickerFormField,\n ownedEntityPickerFormField,\n ownerPickerFormField,\n repoBranchPickerFormField,\n repoOwnerPickerFormField,\n repoUrlPickerFormField,\n scaffolderApi,\n scaffolderNavItem,\n scaffolderPage,\n} from './extensions';\nimport { isTemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';\nimport { formFieldsApi } from './formFieldsApi';\nimport { formDecoratorsApi } from './api';\nimport { EntityIconLinkBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { useScaffolderTemplateIconLinkProps } from './hooks/useScaffolderTemplateIconLinkProps';\n\n/** @alpha */\nconst scaffolderEntityIconLink = EntityIconLinkBlueprint.make({\n name: 'launch-template',\n params: {\n filter: isTemplateEntityV1beta3,\n useProps: useScaffolderTemplateIconLinkProps,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'scaffolder',\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n selectedTemplate: selectedTemplateRouteRef,\n ongoingTask: scaffolderTaskRouteRef,\n actions: actionsRouteRef,\n listTasks: scaffolderListTaskRouteRef,\n edit: editRouteRef,\n templatingExtensions: templatingExtensionsRouteRef,\n },\n externalRoutes: {\n registerComponent: registerComponentRouteRef,\n viewTechDoc: viewTechDocRouteRef,\n },\n extensions: [\n scaffolderApi,\n scaffolderPage,\n scaffolderNavItem,\n scaffolderEntityIconLink,\n formDecoratorsApi,\n formFieldsApi,\n repoUrlPickerFormField,\n entityNamePickerFormField,\n entityPickerFormField,\n ownerPickerFormField,\n entityTagsPickerFormField,\n multiEntityPickerFormField,\n myGroupsPickerFormField,\n ownedEntityPickerFormField,\n repoBranchPickerFormField,\n repoOwnerPickerFormField,\n ],\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport CreateComponentIcon from '@material-ui/icons/AddCircleOutline';\nimport {\n actionsRouteRef,\n editRouteRef,\n registerComponentRouteRef,\n rootRouteRef,\n scaffolderListTaskRouteRef,\n scaffolderTaskRouteRef,\n selectedTemplateRouteRef,\n templatingExtensionsRouteRef,\n viewTechDocRouteRef,\n} from '../routes';\nimport {\n entityNamePickerFormField,\n entityPickerFormField,\n entityTagsPickerFormField,\n multiEntityPickerFormField,\n myGroupsPickerFormField,\n ownedEntityPickerFormField,\n ownerPickerFormField,\n repoBranchPickerFormField,\n repoOwnerPickerFormField,\n repoUrlPickerFormField,\n scaffolderApi,\n scaffolderNavItem,\n scaffolderPage,\n} from './extensions';\nimport { isTemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';\nimport { formFieldsApi } from './formFieldsApi';\nimport { formDecoratorsApi } from './api';\nimport { EntityIconLinkBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { useScaffolderTemplateIconLinkProps } from './hooks/useScaffolderTemplateIconLinkProps';\n\n/** @alpha */\nconst scaffolderEntityIconLink = EntityIconLinkBlueprint.make({\n name: 'launch-template',\n params: {\n filter: isTemplateEntityV1beta3,\n useProps: useScaffolderTemplateIconLinkProps,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'scaffolder',\n title: 'Create',\n icon: <CreateComponentIcon />,\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n selectedTemplate: selectedTemplateRouteRef,\n ongoingTask: scaffolderTaskRouteRef,\n actions: actionsRouteRef,\n listTasks: scaffolderListTaskRouteRef,\n edit: editRouteRef,\n templatingExtensions: templatingExtensionsRouteRef,\n },\n externalRoutes: {\n registerComponent: registerComponentRouteRef,\n viewTechDoc: viewTechDocRouteRef,\n },\n extensions: [\n scaffolderApi,\n scaffolderPage,\n scaffolderNavItem,\n scaffolderEntityIconLink,\n formDecoratorsApi,\n formFieldsApi,\n repoUrlPickerFormField,\n entityNamePickerFormField,\n entityPickerFormField,\n ownerPickerFormField,\n entityTagsPickerFormField,\n multiEntityPickerFormField,\n myGroupsPickerFormField,\n ownedEntityPickerFormField,\n repoBranchPickerFormField,\n repoOwnerPickerFormField,\n ],\n});\n"],"names":[],"mappings":";;;;;;;;;;;;AAmDA,MAAM,wBAAA,GAA2B,wBAAwB,IAAA,CAAK;AAAA,EAC5D,IAAA,EAAM,iBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,MAAA,EAAQ,uBAAA;AAAA,IACR,QAAA,EAAU;AAAA;AAEd,CAAC,CAAA;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,YAAA;AAAA,EACV,KAAA,EAAO,QAAA;AAAA,EACP,IAAA,sBAAO,mBAAA,EAAA,EAAoB,CAAA;AAAA,EAC3B,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,2CAAoB,CAAA,EAAE;AAAA,EACxD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,YAAA;AAAA,IACN,gBAAA,EAAkB,wBAAA;AAAA,IAClB,WAAA,EAAa,sBAAA;AAAA,IACb,OAAA,EAAS,eAAA;AAAA,IACT,SAAA,EAAW,0BAAA;AAAA,IACX,IAAA,EAAM,YAAA;AAAA,IACN,oBAAA,EAAsB;AAAA,GACxB;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,iBAAA,EAAmB,yBAAA;AAAA,IACnB,WAAA,EAAa;AAAA,GACf;AAAA,EACA,UAAA,EAAY;AAAA,IACV,aAAA;AAAA,IACA,cAAA;AAAA,IACA,iBAAA;AAAA,IACA,wBAAA;AAAA,IACA,iBAAA;AAAA,IACA,aAAA;AAAA,IACA,sBAAA;AAAA,IACA,yBAAA;AAAA,IACA,qBAAA;AAAA,IACA,oBAAA;AAAA,IACA,yBAAA;AAAA,IACA,0BAAA;AAAA,IACA,uBAAA;AAAA,IACA,0BAAA;AAAA,IACA,yBAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -390,14 +390,31 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
390
390
|
"page:scaffolder": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
391
391
|
config: {
|
|
392
392
|
path: string | undefined;
|
|
393
|
+
title: string | undefined;
|
|
393
394
|
};
|
|
394
395
|
configInput: {
|
|
396
|
+
title?: string | undefined;
|
|
395
397
|
path?: string | undefined;
|
|
396
398
|
};
|
|
397
|
-
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<
|
|
399
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
400
|
+
optional: true;
|
|
401
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
|
|
402
|
+
optional: true;
|
|
403
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
|
|
398
404
|
optional: true;
|
|
399
405
|
}>;
|
|
400
406
|
inputs: {
|
|
407
|
+
pages: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
408
|
+
optional: true;
|
|
409
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
|
|
410
|
+
optional: true;
|
|
411
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
|
|
412
|
+
optional: true;
|
|
413
|
+
}>, {
|
|
414
|
+
singleton: false;
|
|
415
|
+
optional: false;
|
|
416
|
+
internal: false;
|
|
417
|
+
}>;
|
|
401
418
|
formFields: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>, {
|
|
402
419
|
singleton: false;
|
|
403
420
|
optional: false;
|
|
@@ -409,8 +426,11 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
409
426
|
params: {
|
|
410
427
|
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
411
428
|
path: string;
|
|
412
|
-
|
|
429
|
+
title?: string;
|
|
430
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
431
|
+
loader?: () => Promise<react.JSX.Element>;
|
|
413
432
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
433
|
+
noHeader?: boolean;
|
|
414
434
|
};
|
|
415
435
|
}>;
|
|
416
436
|
"scaffolder-form-field:scaffolder/entity-name-picker": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder",
|
|
3
|
-
"version": "1.35.3
|
|
3
|
+
"version": "1.35.3",
|
|
4
4
|
"description": "The Backstage plugin that helps you create new things",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -70,22 +70,22 @@
|
|
|
70
70
|
"test": "backstage-cli package test"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@backstage/catalog-client": "1.
|
|
74
|
-
"@backstage/catalog-model": "1.7.6",
|
|
75
|
-
"@backstage/core-components": "0.18.7
|
|
76
|
-
"@backstage/core-plugin-api": "1.12.3
|
|
77
|
-
"@backstage/errors": "1.2.7",
|
|
78
|
-
"@backstage/frontend-plugin-api": "0.14.0
|
|
79
|
-
"@backstage/integration": "1.20.0
|
|
80
|
-
"@backstage/integration-react": "1.2.15
|
|
81
|
-
"@backstage/plugin-catalog-common": "1.1.8
|
|
82
|
-
"@backstage/plugin-catalog-react": "2.0.0
|
|
83
|
-
"@backstage/plugin-permission-react": "0.4.40
|
|
84
|
-
"@backstage/plugin-scaffolder-common": "1.7.6
|
|
85
|
-
"@backstage/plugin-scaffolder-react": "1.19.7
|
|
86
|
-
"@backstage/plugin-techdocs-common": "0.1.1",
|
|
87
|
-
"@backstage/plugin-techdocs-react": "1.3.8
|
|
88
|
-
"@backstage/types": "1.2.2",
|
|
73
|
+
"@backstage/catalog-client": "^1.13.0",
|
|
74
|
+
"@backstage/catalog-model": "^1.7.6",
|
|
75
|
+
"@backstage/core-components": "^0.18.7",
|
|
76
|
+
"@backstage/core-plugin-api": "^1.12.3",
|
|
77
|
+
"@backstage/errors": "^1.2.7",
|
|
78
|
+
"@backstage/frontend-plugin-api": "^0.14.0",
|
|
79
|
+
"@backstage/integration": "^1.20.0",
|
|
80
|
+
"@backstage/integration-react": "^1.2.15",
|
|
81
|
+
"@backstage/plugin-catalog-common": "^1.1.8",
|
|
82
|
+
"@backstage/plugin-catalog-react": "^2.0.0",
|
|
83
|
+
"@backstage/plugin-permission-react": "^0.4.40",
|
|
84
|
+
"@backstage/plugin-scaffolder-common": "^1.7.6",
|
|
85
|
+
"@backstage/plugin-scaffolder-react": "^1.19.7",
|
|
86
|
+
"@backstage/plugin-techdocs-common": "^0.1.1",
|
|
87
|
+
"@backstage/plugin-techdocs-react": "^1.3.8",
|
|
88
|
+
"@backstage/types": "^1.2.2",
|
|
89
89
|
"@codemirror/language": "^6.0.0",
|
|
90
90
|
"@codemirror/legacy-modes": "^6.1.0",
|
|
91
91
|
"@codemirror/view": "^6.0.0",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"zod-to-json-schema": "^3.25.1"
|
|
118
118
|
},
|
|
119
119
|
"devDependencies": {
|
|
120
|
-
"@backstage/cli": "0.35.4
|
|
121
|
-
"@backstage/core-app-api": "1.19.5
|
|
122
|
-
"@backstage/dev-utils": "1.1.20
|
|
123
|
-
"@backstage/frontend-test-utils": "0.5.0
|
|
124
|
-
"@backstage/plugin-catalog": "1.33.0
|
|
125
|
-
"@backstage/plugin-permission-common": "0.9.6
|
|
126
|
-
"@backstage/plugin-techdocs": "1.
|
|
127
|
-
"@backstage/test-utils": "1.7.15
|
|
120
|
+
"@backstage/cli": "^0.35.4",
|
|
121
|
+
"@backstage/core-app-api": "^1.19.5",
|
|
122
|
+
"@backstage/dev-utils": "^1.1.20",
|
|
123
|
+
"@backstage/frontend-test-utils": "^0.5.0",
|
|
124
|
+
"@backstage/plugin-catalog": "^1.33.0",
|
|
125
|
+
"@backstage/plugin-permission-common": "^0.9.6",
|
|
126
|
+
"@backstage/plugin-techdocs": "^1.17.0",
|
|
127
|
+
"@backstage/test-utils": "^1.7.15",
|
|
128
128
|
"@testing-library/dom": "^10.0.0",
|
|
129
129
|
"@testing-library/jest-dom": "^6.0.0",
|
|
130
130
|
"@testing-library/react": "^16.0.0",
|