@backstage/plugin-scaffolder 1.9.0-next.3 → 1.9.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 CHANGED
@@ -1,5 +1,93 @@
1
1
  # @backstage/plugin-scaffolder
2
2
 
3
+ ## 1.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ddd1c3308d: Implement Custom Field Explorer to view and play around with available installed custom field extensions
8
+ - adb1b01e32: Adds the ability to supply a `transformErrors` function to the `Stepper` for `/next`
9
+ - 34a48cdc4f: The `RepoUrlPicker` field extension now has an `allowedProjects` option for narrowing the selection of Bitbucket URLs.
10
+
11
+ ### Patch Changes
12
+
13
+ - d4d07cf55e: Enabling the customization of the last step in the scaffolder template.
14
+
15
+ To override the content you have to do the next:
16
+
17
+ ```typescript jsx
18
+ <TemplatePage ReviewStepComponent={YourCustomComponent} />
19
+ ```
20
+
21
+ - ef803022f1: Initialize all `formData` in the `Stepper` in `/next`
22
+ - 9b1fadf6d8: Added `noHtml5Validate` prop to `FormProps` on `NextScaffolderPage`
23
+ - b05dcd5530: Move the `zod` dependency to a version that does not collide with other libraries
24
+ - 2e701b3796: Internal refactor to use `react-router-dom` rather than `react-router`.
25
+ - 9000952e87: Form data is now passed to validator functions in 'next' scaffolder, so it's now possible to perform validation for fields that depend on other field values. This is something that we discourage due to the coupling that it creates, but is sometimes still the most sensible solution.
26
+
27
+ ```typescript jsx
28
+ export const myCustomValidation = (
29
+ value: string,
30
+ validation: FieldValidation,
31
+ { apiHolder, formData }: { apiHolder: ApiHolder; formData: JsonObject },
32
+ ) => {
33
+ // validate
34
+ };
35
+ ```
36
+
37
+ - 5b10b2485a: Parse `formData` from `window.location.query` for `scaffolder/next`
38
+ - 57ad6553d0: Pass through `transformErrors` to `TemplateWizardPage`
39
+ - 3280711113: Updated dependency `msw` to `^0.49.0`.
40
+ - 19356df560: Updated dependency `zen-observable` to `^0.9.0`.
41
+ - c3fa90e184: Updated dependency `zen-observable` to `^0.10.0`.
42
+ - 5fb6d5e92e: Updated dependency `@react-hookz/web` to `^19.0.0`.
43
+ - 146378c146: Updated dependency `@react-hookz/web` to `^20.0.0`.
44
+ - 380f549b75: bump `@rjsf/*-v5` dependencies
45
+ - a63e2df559: fixed `headerOptions` not passed to `TemplatePage` component
46
+ - 9b606366bf: Bump `json-schema-library` to version `^7.3.9` which does not pull in the `gson-pointer` library
47
+ - db6310b6a0: Show input type array correctly on installed actions page.
48
+ - Updated dependencies
49
+ - @backstage/core-plugin-api@1.2.0
50
+ - @backstage/catalog-client@1.2.0
51
+ - @backstage/core-components@0.12.1
52
+ - @backstage/errors@1.1.4
53
+ - @backstage/plugin-catalog-react@1.2.2
54
+ - @backstage/plugin-permission-react@0.4.8
55
+ - @backstage/integration-react@1.1.7
56
+ - @backstage/integration@1.4.1
57
+ - @backstage/types@1.0.2
58
+ - @backstage/catalog-model@1.1.4
59
+ - @backstage/config@1.0.5
60
+ - @backstage/theme@0.2.16
61
+ - @backstage/plugin-catalog-common@1.0.9
62
+ - @backstage/plugin-scaffolder-common@1.2.3
63
+
64
+ ## 1.9.0-next.4
65
+
66
+ ### Minor Changes
67
+
68
+ - 34a48cdc4f: The `RepoUrlPicker` field extension now has an `allowedProjects` option for narrowing the selection of Bitbucket URLs.
69
+
70
+ ### Patch Changes
71
+
72
+ - b05dcd5530: Move the `zod` dependency to a version that does not collide with other libraries
73
+ - 2e701b3796: Internal refactor to use `react-router-dom` rather than `react-router`.
74
+ - db6310b6a0: Show input type array correctly on installed actions page.
75
+ - Updated dependencies
76
+ - @backstage/core-components@0.12.1-next.4
77
+ - @backstage/plugin-catalog-react@1.2.2-next.4
78
+ - @backstage/plugin-permission-react@0.4.8-next.3
79
+ - @backstage/catalog-client@1.2.0-next.1
80
+ - @backstage/catalog-model@1.1.4-next.1
81
+ - @backstage/config@1.0.5-next.1
82
+ - @backstage/core-plugin-api@1.2.0-next.2
83
+ - @backstage/errors@1.1.4-next.1
84
+ - @backstage/integration@1.4.1-next.1
85
+ - @backstage/integration-react@1.1.7-next.4
86
+ - @backstage/theme@0.2.16
87
+ - @backstage/types@1.0.2-next.1
88
+ - @backstage/plugin-catalog-common@1.0.9-next.3
89
+ - @backstage/plugin-scaffolder-common@1.2.3-next.1
90
+
3
91
  ## 1.9.0-next.3
4
92
 
5
93
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder",
3
- "version": "1.9.0-next.3",
3
+ "version": "1.9.0",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -1,9 +1,9 @@
1
1
  import React, { useState, useContext, useCallback, createContext, useEffect, useRef, useMemo, Component, Children, Fragment } from 'react';
