@backstage/plugin-scaffolder 1.35.3-next.2 → 1.35.4

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,43 @@
1
1
  # @backstage/plugin-scaffolder
2
2
 
3
+ ## 1.35.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f7ebc0e: Added back the `formFieldsApiRef` and `ScaffolderFormFieldsApi` alpha exports that were unintentionally removed.
8
+
9
+ ## 1.35.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 7455dae: Use node prefix on native imports
14
+ - 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.
15
+ - 7feb83b: Adjusted to use the new `@backstage/filter-predicates` types for predicate expressions.
16
+ - 018ca87: Added `title` and `icon` to the plugin definition for the new frontend system.
17
+ - 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.
18
+
19
+ As part of this change, the following alpha exports were removed:
20
+
21
+ - `formFieldsApiRef`
22
+ - `ScaffolderFormFieldsApi`
23
+
24
+ - b9d90a7: Added `@backstage/frontend-test-utils` as a dev dependency for mock API usage in tests.
25
+ - a7e0d50: Updated `react-router-dom` peer dependency to `^6.30.2` and explicitly disabled v7 future flags to suppress deprecation warnings.
26
+ - 69d880e: Bump to latest zod to ensure it has the latest features
27
+ - Updated dependencies
28
+ - @backstage/plugin-catalog-react@2.0.0
29
+ - @backstage/integration@1.20.0
30
+ - @backstage/core-components@0.18.7
31
+ - @backstage/frontend-plugin-api@0.14.0
32
+ - @backstage/catalog-client@1.13.0
33
+ - @backstage/plugin-scaffolder-react@1.19.7
34
+ - @backstage/core-plugin-api@1.12.3
35
+ - @backstage/plugin-techdocs-react@1.3.8
36
+ - @backstage/integration-react@1.2.15
37
+ - @backstage/plugin-permission-react@0.4.40
38
+ - @backstage/plugin-catalog-common@1.1.8
39
+ - @backstage/plugin-scaffolder-common@1.7.6
40
+
3
41
  ## 1.35.3-next.2
4
42
 
