@backstage/plugin-scaffolder 1.10.0-next.2 → 1.10.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 CHANGED
@@ -1,5 +1,115 @@
1
1
  # @backstage/plugin-scaffolder
2
2
 
3
+ ## 1.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 021233c215: lock versions of `@rjsf/*-beta` packages
8
+ - Updated dependencies
9
+ - @backstage/plugin-scaffolder-react@1.0.1
10
+
11
+ ## 1.10.0
12
+
13
+ ### Minor Changes
14
+
15
+ - e4c0240445: Added `catalogFilter` field to OwnerPicker and EntityPicker components to support filtering options by any field(s) of an entity.
16
+
17
+ 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:
18
+
19
+ - Get all entities of kind `Group`
20
+
21
+ ```yaml
22
+ owner:
23
+ title: Owner
24
+ type: string
25
+ description: Owner of the component
26
+ ui:field: OwnerPicker
27
+ ui:options:
28
+ catalogFilter:
29
+ - kind: Group
30
+ ```
31
+
32
+ - Get entities of kind `Group` and spec.type `team`
33
+ ```yaml
34
+ owner:
35
+ title: Owner
36
+ type: string
37
+ description: Owner of the component
38
+ ui:field: OwnerPicker
39
+ ui:options:
40
+ catalogFilter:
41
+ - kind: Group
42
+ spec.type: team
43
+ ```
44
+
45
+ - b4955ed7b9: - **Deprecation** - Deprecated the following exports, please import them directly from `@backstage/plugin-scaffolder-react` instead
46
+
47
+ ```
48
+ createScaffolderFieldExtension
49
+ ScaffolderFieldExtensions
50
+ useTemplateSecrets
51
+ scaffolderApiRef
52
+ ScaffolderApi
53
+ ScaffolderUseTemplateSecrets
54
+ TemplateParameterSchema
55
+ CustomFieldExtensionSchema
56
+ CustomFieldValidator
57
+ FieldExtensionOptions
58
+ FieldExtensionComponentProps
59
+ FieldExtensionComponent
60
+ ListActionsResponse
61
+ LogEvent
62
+ ScaffolderDryRunOptions
63
+ ScaffolderDryRunResponse
64
+ ScaffolderGetIntegrationsListOptions
65
+ ScaffolderGetIntegrationsListResponse
66
+ ScaffolderOutputlink
67
+ ScaffolderScaffoldOptions
68
+ ScaffolderScaffoldResponse
69
+ ScaffolderStreamLogsOptions
70
+ ScaffolderTask
71
+ ScaffolderTaskOutput
72
+ ScaffolderTaskStatus
73
+ ```
74
+
75
+ - **Deprecation** - Deprecated the `rootRouteRef` export, this should now be used from `scaffolderPlugin.routes.root`
76
+
77
+ - The following `/alpha` types have removed from this package and moved to the `@backstage/plugin-scaffolder-react/alpha` package
78
+
79
+ ```
80
+ createNextScaffolderFieldExtension
81
+ FormProps
82
+ NextCustomFieldValidator
83
+ NextFieldExtensionComponentProps
84
+ NextFieldExtensionOptions
85
+ ```
86
+
87
+ ### Patch Changes
88
+
89
+ - 3c112f6967: rollback `@rjsf/validator-ajv8` to `@rjsf/validator-v6`
90
+ - 2fadff2a25: Render the scaffolder action description using the `MarkdownContent` component. This will allow the page to show richer content to describe scaffolder actions.
91
+ - 27a5e90e97: Small updates to some paragraph components to ensure theme typography properties are inherited correctly.
92
+ - 223e2c5f03: add `onChange` handler to`Stepper` component
93
+ - 659c92a1dc: Updated dependency `use-immer` to `^0.8.0`.
94
+ - 489935d625: Show action example yaml on the scaffolder actions documentation page.
95
+ - b8269de9f1: Explicitly declaring children as optional props to facilitate react 18 changes
96
+ - Updated dependencies
97
+ - @backstage/catalog-model@1.1.5
98
+ - @backstage/plugin-scaffolder-common@1.2.4
99
+ - @backstage/catalog-client@1.3.0
100
+ - @backstage/plugin-catalog-react@1.2.4
101
+ - @backstage/core-components@0.12.3
102
+ - @backstage/plugin-scaffolder-react@1.0.0
103
+ - @backstage/core-plugin-api@1.3.0
104
+ - @backstage/plugin-permission-react@0.4.9
105
+ - @backstage/config@1.0.6
106
+ - @backstage/errors@1.1.4
107
+ - @backstage/integration@1.4.2
108
+ - @backstage/integration-react@1.1.9
109
+ - @backstage/theme@0.2.16
110
+ - @backstage/types@1.0.2
111
+ - @backstage/plugin-catalog-common@1.0.10
112
+
3
113
  ## 1.10.0-next.2
4
114
 
5
115
  ### 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.1",
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