@backstage/plugin-scaffolder 1.34.3 → 1.34.4-next.1
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 +49 -0
- package/dist/alpha/extensions.esm.js +3 -8
- package/dist/alpha/extensions.esm.js.map +1 -1
- package/dist/alpha/plugin.esm.js +4 -5
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +15 -15
- package/dist/index.d.ts +170 -168
- package/dist/plugins/scaffolder/package.json.esm.js +8 -9
- package/dist/plugins/scaffolder/package.json.esm.js.map +1 -1
- package/package.json +28 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.34.4-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- be21c5c: Updated dependency `@rjsf/utils` to `5.24.13`.
|
|
8
|
+
Updated dependency `@rjsf/core` to `5.24.13`.
|
|
9
|
+
Updated dependency `@rjsf/material-ui` to `5.24.13`.
|
|
10
|
+
Updated dependency `@rjsf/validator-ajv8` to `5.24.13`.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/frontend-plugin-api@0.13.2-next.1
|
|
13
|
+
- @backstage/plugin-scaffolder-react@1.19.4-next.2
|
|
14
|
+
- @backstage/integration@1.18.3-next.1
|
|
15
|
+
- @backstage/plugin-catalog-react@1.21.4-next.2
|
|
16
|
+
- @backstage/core-components@0.18.4-next.2
|
|
17
|
+
- @backstage/catalog-client@1.12.1
|
|
18
|
+
- @backstage/catalog-model@1.7.6
|
|
19
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
20
|
+
- @backstage/errors@1.2.7
|
|
21
|
+
- @backstage/integration-react@1.2.13-next.0
|
|
22
|
+
- @backstage/types@1.2.2
|
|
23
|
+
- @backstage/plugin-catalog-common@1.1.7
|
|
24
|
+
- @backstage/plugin-permission-react@0.4.39-next.0
|
|
25
|
+
- @backstage/plugin-scaffolder-common@1.7.4-next.0
|
|
26
|
+
- @backstage/plugin-techdocs-common@0.1.1
|
|
27
|
+
- @backstage/plugin-techdocs-react@1.3.6-next.0
|
|
28
|
+
|
|
29
|
+
## 1.34.4-next.0
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
- @backstage/frontend-plugin-api@0.13.2-next.0
|
|
36
|
+
- @backstage/integration@1.18.3-next.0
|
|
37
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
38
|
+
- @backstage/plugin-catalog-react@1.21.4-next.0
|
|
39
|
+
- @backstage/plugin-scaffolder-react@1.19.4-next.0
|
|
40
|
+
- @backstage/plugin-techdocs-react@1.3.6-next.0
|
|
41
|
+
- @backstage/integration-react@1.2.13-next.0
|
|
42
|
+
- @backstage/plugin-scaffolder-common@1.7.4-next.0
|
|
43
|
+
- @backstage/core-components@0.18.4-next.0
|
|
44
|
+
- @backstage/plugin-permission-react@0.4.39-next.0
|
|
45
|
+
- @backstage/catalog-client@1.12.1
|
|
46
|
+
- @backstage/catalog-model@1.7.6
|
|
47
|
+
- @backstage/errors@1.2.7
|
|
48
|
+
- @backstage/types@1.2.2
|
|
49
|
+
- @backstage/plugin-catalog-common@1.1.7
|
|
50
|
+
- @backstage/plugin-techdocs-common@0.1.1
|
|
51
|
+
|
|
3
52
|
## 1.34.3
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
3
2
|
import { PageBlueprint, createExtensionInput, NavItemBlueprint, ApiBlueprint, identityApiRef, fetchApiRef, discoveryApiRef } from '@backstage/frontend-plugin-api';
|
|
4
3
|
import { rootRouteRef } from '../routes.esm.js';
|
|
5
4
|
import CreateComponentIcon from '@material-ui/icons/AddCircleOutline';
|
|
@@ -19,19 +18,15 @@ const scaffolderPage = PageBlueprint.makeWithOverrides({
|
|
|
19
18
|
(i) => i.get(FormFieldBlueprint.dataRefs.formFieldLoader)
|
|
20
19
|
);
|
|
21
20
|
return originalFactory({
|
|
22
|
-
routeRef:
|
|
21
|
+
routeRef: rootRouteRef,
|
|
23
22
|
path: "/create",
|
|
24
|
-
loader: () => import('../components/Router/Router.esm.js').then(
|
|
25
|
-
(m) => compatWrapper(
|
|
26
|
-
/* @__PURE__ */ jsx(m.InternalRouter, { formFieldLoaders })
|
|
27
|
-
)
|
|
28
|
-
)
|
|
23
|
+
loader: () => import('../components/Router/Router.esm.js').then((m) => /* @__PURE__ */ jsx(m.InternalRouter, { formFieldLoaders }))
|
|
29
24
|
});
|
|
30
25
|
}
|
|
31
26
|
});
|
|
32
27
|
const scaffolderNavItem = NavItemBlueprint.make({
|
|
33
28
|
params: {
|
|
34
|
-
routeRef:
|
|
29
|
+
routeRef: rootRouteRef,
|
|
35
30
|
title: "Create...",
|
|
36
31
|
icon: CreateComponentIcon
|
|
37
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.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 {\n
|
|
1
|
+
{"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.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 {\n ApiBlueprint,\n createExtensionInput,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n NavItemBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from '../routes';\nimport CreateComponentIcon from '@material-ui/icons/AddCircleOutline';\nimport { FormFieldBlueprint } from '@backstage/plugin-scaffolder-react/alpha';\nimport { scmIntegrationsApiRef } from '@backstage/integration-react';\nimport { scaffolderApiRef } from '@backstage/plugin-scaffolder-react';\nimport { ScaffolderClient } from '../api';\n\nexport const scaffolderPage = PageBlueprint.makeWithOverrides({\n inputs: {\n formFields: createExtensionInput([\n FormFieldBlueprint.dataRefs.formFieldLoader,\n ]),\n },\n factory(originalFactory, { inputs }) {\n const formFieldLoaders = inputs.formFields.map(i =>\n i.get(FormFieldBlueprint.dataRefs.formFieldLoader),\n );\n return originalFactory({\n routeRef: rootRouteRef,\n path: '/create',\n loader: () =>\n import('../components/Router/Router').then(m => (\n <m.InternalRouter formFieldLoaders={formFieldLoaders} />\n )),\n });\n },\n});\n\nexport const scaffolderNavItem = NavItemBlueprint.make({\n params: {\n routeRef: rootRouteRef,\n title: 'Create...',\n icon: CreateComponentIcon,\n },\n});\n\nexport const repoUrlPickerFormField = FormFieldBlueprint.make({\n name: 'repo-url-picker',\n params: {\n field: () => import('./fields/RepoUrlPicker').then(m => m.RepoUrlPicker),\n },\n});\n\nexport const entityNamePickerFormField = FormFieldBlueprint.make({\n name: 'entity-name-picker',\n params: {\n field: () =>\n import('./fields/EntityNamePicker').then(m => m.EntityNamePicker),\n },\n});\n\nexport const entityPickerFormField = FormFieldBlueprint.make({\n name: 'entity-picker',\n params: {\n field: () => import('./fields/EntityPicker').then(m => m.EntityPicker),\n },\n});\n\nexport const ownerPickerFormField = FormFieldBlueprint.make({\n name: 'owner-picker',\n params: {\n field: () => import('./fields/OwnerPicker').then(m => m.OwnerPicker),\n },\n});\n\nexport const entityTagsPickerFormField = FormFieldBlueprint.make({\n name: 'entity-tags-picker',\n params: {\n field: () =>\n import('./fields/EntityTagsPicker').then(m => m.EntityTagsPicker),\n },\n});\n\nexport const multiEntityPickerFormField = FormFieldBlueprint.make({\n name: 'multi-entity-picker',\n params: {\n field: () =>\n import('./fields/MultiEntityPicker').then(m => m.MultiEntityPicker),\n },\n});\n\nexport const myGroupsPickerFormField = FormFieldBlueprint.make({\n name: 'my-groups-picker',\n params: {\n field: () => import('./fields/MyGroupsPicker').then(m => m.MyGroupsPicker),\n },\n});\n\nexport const ownedEntityPickerFormField = FormFieldBlueprint.make({\n name: 'owned-entity-picker',\n params: {\n field: () =>\n import('./fields/OwnedEntityPicker').then(m => m.OwnedEntityPicker),\n },\n});\n\nexport const repoBranchPickerFormField = FormFieldBlueprint.make({\n name: 'repo-branch-picker',\n params: {\n field: () =>\n import('./fields/RepoBranchPicker').then(m => m.RepoBranchPicker),\n },\n});\n\nexport const scaffolderApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\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"],"names":[],"mappings":"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"}
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
1
|
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
2
|
import { viewTechDocRouteRef, registerComponentRouteRef, templatingExtensionsRouteRef, editRouteRef, scaffolderListTaskRouteRef, actionsRouteRef, scaffolderTaskRouteRef, selectedTemplateRouteRef, rootRouteRef } from '../routes.esm.js';
|
|
4
3
|
import { scaffolderApi, scaffolderPage, scaffolderNavItem, repoUrlPickerFormField, entityNamePickerFormField, entityPickerFormField, ownerPickerFormField, entityTagsPickerFormField, multiEntityPickerFormField, myGroupsPickerFormField, ownedEntityPickerFormField, repoBranchPickerFormField } from './extensions.esm.js';
|
|
@@ -19,7 +18,7 @@ const scaffolderEntityIconLink = EntityIconLinkBlueprint.make({
|
|
|
19
18
|
var plugin = createFrontendPlugin({
|
|
20
19
|
pluginId: "scaffolder",
|
|
21
20
|
info: { packageJson: () => import('../plugins/scaffolder/package.json.esm.js') },
|
|
22
|
-
routes:
|
|
21
|
+
routes: {
|
|
23
22
|
root: rootRouteRef,
|
|
24
23
|
selectedTemplate: selectedTemplateRouteRef,
|
|
25
24
|
ongoingTask: scaffolderTaskRouteRef,
|
|
@@ -27,11 +26,11 @@ var plugin = createFrontendPlugin({
|
|
|
27
26
|
listTasks: scaffolderListTaskRouteRef,
|
|
28
27
|
edit: editRouteRef,
|
|
29
28
|
templatingExtensions: templatingExtensionsRouteRef
|
|
30
|
-
}
|
|
31
|
-
externalRoutes:
|
|
29
|
+
},
|
|
30
|
+
externalRoutes: {
|
|
32
31
|
registerComponent: registerComponentRouteRef,
|
|
33
32
|
viewTechDoc: viewTechDocRouteRef
|
|
34
|
-
}
|
|
33
|
+
},
|
|
35
34
|
extensions: [
|
|
36
35
|
scaffolderApi,
|
|
37
36
|
scaffolderPage,
|
|
@@ -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 {
|
|
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 repoUrlPickerFormField,\n scaffolderApi,\n scaffolderNavItem,\n scaffolderPage,\n} from './extensions';\nimport { isTemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';\nimport { formFieldsApi } from '@backstage/plugin-scaffolder-react/alpha';\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 ],\n});\n"],"names":[],"mappings":";;;;;;;;;;AAiDA,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,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;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { ComponentType } from 'react';
|
|
|
3
3
|
import { TemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';
|
|
4
4
|
import { TemplateGroupFilter, FieldExtensionOptions, ReviewStepProps, LayoutOptions, FormProps as FormProps$1 } from '@backstage/plugin-scaffolder-react';
|
|
5
5
|
import { FormProps as FormProps$2 } from '@rjsf/core';
|
|
6
|
-
import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
|
|
7
6
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
8
7
|
import * as _backstage_plugin_scaffolder_react_alpha from '@backstage/plugin-scaffolder-react/alpha';
|
|
9
8
|
import { ScaffolderFormDecorator } from '@backstage/plugin-scaffolder-react/alpha';
|
|
@@ -76,7 +75,7 @@ type TemplateWizardPageProps = {
|
|
|
76
75
|
type FormProps = Pick<FormProps$2, 'transformErrors' | 'noHtml5Validate'>;
|
|
77
76
|
|
|
78
77
|
/** @alpha */
|
|
79
|
-
declare const scaffolderTranslationRef:
|
|
78
|
+
declare const scaffolderTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"scaffolder", {
|
|
80
79
|
readonly "fields.entityNamePicker.title": "Name";
|
|
81
80
|
readonly "fields.entityNamePicker.description": "Unique name of the component";
|
|
82
81
|
readonly "fields.entityPicker.title": "Entity";
|
|
@@ -290,20 +289,20 @@ declare const formDecoratorsApi: _backstage_frontend_plugin_api.OverridableExten
|
|
|
290
289
|
|
|
291
290
|
/** @alpha */
|
|
292
291
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
293
|
-
root:
|
|
294
|
-
selectedTemplate:
|
|
295
|
-
ongoingTask:
|
|
296
|
-
actions:
|
|
297
|
-
listTasks:
|
|
298
|
-
edit:
|
|
299
|
-
templatingExtensions:
|
|
292
|
+
root: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
293
|
+
selectedTemplate: _backstage_core_plugin_api.SubRouteRef<_backstage_core_plugin_api.PathParams<"/templates/:namespace/:templateName">>;
|
|
294
|
+
ongoingTask: _backstage_core_plugin_api.SubRouteRef<_backstage_core_plugin_api.PathParams<"/tasks/:taskId">>;
|
|
295
|
+
actions: _backstage_core_plugin_api.SubRouteRef<undefined>;
|
|
296
|
+
listTasks: _backstage_core_plugin_api.SubRouteRef<undefined>;
|
|
297
|
+
edit: _backstage_core_plugin_api.SubRouteRef<undefined>;
|
|
298
|
+
templatingExtensions: _backstage_core_plugin_api.SubRouteRef<undefined>;
|
|
300
299
|
}, {
|
|
301
|
-
registerComponent:
|
|
302
|
-
viewTechDoc:
|
|
300
|
+
registerComponent: _backstage_core_plugin_api.ExternalRouteRef<undefined, true>;
|
|
301
|
+
viewTechDoc: _backstage_core_plugin_api.ExternalRouteRef<{
|
|
303
302
|
name: string;
|
|
304
303
|
kind: string;
|
|
305
304
|
namespace: string;
|
|
306
|
-
}>;
|
|
305
|
+
}, true>;
|
|
307
306
|
}, {
|
|
308
307
|
"api:scaffolder": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
309
308
|
kind: "api";
|
|
@@ -373,13 +372,13 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
373
372
|
configInput: {};
|
|
374
373
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
375
374
|
title: string;
|
|
376
|
-
icon:
|
|
375
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
377
376
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
378
377
|
}, "core.nav-item.target", {}>;
|
|
379
378
|
inputs: {};
|
|
380
379
|
params: {
|
|
381
380
|
title: string;
|
|
382
|
-
icon:
|
|
381
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
383
382
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
384
383
|
};
|
|
385
384
|
}>;
|
|
@@ -509,4 +508,5 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
509
508
|
}>;
|
|
510
509
|
}>;
|
|
511
510
|
|
|
512
|
-
export { DefaultScaffolderFormDecoratorsApi,
|
|
511
|
+
export { DefaultScaffolderFormDecoratorsApi, _default as default, formDecoratorsApi, formDecoratorsApiRef, scaffolderTranslationRef };
|
|
512
|
+
export type { FormProps, ScaffolderCustomFieldExplorerClassKey, ScaffolderFormDecoratorsApi, ScaffolderTemplateEditorClassKey, ScaffolderTemplateFormPreviewerClassKey, TemplateListPageProps, TemplateWizardPageProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ComponentType, PropsWithChildren } from 'react';
|
|
5
5
|
import * as _backstage_plugin_scaffolder_react from '@backstage/plugin-scaffolder-react';
|
|
6
|
-
import { ReviewStepProps, ScaffolderTaskOutput as ScaffolderTaskOutput$1, TemplateGroupFilter, FormProps,
|
|
6
|
+
import { FieldSchema as FieldSchema$1, ReviewStepProps, ScaffolderTaskOutput as ScaffolderTaskOutput$1, TemplateGroupFilter, FormProps, createScaffolderFieldExtension as createScaffolderFieldExtension$1, ScaffolderUseTemplateSecrets as ScaffolderUseTemplateSecrets$1, CustomFieldExtensionSchema as CustomFieldExtensionSchema$1, CustomFieldValidator as CustomFieldValidator$1, FieldExtensionOptions as FieldExtensionOptions$1, FieldExtensionComponentProps as FieldExtensionComponentProps$1, FieldExtensionComponent as FieldExtensionComponent$1, createScaffolderLayout as createScaffolderLayout$1, LayoutTemplate as LayoutTemplate$1, LayoutOptions as LayoutOptions$1 } from '@backstage/plugin-scaffolder-react';
|
|
7
7
|
export { ReviewStepProps } from '@backstage/plugin-scaffolder-react';
|
|
8
|
-
import { TemplateListPageProps, TemplateWizardPageProps } from '@backstage/plugin-scaffolder/alpha';
|
|
9
8
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
10
9
|
import { ApiHolder } from '@backstage/core-plugin-api';
|
|
10
|
+
import { TemplateListPageProps, TemplateWizardPageProps } from '@backstage/plugin-scaffolder/alpha';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { FieldValidation } from '@rjsf/utils';
|
|
13
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* An API to interact with the scaffolder backend.
|
|
@@ -20,6 +21,161 @@ import { FieldValidation } from '@rjsf/utils';
|
|
|
20
21
|
declare class ScaffolderClient extends ScaffolderClient$1 {
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* @deprecated - import from {@link @backstage/plugin-scaffolder-react#FieldSchema} instead
|
|
27
|
+
*/
|
|
28
|
+
interface FieldSchema<T, P> extends FieldSchema$1<T, P> {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
* @deprecated use `makeFieldSchema` instead
|
|
33
|
+
* Utility function to convert zod return and UI options schemas to a
|
|
34
|
+
* CustomFieldExtensionSchema with FieldExtensionComponentProps type inference
|
|
35
|
+
*/
|
|
36
|
+
declare function makeFieldSchemaFromZod<TReturnSchema extends z.ZodType, TUiOptionsSchema extends z.ZodType = z.ZodType<any, any, {}>>(returnSchema: TReturnSchema, uiOptionsSchema?: TUiOptionsSchema): FieldSchema<TReturnSchema extends z.ZodType<any, any, infer IReturn> ? IReturn : never, TUiOptionsSchema extends z.ZodType<any, any, infer IUiOptions> ? IUiOptions : never>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
declare const EntityPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
42
|
+
defaultKind?: string | undefined;
|
|
43
|
+
defaultNamespace?: string | false | undefined;
|
|
44
|
+
catalogFilter?: Record<string, string | string[] | {
|
|
45
|
+
exists?: boolean | undefined;
|
|
46
|
+
}> | Record<string, string | string[] | {
|
|
47
|
+
exists?: boolean | undefined;
|
|
48
|
+
}>[] | undefined;
|
|
49
|
+
allowedKinds?: string[] | undefined;
|
|
50
|
+
allowArbitraryValues?: boolean | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* The input props that can be specified under `ui:options` for the
|
|
54
|
+
* `EntityPicker` field extension.
|
|
55
|
+
*
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
type EntityPickerUiOptions = NonNullable<(typeof EntityPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
declare const EntityTagsPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string[], {
|
|
64
|
+
helperText?: string | undefined;
|
|
65
|
+
showCounts?: boolean | undefined;
|
|
66
|
+
kinds?: string[] | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* The input props that can be specified under `ui:options` for the
|
|
70
|
+
* `EntityTagsPicker` field extension.
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
type EntityTagsPickerUiOptions = NonNullable<(typeof EntityTagsPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Field schema for the MyGroupsPicker.
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
declare const MyGroupsPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, any>;
|
|
80
|
+
/**
|
|
81
|
+
* UI options for the MyGroupsPicker.
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
type MyGroupsPickerUiOptions = NonNullable<(typeof MyGroupsPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
85
|
+
/**
|
|
86
|
+
* Schema for the MyGroupsPicker.
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
declare const MyGroupsPickerSchema: _backstage_plugin_scaffolder_react.CustomFieldExtensionSchema;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
declare const OwnedEntityPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
95
|
+
defaultKind?: string | undefined;
|
|
96
|
+
defaultNamespace?: string | false | undefined;
|
|
97
|
+
catalogFilter?: Record<string, string | string[] | {
|
|
98
|
+
exists?: boolean | undefined;
|
|
99
|
+
}> | Record<string, string | string[] | {
|
|
100
|
+
exists?: boolean | undefined;
|
|
101
|
+
}>[] | undefined;
|
|
102
|
+
allowedKinds?: string[] | undefined;
|
|
103
|
+
allowArbitraryValues?: boolean | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* The input props that can be specified under `ui:options` for the
|
|
107
|
+
* `OwnedEntityPicker` field extension.
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
type OwnedEntityPickerUiOptions = NonNullable<(typeof OwnedEntityPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
declare const OwnerPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
116
|
+
defaultNamespace?: string | false | undefined;
|
|
117
|
+
catalogFilter?: Record<string, string | string[] | {
|
|
118
|
+
exists?: boolean | undefined;
|
|
119
|
+
}> | Record<string, string | string[] | {
|
|
120
|
+
exists?: boolean | undefined;
|
|
121
|
+
}>[] | undefined;
|
|
122
|
+
allowedKinds?: string[] | undefined;
|
|
123
|
+
allowArbitraryValues?: boolean | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* The input props that can be specified under `ui:options` for the
|
|
127
|
+
* `OwnerPicker` field extension.
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
type OwnerPickerUiOptions = NonNullable<(typeof OwnerPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
declare const RepoUrlPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
136
|
+
allowedOrganizations?: string[] | undefined;
|
|
137
|
+
allowedOwners?: string[] | undefined;
|
|
138
|
+
allowedProjects?: string[] | undefined;
|
|
139
|
+
allowedRepos?: string[] | undefined;
|
|
140
|
+
allowedHosts?: string[] | undefined;
|
|
141
|
+
requestUserCredentials?: {
|
|
142
|
+
secretsKey: string;
|
|
143
|
+
additionalScopes?: {
|
|
144
|
+
azure?: string[] | undefined;
|
|
145
|
+
github?: string[] | undefined;
|
|
146
|
+
gitlab?: string[] | undefined;
|
|
147
|
+
bitbucket?: string[] | undefined;
|
|
148
|
+
gerrit?: string[] | undefined;
|
|
149
|
+
gitea?: string[] | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* The input props that can be specified under `ui:options` for the
|
|
155
|
+
* `RepoUrlPicker` field extension.
|
|
156
|
+
*
|
|
157
|
+
* @public
|
|
158
|
+
* @deprecated this will be removed as it's no longer used
|
|
159
|
+
*/
|
|
160
|
+
type RepoUrlPickerUiOptions = NonNullable<(typeof RepoUrlPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The validation function for the `repoUrl` that is returned from the
|
|
164
|
+
* field extension. Ensures that you have all the required fields filled for
|
|
165
|
+
* the different providers that exist.
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
declare const repoPickerValidation: (value: string, validation: FieldValidation, context: {
|
|
169
|
+
apiHolder: ApiHolder;
|
|
170
|
+
}) => void;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The component to select the `type` of `Template` that you will see in the table.
|
|
174
|
+
*
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
declare const TemplateTypePicker: () => react_jsx_runtime.JSX.Element | null;
|
|
178
|
+
|
|
23
179
|
/**
|
|
24
180
|
* The Props for the Scaffolder Router
|
|
25
181
|
*
|
|
@@ -61,6 +217,15 @@ type RouterProps = {
|
|
|
61
217
|
};
|
|
62
218
|
};
|
|
63
219
|
|
|
220
|
+
/**
|
|
221
|
+
* @public
|
|
222
|
+
*/
|
|
223
|
+
declare const OngoingTask: (props: {
|
|
224
|
+
TemplateOutputsComponent?: ComponentType<{
|
|
225
|
+
output?: ScaffolderTaskOutput$1;
|
|
226
|
+
}>;
|
|
227
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
228
|
+
|
|
64
229
|
/**
|
|
65
230
|
* The main plugin export for the scaffolder.
|
|
66
231
|
* @public
|
|
@@ -216,170 +381,6 @@ declare const RepoBranchPickerFieldExtension: _backstage_plugin_scaffolder_react
|
|
|
216
381
|
} | undefined;
|
|
217
382
|
}>;
|
|
218
383
|
|
|
219
|
-
/**
|
|
220
|
-
* @public
|
|
221
|
-
* @deprecated - import from {@link @backstage/plugin-scaffolder-react#FieldSchema} instead
|
|
222
|
-
*/
|
|
223
|
-
interface FieldSchema<T, P> extends FieldSchema$1<T, P> {
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* @public
|
|
227
|
-
* @deprecated use `makeFieldSchema` instead
|
|
228
|
-
* Utility function to convert zod return and UI options schemas to a
|
|
229
|
-
* CustomFieldExtensionSchema with FieldExtensionComponentProps type inference
|
|
230
|
-
*/
|
|
231
|
-
declare function makeFieldSchemaFromZod<TReturnSchema extends z.ZodType, TUiOptionsSchema extends z.ZodType = z.ZodType<any, any, {}>>(returnSchema: TReturnSchema, uiOptionsSchema?: TUiOptionsSchema): FieldSchema<TReturnSchema extends z.ZodType<any, any, infer IReturn> ? IReturn : never, TUiOptionsSchema extends z.ZodType<any, any, infer IUiOptions> ? IUiOptions : never>;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @public
|
|
235
|
-
*/
|
|
236
|
-
declare const EntityPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
237
|
-
defaultKind?: string | undefined;
|
|
238
|
-
defaultNamespace?: string | false | undefined;
|
|
239
|
-
catalogFilter?: Record<string, string | string[] | {
|
|
240
|
-
exists?: boolean | undefined;
|
|
241
|
-
}> | Record<string, string | string[] | {
|
|
242
|
-
exists?: boolean | undefined;
|
|
243
|
-
}>[] | undefined;
|
|
244
|
-
allowedKinds?: string[] | undefined;
|
|
245
|
-
allowArbitraryValues?: boolean | undefined;
|
|
246
|
-
}>;
|
|
247
|
-
/**
|
|
248
|
-
* The input props that can be specified under `ui:options` for the
|
|
249
|
-
* `EntityPicker` field extension.
|
|
250
|
-
*
|
|
251
|
-
* @public
|
|
252
|
-
*/
|
|
253
|
-
type EntityPickerUiOptions = NonNullable<(typeof EntityPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @public
|
|
257
|
-
*/
|
|
258
|
-
declare const EntityTagsPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string[], {
|
|
259
|
-
helperText?: string | undefined;
|
|
260
|
-
showCounts?: boolean | undefined;
|
|
261
|
-
kinds?: string[] | undefined;
|
|
262
|
-
}>;
|
|
263
|
-
/**
|
|
264
|
-
* The input props that can be specified under `ui:options` for the
|
|
265
|
-
* `EntityTagsPicker` field extension.
|
|
266
|
-
* @public
|
|
267
|
-
*/
|
|
268
|
-
type EntityTagsPickerUiOptions = NonNullable<(typeof EntityTagsPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Field schema for the MyGroupsPicker.
|
|
272
|
-
* @public
|
|
273
|
-
*/
|
|
274
|
-
declare const MyGroupsPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, any>;
|
|
275
|
-
/**
|
|
276
|
-
* UI options for the MyGroupsPicker.
|
|
277
|
-
* @public
|
|
278
|
-
*/
|
|
279
|
-
type MyGroupsPickerUiOptions = NonNullable<(typeof MyGroupsPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
280
|
-
/**
|
|
281
|
-
* Schema for the MyGroupsPicker.
|
|
282
|
-
* @public
|
|
283
|
-
*/
|
|
284
|
-
declare const MyGroupsPickerSchema: _backstage_plugin_scaffolder_react.CustomFieldExtensionSchema;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @public
|
|
288
|
-
*/
|
|
289
|
-
declare const OwnedEntityPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
290
|
-
defaultKind?: string | undefined;
|
|
291
|
-
defaultNamespace?: string | false | undefined;
|
|
292
|
-
catalogFilter?: Record<string, string | string[] | {
|
|
293
|
-
exists?: boolean | undefined;
|
|
294
|
-
}> | Record<string, string | string[] | {
|
|
295
|
-
exists?: boolean | undefined;
|
|
296
|
-
}>[] | undefined;
|
|
297
|
-
allowedKinds?: string[] | undefined;
|
|
298
|
-
allowArbitraryValues?: boolean | undefined;
|
|
299
|
-
}>;
|
|
300
|
-
/**
|
|
301
|
-
* The input props that can be specified under `ui:options` for the
|
|
302
|
-
* `OwnedEntityPicker` field extension.
|
|
303
|
-
* @public
|
|
304
|
-
*/
|
|
305
|
-
type OwnedEntityPickerUiOptions = NonNullable<(typeof OwnedEntityPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* @public
|
|
309
|
-
*/
|
|
310
|
-
declare const OwnerPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
311
|
-
defaultNamespace?: string | false | undefined;
|
|
312
|
-
catalogFilter?: Record<string, string | string[] | {
|
|
313
|
-
exists?: boolean | undefined;
|
|
314
|
-
}> | Record<string, string | string[] | {
|
|
315
|
-
exists?: boolean | undefined;
|
|
316
|
-
}>[] | undefined;
|
|
317
|
-
allowedKinds?: string[] | undefined;
|
|
318
|
-
allowArbitraryValues?: boolean | undefined;
|
|
319
|
-
}>;
|
|
320
|
-
/**
|
|
321
|
-
* The input props that can be specified under `ui:options` for the
|
|
322
|
-
* `OwnerPicker` field extension.
|
|
323
|
-
* @public
|
|
324
|
-
*/
|
|
325
|
-
type OwnerPickerUiOptions = NonNullable<(typeof OwnerPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* @public
|
|
329
|
-
*/
|
|
330
|
-
declare const RepoUrlPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
331
|
-
allowedOrganizations?: string[] | undefined;
|
|
332
|
-
allowedOwners?: string[] | undefined;
|
|
333
|
-
allowedProjects?: string[] | undefined;
|
|
334
|
-
allowedRepos?: string[] | undefined;
|
|
335
|
-
allowedHosts?: string[] | undefined;
|
|
336
|
-
requestUserCredentials?: {
|
|
337
|
-
secretsKey: string;
|
|
338
|
-
additionalScopes?: {
|
|
339
|
-
azure?: string[] | undefined;
|
|
340
|
-
github?: string[] | undefined;
|
|
341
|
-
gitlab?: string[] | undefined;
|
|
342
|
-
bitbucket?: string[] | undefined;
|
|
343
|
-
gerrit?: string[] | undefined;
|
|
344
|
-
gitea?: string[] | undefined;
|
|
345
|
-
} | undefined;
|
|
346
|
-
} | undefined;
|
|
347
|
-
}>;
|
|
348
|
-
/**
|
|
349
|
-
* The input props that can be specified under `ui:options` for the
|
|
350
|
-
* `RepoUrlPicker` field extension.
|
|
351
|
-
*
|
|
352
|
-
* @public
|
|
353
|
-
* @deprecated this will be removed as it's no longer used
|
|
354
|
-
*/
|
|
355
|
-
type RepoUrlPickerUiOptions = NonNullable<(typeof RepoUrlPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* The validation function for the `repoUrl` that is returned from the
|
|
359
|
-
* field extension. Ensures that you have all the required fields filled for
|
|
360
|
-
* the different providers that exist.
|
|
361
|
-
* @public
|
|
362
|
-
*/
|
|
363
|
-
declare const repoPickerValidation: (value: string, validation: FieldValidation, context: {
|
|
364
|
-
apiHolder: ApiHolder;
|
|
365
|
-
}) => void;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* The component to select the `type` of `Template` that you will see in the table.
|
|
369
|
-
*
|
|
370
|
-
* @public
|
|
371
|
-
*/
|
|
372
|
-
declare const TemplateTypePicker: () => react_jsx_runtime.JSX.Element | null;
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* @public
|
|
376
|
-
*/
|
|
377
|
-
declare const OngoingTask: (props: {
|
|
378
|
-
TemplateOutputsComponent?: ComponentType<{
|
|
379
|
-
output?: ScaffolderTaskOutput$1;
|
|
380
|
-
}>;
|
|
381
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
382
|
-
|
|
383
384
|
/**
|
|
384
385
|
* @public
|
|
385
386
|
* @deprecated use import from `{@link @backstage/plugin-scaffolder#scaffolderPlugin}.routes.root` instead.
|
|
@@ -406,7 +407,7 @@ declare const useTemplateSecrets: () => ScaffolderUseTemplateSecrets$1;
|
|
|
406
407
|
* @public
|
|
407
408
|
* @deprecated use import from {@link @backstage/plugin-scaffolder-react#scaffolderApiRef} instead as this has now been moved.
|
|
408
409
|
*/
|
|
409
|
-
declare const scaffolderApiRef:
|
|
410
|
+
declare const scaffolderApiRef: _backstage_frontend_plugin_api.ApiRef<ScaffolderApi$1>;
|
|
410
411
|
/**
|
|
411
412
|
* @public
|
|
412
413
|
* @deprecated use import from {@link @backstage/plugin-scaffolder-common#ScaffolderApi} instead as this has now been moved.
|
|
@@ -543,4 +544,5 @@ type TaskPageProps = {
|
|
|
543
544
|
loadingText?: string;
|
|
544
545
|
};
|
|
545
546
|
|
|
546
|
-
export {
|
|
547
|
+
export { EntityNamePickerFieldExtension, EntityPickerFieldExtension, EntityPickerFieldSchema, EntityTagsPickerFieldExtension, EntityTagsPickerFieldSchema, MultiEntityPickerFieldExtension, MyGroupsPickerFieldExtension, MyGroupsPickerFieldSchema, MyGroupsPickerSchema, OwnedEntityPickerFieldExtension, OwnedEntityPickerFieldSchema, OwnerPickerFieldExtension, OwnerPickerFieldSchema, RepoBranchPickerFieldExtension, RepoUrlPickerFieldExtension, RepoUrlPickerFieldSchema, ScaffolderClient, ScaffolderFieldExtensions, ScaffolderLayouts, ScaffolderPage, OngoingTask as TaskPage, TemplateTypePicker, createScaffolderFieldExtension, createScaffolderLayout, makeFieldSchemaFromZod, repoPickerValidation, rootRouteRef, scaffolderApiRef, scaffolderPlugin, useTemplateSecrets };
|
|
548
|
+
export type { CustomFieldExtensionSchema, CustomFieldValidator, EntityPickerUiOptions, EntityTagsPickerUiOptions, FieldExtensionComponent, FieldExtensionComponentProps, FieldExtensionOptions, FieldSchema, LayoutOptions, LayoutTemplate, ListActionsResponse, LogEvent, MyGroupsPickerUiOptions, OwnedEntityPickerUiOptions, OwnerPickerUiOptions, RepoUrlPickerUiOptions, RouterProps, ScaffolderApi, ScaffolderDryRunOptions, ScaffolderDryRunResponse, ScaffolderGetIntegrationsListOptions, ScaffolderGetIntegrationsListResponse, ScaffolderOutputlink, ScaffolderScaffoldOptions, ScaffolderScaffoldResponse, ScaffolderStreamLogsOptions, ScaffolderTask, ScaffolderTaskOutput, ScaffolderTaskStatus, ScaffolderUseTemplateSecrets, TaskPageProps, TemplateParameterSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-scaffolder";
|
|
2
|
-
var version = "1.34.
|
|
2
|
+
var version = "1.34.4-next.1";
|
|
3
3
|
var description = "The Backstage plugin that helps you create new things";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -27,7 +27,7 @@ var repository = {
|
|
|
27
27
|
};
|
|
28
28
|
var license = "Apache-2.0";
|
|
29
29
|
var sideEffects = false;
|
|
30
|
-
var exports = {
|
|
30
|
+
var exports$1 = {
|
|
31
31
|
".": "./src/index.ts",
|
|
32
32
|
"./alpha": "./src/alpha/index.ts",
|
|
33
33
|
"./package.json": "./package.json"
|
|
@@ -59,7 +59,6 @@ var scripts = {
|
|
|
59
59
|
var dependencies = {
|
|
60
60
|
"@backstage/catalog-client": "workspace:^",
|
|
61
61
|
"@backstage/catalog-model": "workspace:^",
|
|
62
|
-
"@backstage/core-compat-api": "workspace:^",
|
|
63
62
|
"@backstage/core-components": "workspace:^",
|
|
64
63
|
"@backstage/core-plugin-api": "workspace:^",
|
|
65
64
|
"@backstage/errors": "workspace:^",
|
|
@@ -81,10 +80,10 @@ var dependencies = {
|
|
|
81
80
|
"@material-ui/icons": "^4.9.1",
|
|
82
81
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
83
82
|
"@react-hookz/web": "^24.0.0",
|
|
84
|
-
"@rjsf/core": "5.
|
|
85
|
-
"@rjsf/material-ui": "5.
|
|
86
|
-
"@rjsf/utils": "5.
|
|
87
|
-
"@rjsf/validator-ajv8": "5.
|
|
83
|
+
"@rjsf/core": "5.24.13",
|
|
84
|
+
"@rjsf/material-ui": "5.24.13",
|
|
85
|
+
"@rjsf/utils": "5.24.13",
|
|
86
|
+
"@rjsf/validator-ajv8": "5.24.13",
|
|
88
87
|
"@uiw/react-codemirror": "^4.9.3",
|
|
89
88
|
classnames: "^2.2.6",
|
|
90
89
|
"git-url-parse": "^15.0.0",
|
|
@@ -148,7 +147,7 @@ var _package = {
|
|
|
148
147
|
repository: repository,
|
|
149
148
|
license: license,
|
|
150
149
|
sideEffects: sideEffects,
|
|
151
|
-
exports: exports,
|
|
150
|
+
exports: exports$1,
|
|
152
151
|
main: main,
|
|
153
152
|
types: types,
|
|
154
153
|
typesVersions: typesVersions,
|
|
@@ -160,5 +159,5 @@ var _package = {
|
|
|
160
159
|
peerDependenciesMeta: peerDependenciesMeta
|
|
161
160
|
};
|
|
162
161
|
|
|
163
|
-
export { backstage, _package as default, dependencies, description, devDependencies, exports, files, homepage, keywords, license, main, name, peerDependencies, peerDependenciesMeta, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
162
|
+
export { backstage, _package as default, dependencies, description, devDependencies, exports$1 as exports, files, homepage, keywords, license, main, name, peerDependencies, peerDependenciesMeta, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
164
163
|
//# sourceMappingURL=package.json.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.4-next.1",
|
|
4
4
|
"description": "The Backstage plugin that helps you create new things",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -70,23 +70,22 @@
|
|
|
70
70
|
"test": "backstage-cli package test"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@backstage/catalog-client": "
|
|
74
|
-
"@backstage/catalog-model": "
|
|
75
|
-
"@backstage/core-
|
|
76
|
-
"@backstage/core-
|
|
77
|
-
"@backstage/
|
|
78
|
-
"@backstage/
|
|
79
|
-
"@backstage/
|
|
80
|
-
"@backstage/integration": "
|
|
81
|
-
"@backstage/
|
|
82
|
-
"@backstage/plugin-catalog-
|
|
83
|
-
"@backstage/plugin-
|
|
84
|
-
"@backstage/plugin-
|
|
85
|
-
"@backstage/plugin-scaffolder-
|
|
86
|
-
"@backstage/plugin-
|
|
87
|
-
"@backstage/plugin-techdocs-
|
|
88
|
-
"@backstage/
|
|
89
|
-
"@backstage/types": "^1.2.2",
|
|
73
|
+
"@backstage/catalog-client": "1.12.1",
|
|
74
|
+
"@backstage/catalog-model": "1.7.6",
|
|
75
|
+
"@backstage/core-components": "0.18.4-next.2",
|
|
76
|
+
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
77
|
+
"@backstage/errors": "1.2.7",
|
|
78
|
+
"@backstage/frontend-plugin-api": "0.13.2-next.1",
|
|
79
|
+
"@backstage/integration": "1.18.3-next.1",
|
|
80
|
+
"@backstage/integration-react": "1.2.13-next.0",
|
|
81
|
+
"@backstage/plugin-catalog-common": "1.1.7",
|
|
82
|
+
"@backstage/plugin-catalog-react": "1.21.4-next.2",
|
|
83
|
+
"@backstage/plugin-permission-react": "0.4.39-next.0",
|
|
84
|
+
"@backstage/plugin-scaffolder-common": "1.7.4-next.0",
|
|
85
|
+
"@backstage/plugin-scaffolder-react": "1.19.4-next.2",
|
|
86
|
+
"@backstage/plugin-techdocs-common": "0.1.1",
|
|
87
|
+
"@backstage/plugin-techdocs-react": "1.3.6-next.0",
|
|
88
|
+
"@backstage/types": "1.2.2",
|
|
90
89
|
"@codemirror/language": "^6.0.0",
|
|
91
90
|
"@codemirror/legacy-modes": "^6.1.0",
|
|
92
91
|
"@codemirror/view": "^6.0.0",
|
|
@@ -94,10 +93,10 @@
|
|
|
94
93
|
"@material-ui/icons": "^4.9.1",
|
|
95
94
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
96
95
|
"@react-hookz/web": "^24.0.0",
|
|
97
|
-
"@rjsf/core": "5.
|
|
98
|
-
"@rjsf/material-ui": "5.
|
|
99
|
-
"@rjsf/utils": "5.
|
|
100
|
-
"@rjsf/validator-ajv8": "5.
|
|
96
|
+
"@rjsf/core": "5.24.13",
|
|
97
|
+
"@rjsf/material-ui": "5.24.13",
|
|
98
|
+
"@rjsf/utils": "5.24.13",
|
|
99
|
+
"@rjsf/validator-ajv8": "5.24.13",
|
|
101
100
|
"@uiw/react-codemirror": "^4.9.3",
|
|
102
101
|
"classnames": "^2.2.6",
|
|
103
102
|
"git-url-parse": "^15.0.0",
|
|
@@ -118,13 +117,13 @@
|
|
|
118
117
|
"zod-to-json-schema": "^3.20.4"
|
|
119
118
|
},
|
|
120
119
|
"devDependencies": {
|
|
121
|
-
"@backstage/cli": "
|
|
122
|
-
"@backstage/core-app-api": "
|
|
123
|
-
"@backstage/dev-utils": "
|
|
124
|
-
"@backstage/plugin-catalog": "
|
|
125
|
-
"@backstage/plugin-permission-common": "
|
|
126
|
-
"@backstage/plugin-techdocs": "
|
|
127
|
-
"@backstage/test-utils": "
|
|
120
|
+
"@backstage/cli": "0.35.0-next.2",
|
|
121
|
+
"@backstage/core-app-api": "1.19.3-next.1",
|
|
122
|
+
"@backstage/dev-utils": "1.1.18-next.1",
|
|
123
|
+
"@backstage/plugin-catalog": "1.32.1-next.1",
|
|
124
|
+
"@backstage/plugin-permission-common": "0.9.3",
|
|
125
|
+
"@backstage/plugin-techdocs": "1.16.1-next.2",
|
|
126
|
+
"@backstage/test-utils": "1.7.14-next.0",
|
|
128
127
|
"@testing-library/dom": "^10.0.0",
|
|
129
128
|
"@testing-library/jest-dom": "^6.0.0",
|
|
130
129
|
"@testing-library/react": "^16.0.0",
|