5
43
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"formFieldsApi.esm.js","sources":["../../src/alpha/formFieldsApi.ts"],"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 {\n ApiBlueprint,\n createApiRef,\n createExtensionInput,\n} from '@backstage/frontend-plugin-api';\nimport { FormFieldBlueprint } from '@backstage/plugin-scaffolder-react/alpha';\nimport { OpaqueFormField } from '@internal/scaffolder';\n\ninterface FormField {\n readonly $$type: '@backstage/scaffolder/FormField';\n}\n\ninterface ScaffolderFormFieldsApi {\n loadFormFields(): Promise<FormField[]>;\n}\n\nconst formFieldsApiRef = createApiRef<ScaffolderFormFieldsApi>({\n id: 'plugin.scaffolder.form-fields-loader',\n});\n\nexport const formFieldsApi = ApiBlueprint.makeWithOverrides({\n name: 'form-fields',\n inputs: {\n formFields: createExtensionInput([\n FormFieldBlueprint.dataRefs.formFieldLoader,\n ]),\n },\n factory(originalFactory, { inputs }) {\n const formFieldLoaders = inputs.formFields.map(e =>\n e.get(FormFieldBlueprint.dataRefs.formFieldLoader),\n );\n\n return originalFactory(defineParams =>\n defineParams({\n api: formFieldsApiRef,\n deps: {},\n factory: () => ({\n async loadFormFields() {\n const formFields = await Promise.all(\n formFieldLoaders.map(loader => loader()),\n );\n\n const internalFormFields = formFields.map(\n OpaqueFormField.toInternal,\n );\n\n return internalFormFields;\n },\n }),\n }),\n );\n },\n});\n\nexport { formFieldsApiRef };\n"],"names":[],"mappings":";;;;;AAgCA,MAAM,mBAAmB,YAAA,CAAsC;AAAA,EAC7D,EAAA,EAAI;AACN,CAAC;AAEM,MAAM,aAAA,GAAgB,aAAa,iBAAA,CAAkB;AAAA,EAC1D,IAAA,EAAM,aAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,YAAY,oBAAA,CAAqB;AAAA,MAC/B,mBAAmB,QAAA,CAAS;AAAA,KAC7B;AAAA,GACH;AAAA,EACA,OAAA,CAAQ,eAAA,EAAiB,EAAE,MAAA,EAAO,EAAG;AACnC,IAAA,MAAM,gBAAA,GAAmB,OAAO,UAAA,CAAW,GAAA;AAAA,MAAI,CAAA,CAAA,KAC7C,CAAA,CAAE,GAAA,CAAI,kBAAA,CAAmB,SAAS,eAAe;AAAA,KACnD;AAEA,IAAA,OAAO,eAAA;AAAA,MAAgB,kBACrB,YAAA,CAAa;AAAA,QACX,GAAA,EAAK,gBAAA;AAAA,QACL,MAAM,EAAC;AAAA,QACP,SAAS,OAAO;AAAA,UACd,MAAM,cAAA,GAAiB;AACrB,YAAA,MAAM,UAAA,GAAa,MAAM,OAAA,CAAQ,GAAA;AAAA,cAC/B,gBAAA,CAAiB,GAAA,CAAI,CAAA,MAAA,KAAU,MAAA,EAAQ;AAAA,aACzC;AAEA,YAAA,MAAM,qBAAqB,UAAA,CAAW,GAAA;AAAA,cACpC,eAAA,CAAgB;AAAA,aAClB;AAEA,YAAA,OAAO,kBAAA;AAAA,UACT;AAAA,SACF;AAAA,OACD;AAAA,KACH;AAAA,EACF;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"formFieldsApi.esm.js","sources":["../../src/alpha/formFieldsApi.ts"],"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 {\n ApiBlueprint,\n createApiRef,\n createExtensionInput,\n} from '@backstage/frontend-plugin-api';\nimport {\n FormFieldBlueprint,\n type FormField,\n} from '@backstage/plugin-scaffolder-react/alpha';\nimport { OpaqueFormField } from '@internal/scaffolder';\n\n/** @alpha */\nexport interface ScaffolderFormFieldsApi {\n loadFormFields(): Promise<FormField[]>;\n}\n\n/** @alpha */\nconst formFieldsApiRef = createApiRef<ScaffolderFormFieldsApi>({\n id: 'plugin.scaffolder.form-fields-loader',\n});\n\nexport const formFieldsApi = ApiBlueprint.makeWithOverrides({\n name: 'form-fields',\n inputs: {\n formFields: createExtensionInput([\n FormFieldBlueprint.dataRefs.formFieldLoader,\n ]),\n },\n factory(originalFactory, { inputs }) {\n const formFieldLoaders = inputs.formFields.map(e =>\n e.get(FormFieldBlueprint.dataRefs.formFieldLoader),\n );\n\n return originalFactory(defineParams =>\n defineParams({\n api: formFieldsApiRef,\n deps: {},\n factory: () => ({\n async loadFormFields() {\n const formFields = await Promise.all(\n formFieldLoaders.map(loader => loader()),\n );\n\n const internalFormFields = formFields.map(\n OpaqueFormField.toInternal,\n );\n\n return internalFormFields;\n },\n }),\n }),\n );\n },\n});\n\nexport { formFieldsApiRef };\n"],"names":[],"mappings":";;;;;AAiCA,MAAM,mBAAmB,YAAA,CAAsC;AAAA,EAC7D,EAAA,EAAI;AACN,CAAC;AAEM,MAAM,aAAA,GAAgB,aAAa,iBAAA,CAAkB;AAAA,EAC1D,IAAA,EAAM,aAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,YAAY,oBAAA,CAAqB;AAAA,MAC/B,mBAAmB,QAAA,CAAS;AAAA,KAC7B;AAAA,GACH;AAAA,EACA,OAAA,CAAQ,eAAA,EAAiB,EAAE,MAAA,EAAO,EAAG;AACnC,IAAA,MAAM,gBAAA,GAAmB,OAAO,UAAA,CAAW,GAAA;AAAA,MAAI,CAAA,CAAA,KAC7C,CAAA,CAAE,GAAA,CAAI,kBAAA,CAAmB,SAAS,eAAe;AAAA,KACnD;AAEA,IAAA,OAAO,eAAA;AAAA,MAAgB,kBACrB,YAAA,CAAa;AAAA,QACX,GAAA,EAAK,gBAAA;AAAA,QACL,MAAM,EAAC;AAAA,QACP,SAAS,OAAO;AAAA,UACd,MAAM,cAAA,GAAiB;AACrB,YAAA,MAAM,UAAA,GAAa,MAAM,OAAA,CAAQ,GAAA;AAAA,cAC/B,gBAAA,CAAiB,GAAA,CAAI,CAAA,MAAA,KAAU,MAAA,EAAQ;AAAA,aACzC;AAEA,YAAA,MAAM,qBAAqB,UAAA,CAAW,GAAA;AAAA,cACpC,eAAA,CAAgB;AAAA,aAClB;AAEA,YAAA,OAAO,kBAAA;AAAA,UACT;AAAA,SACF;AAAA,OACD;AAAA,KACH;AAAA,EACF;AACF,CAAC;;;;"}
@@ -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":";;;;;;;;;;AAkDA,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,yBAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
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
@@ -5,7 +5,7 @@ import { TemplateGroupFilter, FieldExtensionOptions, ReviewStepProps, LayoutOpti
5
5
  import { FormProps as FormProps$2 } from '@rjsf/core';
6
6
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
7
7
  import * as _backstage_plugin_scaffolder_react_alpha from '@backstage/plugin-scaffolder-react/alpha';
8
- import { ScaffolderFormDecorator } from '@backstage/plugin-scaffolder-react/alpha';
8
+ import { ScaffolderFormDecorator, FormField } from '@backstage/plugin-scaffolder-react/alpha';
9
9
  import * as _backstage_core_components from '@backstage/core-components';
10
10
  import * as _backstage_catalog_model from '@backstage/catalog-model';
11
11
  import * as _backstage_filter_predicates from '@backstage/filter-predicates';
@@ -290,6 +290,13 @@ declare const formDecoratorsApi: _backstage_frontend_plugin_api.OverridableExten
290
290
  params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
291
291
  }>;
