@backstage/plugin-scaffolder 1.10.0-next.2 → 1.10.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,107 @@
1
1
  # @backstage/plugin-scaffolder
2
2
 
3
+ ## 1.10.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
+ - b4955ed7b9: - **Deprecation** - Deprecated the following exports, please import them directly from `@backstage/plugin-scaffolder-react` instead
38
+
39
+ ```
40
+ createScaffolderFieldExtension
41
+ ScaffolderFieldExtensions
42
+ useTemplateSecrets
43
+ scaffolderApiRef
44
+ ScaffolderApi
45
+ ScaffolderUseTemplateSecrets
46
+ TemplateParameterSchema
47
+ CustomFieldExtensionSchema
48
+ CustomFieldValidator
49
+ FieldExtensionOptions
50
+ FieldExtensionComponentProps
51
+ FieldExtensionComponent
52
+ ListActionsResponse
53
+ LogEvent
54
+ ScaffolderDryRunOptions
55
+ ScaffolderDryRunResponse
56
+ ScaffolderGetIntegrationsListOptions
57
+ ScaffolderGetIntegrationsListResponse
58
+ ScaffolderOutputlink
59
+ ScaffolderScaffoldOptions
60
+ ScaffolderScaffoldResponse
61
+ ScaffolderStreamLogsOptions
62
+ ScaffolderTask
63
+ ScaffolderTaskOutput
64
+ ScaffolderTaskStatus
65
+ ```
66
+
67
+ - **Deprecation** - Deprecated the `rootRouteRef` export, this should now be used from `scaffolderPlugin.routes.root`
68
+
69
+ - The following `/alpha` types have removed from this package and moved to the `@backstage/plugin-scaffolder-react/alpha` package
70
+
71
+ ```
72
+ createNextScaffolderFieldExtension
73
+ FormProps
74
+ NextCustomFieldValidator
75
+ NextFieldExtensionComponentProps
76
+ NextFieldExtensionOptions
77
+ ```
78
+
79
+ ### Patch Changes
80
+
81
+ - 3c112f6967: rollback `@rjsf/validator-ajv8` to `@rjsf/validator-v6`
82
+ - 2fadff2a25: Render the scaffolder action description using the `MarkdownContent` component. This will allow the page to show richer content to describe scaffolder actions.
83
+ - 27a5e90e97: Small updates to some paragraph components to ensure theme typography properties are inherited correctly.
84
+ - 223e2c5f03: add `onChange` handler to`Stepper` component
85
+ - 659c92a1dc: Updated dependency `use-immer` to `^0.8.0`.
86
+ - 489935d625: Show action example yaml on the scaffolder actions documentation page.
87
+ - b8269de9f1: Explicitly declaring children as optional props to facilitate react 18 changes
88
+ - Updated dependencies
89
+ - @backstage/catalog-model@1.1.5
90
+ - @backstage/plugin-scaffolder-common@1.2.4
91
+ - @backstage/catalog-client@1.3.0
92
+ - @backstage/plugin-catalog-react@1.2.4
93
+ - @backstage/core-components@0.12.3
94
+ - @backstage/plugin-scaffolder-react@1.0.0
95
+ - @backstage/core-plugin-api@1.3.0
96
+ - @backstage/plugin-permission-react@0.4.9
97
+ - @backstage/config@1.0.6
98
+ - @backstage/errors@1.1.4
99
+ - @backstage/integration@1.4.2
100
+ - @backstage/integration-react@1.1.9
101
+ - @backstage/theme@0.2.16
102
+ - @backstage/types@1.0.2
103
+ - @backstage/plugin-catalog-common@1.0.10
104
+
3
105
  ## 1.10.0-next.2
4
106
 
5
107
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder",
3
- "version": "1.10.0-next.2",
3
+ "version": "1.10.0",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -8,7 +8,7 @@ import { makeStyles, useTheme, Card, CardMedia, CardContent, Box, Typography, Ch
8
8
  import { scmIntegrationsApiRef, ScmIntegrationIcon } from '@backstage/integration-react';
9
9
  import LanguageIcon from '@material-ui/icons/Language';
10
10
  import WarningIcon from '@material-ui/icons/Warning';
11
- import { s as selectedTemplateRouteRef, v as viewTechDocRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, c as scaffolderTaskRouteRef, d as rootRouteRef, f as TaskStatusStepper, g as TaskPageLinks, L as LAYOUTS_WRAPPER_KEY, h as LAYOUTS_KEY, l as legacySelectedTemplateRouteRef, i as TaskPage } from './index-618869a2.esm.js';
11
+ import { s as selectedTemplateRouteRef, v as viewTechDocRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, c as scaffolderTaskRouteRef, d as rootRouteRef, f as TaskStatusStepper, g as TaskPageLinks, L as LAYOUTS_WRAPPER_KEY, h as LAYOUTS_KEY, l as legacySelectedTemplateRouteRef, i as TaskPage } from './index-4dbb353c.esm.js';
12
12
  import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common';
13
13
  import { usePermission } from '@backstage/plugin-permission-react';
14
14
  import IconButton$1 from '@material-ui/core/IconButton';
@@ -63,7 +63,7 @@ import TreeItem from '@material-ui/lab/TreeItem';
63
63
  import RefreshIcon from '@material-ui/icons/Refresh';
64
64
  import SaveIcon from '@material-ui/icons/Save';
65
65
  import { showPanel } from '@codemirror/view';
66
- import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-b0a9b946.esm.js';
66
+ import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-40114591.esm.js';
67
67
  import SettingsIcon from '@material-ui/icons/Settings';
68
68
  import AllIcon from '@material-ui/icons/FontDownload';
69
69
  import { DateTime, Interval } from 'luxon';
@@ -2480,7 +2480,7 @@ const OwnerListPicker = (props) => {
2480
2480
  const CreatedAtColumn = ({ createdAt }) => {
2481
2481
  const createdAtTime = DateTime.fromISO(createdAt);
2482
2482
  const formatted = Interval.fromDateTimes(createdAtTime, DateTime.local()).toDuration().valueOf();
2483
- return /* @__PURE__ */ React.createElement("p", null, humanizeDuration(formatted, { round: true }), " ago");
2483
+ return /* @__PURE__ */ React.createElement(Typography$1, { paragraph: true }, humanizeDuration(formatted, { round: true }), " ago");
2484
2484
  };
2485
2485
 
2486
2486
  const OwnerEntityColumn = ({ entityRef }) => {
@@ -2491,7 +2491,7 @@ const OwnerEntityColumn = ({ entityRef }) => {
2491
2491
  [catalogApi, entityRef]
2492
2492
  );
2493
2493
  if (!entityRef) {
2494
- return /* @__PURE__ */ React.createElement("p", null, "Unknown");
2494
+ return /* @__PURE__ */ React.createElement(Typography$1, { paragraph: true }, "Unknown");
2495
2495
  }
2496
2496
  if (loading || error) {
2497
2497
  return null;
@@ -2711,4 +2711,4 @@ const Router = (props) => {
2711
2711
  };
2712
2712
 
2713
2713
  export { Router };
2714
- //# sourceMappingURL=Router-c499b201.esm.js.map
2714
+ //# sourceMappingURL=Router-77e86b6b.esm.js.map