@backstage/plugin-scaffolder 1.9.0 → 1.10.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @backstage/plugin-scaffolder
2
2
 
3
+ ## 1.10.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e4c0240445: Added `catalogFilter` field to OwnerPicker and EntityPicker components to support filtering options by any field(s) of an entity.
8
+
9
+ The `allowedKinds` field has been deprecated. Use `catalogFilter` instead. This field allows users to specify a filter on the shape of [EntityFilterQuery](https://github.com/backstage/backstage/blob/774c42003782121d3d6b2aa5f2865d53370c160e/packages/catalog-client/src/types/api.ts#L74), which can be passed into the CatalogClient. See examples below:
10
+
11
+ - Get all entities of kind `Group`
12
+
13
+ ```yaml
14
+ owner:
15
+ title: Owner
16
+ type: string
17
+ description: Owner of the component
18
+ ui:field: OwnerPicker
19
+ ui:options:
20
+ catalogFilter:
21
+ - kind: Group
22
+ ```
23
+
24
+ - Get entities of kind `Group` and spec.type `team`
25
+ ```yaml
26
+ owner:
27
+ title: Owner
28
+ type: string
29
+ description: Owner of the component
30
+ ui:field: OwnerPicker
31
+ ui:options:
32
+ catalogFilter:
33
+ - kind: Group
34
+ spec.type: team
35
+ ```
36
+
37
+ ### Patch Changes
38
+
39
+ - 3c112f6967: rollback `@rjsf/validator-ajv8` to `@rjsf/validator-v6`
40
+ - 223e2c5f03: add `onChange` handler to`Stepper` component
41
+ - Updated dependencies
42
+ - @backstage/catalog-model@1.1.5-next.0
43
+ - @backstage/plugin-scaffolder-common@1.2.4-next.0
44
+ - @backstage/catalog-client@1.3.0-next.0
45
+ - @backstage/plugin-catalog-react@1.2.4-next.0
46
+ - @backstage/core-components@0.12.3-next.0
47
+ - @backstage/config@1.0.5
48
+ - @backstage/core-plugin-api@1.2.0
49
+ - @backstage/errors@1.1.4
50
+ - @backstage/integration@1.4.1
51
+ - @backstage/integration-react@1.1.9-next.0
52
+ - @backstage/theme@0.2.16
53
+ - @backstage/types@1.0.2
54
+ - @backstage/plugin-catalog-common@1.0.10-next.0
55
+ - @backstage/plugin-permission-react@0.4.8
56
+
57
+ ## 1.9.1
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies
62
+ - @backstage/core-components@0.12.2
63
+ - @backstage/integration-react@1.1.8
64
+ - @backstage/plugin-catalog-react@1.2.3
65
+
3
66
  ## 1.9.0
4
67
 
5
68
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder",
3
- "version": "1.9.0",
3
+ "version": "1.10.0-next.0",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -3,7 +3,7 @@ import { useNavigate, Navigate, useOutlet, Routes, Route } from 'react-router-do
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-8dc22fc0.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-7e25101d.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-1982362e.esm.js';
30
+ import { e as extractSchemaFromStep, D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './schema-bfff60e2.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';
@@ -2207,8 +2207,8 @@ parameters:
2207
2207
  description: Owner of the component
2208
2208
  ui:field: OwnerPicker
2209
2209
  ui:options:
2210
- allowedKinds:
2211
- - Group
2210
+ catalogFilter:
2211
+ kind: Group
2212
2212
  - title: Choose a location
2213
2213
  required:
2214
2214
  - repoUrl
@@ -2699,4 +2699,4 @@ const Router = (props) => {
2699
2699
  };
2700
2700
 
2701
2701
  export { Router };
2702
- //# sourceMappingURL=Router-f2355b86.esm.js.map
2702
+ //# sourceMappingURL=Router-416b874d.esm.js.map