292
292
 
293
+ /** @alpha */
294
+ interface ScaffolderFormFieldsApi {
295
+ loadFormFields(): Promise<FormField[]>;
296
+ }
297
+ /** @alpha */
298
+ declare const formFieldsApiRef: _backstage_frontend_plugin_api.ApiRef<ScaffolderFormFieldsApi>;
299
+
293
300
  /** @alpha */
294
301
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
295
302
  root: _backstage_core_plugin_api.RouteRef<undefined>;
@@ -390,14 +397,31 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
390
397
  "page:scaffolder": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
391
398
  config: {
392
399
  path: string | undefined;
400
+ title: string | undefined;
393
401
  };
394
402
  configInput: {
403
+ title?: string | undefined;
395
404
  path?: string | undefined;
396
405
  };
397
- output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
406
+ 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", {
407
+ optional: true;
408
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
409
+ optional: true;
410
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
398
411
  optional: true;
399
412
  }>;
400
413
  inputs: {
414
+ 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", {
415
+ optional: true;
416
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
417
+ optional: true;
418
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
419
+ optional: true;
420
+ }>, {
421
+ singleton: false;
422
+ optional: false;
423
+ internal: false;
424
+ }>;
401
425
  formFields: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>, {
402
426
  singleton: false;
403
427
  optional: false;
@@ -409,8 +433,11 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
409
433
  params: {
410
434
  defaultPath?: [Error: `Use the 'path' param instead`];
411
435
  path: string;
412
- loader: () => Promise<JSX.Element>;
436
+ title?: string;
437
+ icon?: _backstage_frontend_plugin_api.IconElement;
438
+ loader?: () => Promise<react.JSX.Element>;
413
439
  routeRef?: _backstage_frontend_plugin_api.RouteRef;
440
+ noHeader?: boolean;
414
441
  };
415
442
  }>;