2
- import { useNavigate, Navigate, useOutlet, Routes, Route } from 'react-router';
2
+ import { useNavigate, Navigate, useOutlet, Routes, Route } from 'react-router-dom';
3
3
  import { ItemCardHeader, MarkdownContent, Button, Link, ContentHeader, Progress, WarningPanel, Content, ItemCardGrid, Page, Header, CreateButton, SupportButton, StructuredMetadataTable, InfoCard, ErrorPage, ErrorPanel, LogViewer, StatusError, StatusOK, StatusPending, Lifecycle, EmptyState, Table as Table$1 } from '@backstage/core-components';
4
4
  import { useApp, useRouteRef, useApi, useRouteRefParams, useAnalytics, errorApiRef, featureFlagsApiRef, useApiHolder, AnalyticsContext, alertApiRef, useElementFilter } from '@backstage/core-plugin-api';
5
5
  import { getEntityRelations, getEntitySourceLocation, FavoriteEntity, EntityRefLinks, useEntityList, EntityListProvider, CatalogFilterLayout, EntitySearchBar, EntityKindPicker, UserListPicker, EntityTagPicker, catalogApiRef, humanizeEntityRef, EntityRefLink } from '@backstage/plugin-catalog-react';
6
- import { s as selectedTemplateRouteRef, v as viewTechDocRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, S as SecretsContext, c as scaffolderApiRef, d as scaffolderTaskRouteRef, f as rootRouteRef, g as TaskStatusStepper, h as TaskPageLinks, F as FIELD_EXTENSION_WRAPPER_KEY, i as FIELD_EXTENSION_KEY, L as LAYOUTS_WRAPPER_KEY, j as LAYOUTS_KEY, l as legacySelectedTemplateRouteRef, k as SecretsContextProvider, m as TaskPage } from './index-102258f6.esm.js';
6
+ import { s as selectedTemplateRouteRef, v as viewTechDocRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, S as SecretsContext, c as scaffolderApiRef, d as scaffolderTaskRouteRef, f as rootRouteRef, g as TaskStatusStepper, h as TaskPageLinks, F as FIELD_EXTENSION_WRAPPER_KEY, i as FIELD_EXTENSION_KEY, L as LAYOUTS_WRAPPER_KEY, j as LAYOUTS_KEY, l as legacySelectedTemplateRouteRef, k as SecretsContextProvider, m as TaskPage } from './index-8dc22fc0.esm.js';
7
7
  import { RELATION_OWNED_BY, parseEntityRef, stringifyEntityRef, DEFAULT_NAMESPACE } from '@backstage/catalog-model';
8
8
  import { makeStyles, useTheme, Card, CardMedia, CardContent, Box, Typography, Chip, CardActions, Tooltip, IconButton, Paper, Button as Button$1, Stepper, Step, StepLabel, StepContent, LinearProgress, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, FormControl, InputLabel, Select, MenuItem as MenuItem$1, CardHeader, Divider as Divider$1, List as List$2, ListItemIcon as ListItemIcon$1, ListItemText as ListItemText$1 } from '@material-ui/core';
9
9
  import { scmIntegrationsApiRef, ScmIntegrationIcon } from '@backstage/integration-react';
@@ -27,7 +27,7 @@ import useAsync from 'react-use/lib/useAsync';
27
27
  import { withTheme } from '@rjsf/core';
28
28
  import { Theme } from '@rjsf/material-ui';
29
29
  import cloneDeep from 'lodash/cloneDeep';
30
- import { e as extractSchemaFromStep, D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './schema-4db0f1ff.esm.js';
30
+ import { e as extractSchemaFromStep, D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './schema-1982362e.esm.js';
31
31
  import classNames from 'classnames';
32
32
  import { StreamLanguage } from '@codemirror/language';
33
33
  import { yaml as yaml$1 } from '@codemirror/legacy-modes/mode/yaml';
@@ -910,7 +910,7 @@ const ActionsPage = () => {
910
910
  const codeClassname = classNames(classes.code, {
911
911
  [classes.codeRequired]: (_a = input.required) == null ? void 0 : _a.includes(key)
912
912
  });
913
- return /* @__PURE__ */ React.createElement(TableRow, { key }, /* @__PURE__ */ React.createElement(TableCell, null, /* @__PURE__ */ React.createElement("div", { className: codeClassname }, key)), /* @__PURE__ */ React.createElement(TableCell, null, props.title), /* @__PURE__ */ React.createElement(TableCell, null, props.description), /* @__PURE__ */ React.createElement(TableCell, null, /* @__PURE__ */ React.createElement("span", { className: classes.code }, props.type)));
913
+ return /* @__PURE__ */ React.createElement(TableRow, { key }, /* @__PURE__ */ React.createElement(TableCell, null, /* @__PURE__ */ React.createElement("div", { className: codeClassname }, key)), /* @__PURE__ */ React.createElement(TableCell, null, props.title), /* @__PURE__ */ React.createElement(TableCell, null, props.description), /* @__PURE__ */ React.createElement(TableCell, null, /* @__PURE__ */ React.createElement(React.Fragment, null, [props.type].flat().map((type) => /* @__PURE__ */ React.createElement(Chip, { label: type })))));
914
914
  });
915
915
  };
916
916
  const renderTable = (input) => {
@@ -2699,4 +2699,4 @@ const Router = (props) => {
2699
2699
  };
2700
2700
 
2701
2701
  export { Router };
2702
- //# sourceMappingURL=Router-95a01240.esm.js.map
2702
+ //# sourceMappingURL=Router-f2355b86.esm.js.map