416
443
  "scaffolder-form-field:scaffolder/entity-name-picker": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
@@ -525,5 +552,5 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
525
552
  }>;
526
553
  }>;
527
554
 
528
- export { DefaultScaffolderFormDecoratorsApi, _default as default, formDecoratorsApi, formDecoratorsApiRef, scaffolderTranslationRef };
529
- export type { FormProps, ScaffolderCustomFieldExplorerClassKey, ScaffolderFormDecoratorsApi, ScaffolderTemplateEditorClassKey, ScaffolderTemplateFormPreviewerClassKey, TemplateListPageProps, TemplateWizardPageProps };
555
+ export { DefaultScaffolderFormDecoratorsApi, _default as default, formDecoratorsApi, formDecoratorsApiRef, formFieldsApiRef, scaffolderTranslationRef };
556
+ export type { FormProps, ScaffolderCustomFieldExplorerClassKey, ScaffolderFormDecoratorsApi, ScaffolderFormFieldsApi, ScaffolderTemplateEditorClassKey, ScaffolderTemplateFormPreviewerClassKey, TemplateListPageProps, TemplateWizardPageProps };
package/dist/alpha.esm.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { scaffolderTranslationRef } from './translation.esm.js';
2
2
  export { formDecoratorsApiRef } from './alpha/api/ref.esm.js';
3
3
  export { DefaultScaffolderFormDecoratorsApi, formDecoratorsApi } from './alpha/api/FormDecoratorsApi.esm.js';
4
+ export { formFieldsApiRef } from './alpha/formFieldsApi.esm.js';
4
5
  export { default } from './alpha/plugin.esm.js';
5
6
  //# sourceMappingURL=alpha.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-scaffolder";
2
- var version = "1.35.3-next.2";
2
+ var version = "1.35.4";
3
3
  var description = "The Backstage plugin that helps you create new things";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder",
3
- "version": "1.35.3-next.2",
3
+ "version": "1.35.4",
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.12.2-next.0",
74
- "@backstage/catalog-model": "1.7.6",
75
- "@backstage/core-components": "0.18.7-next.2",
76
- "@backstage/core-plugin-api": "1.12.3-next.1",
77
- "@backstage/errors": "1.2.7",
78
- "@backstage/frontend-plugin-api": "0.14.0-next.2",
79
- "@backstage/integration": "1.20.0-next.2",
80
- "@backstage/integration-react": "1.2.15-next.2",
81
- "@backstage/plugin-catalog-common": "1.1.8-next.0",
82
- "@backstage/plugin-catalog-react": "2.0.0-next.2",
83
- "@backstage/plugin-permission-react": "0.4.40-next.1",
84
- "@backstage/plugin-scaffolder-common": "1.7.6-next.1",
85
- "@backstage/plugin-scaffolder-react": "1.19.7-next.2",
86
- "@backstage/plugin-techdocs-common": "0.1.1",
87
- "@backstage/plugin-techdocs-react": "1.3.8-next.1",
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.1",
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-next.2",
121
- "@backstage/core-app-api": "1.19.5-next.1",
122
- "@backstage/dev-utils": "1.1.20-next.2",
123
- "@backstage/frontend-test-utils": "0.5.0-next.2",
124
- "@backstage/plugin-catalog": "1.33.0-next.2",
125
- "@backstage/plugin-permission-common": "0.9.6-next.0",
126
- "@backstage/plugin-techdocs": "1.16.3-next.2",
127
- "@backstage/test-utils": "1.7.15-next.2",
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",