@backstage/plugin-scaffolder 1.5.0 → 1.6.0-next.2

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,57 @@
1
1
  # @backstage/plugin-scaffolder
2
2
 
3
+ ## 1.6.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - eadf56bbbf: Bump `git-url-parse` version to `^13.0.0`
8
+ - 667d917488: Updated dependency `msw` to `^0.47.0`.
9
+ - 87ec2ba4d6: Updated dependency `msw` to `^0.46.0`.
10
+ - de336de9cd: fix uiSchema generation when using complex dependencies
11
+ - Updated dependencies
12
+ - @backstage/integration@1.3.1-next.1
13
+ - @backstage/catalog-client@1.0.5-next.1
14
+ - @backstage/core-components@0.11.1-next.2
15
+ - @backstage/core-plugin-api@1.0.6-next.2
16
+ - @backstage/integration-react@1.1.4-next.1
17
+
18
+ ## 1.6.0-next.1
19
+
20
+ ### Patch Changes
21
+
22
+ - 817f3196f6: Updated React Router dependencies to be peer dependencies.
23
+ - 763fb81e82: Internal refactor to use more type safe code when dealing with route parameters.
24
+ - a66d44b72b: Fixing bug when the workspace would not be automatically saved when using `allowedOwners`
25
+ - Updated dependencies
26
+ - @backstage/core-components@0.11.1-next.1
27
+ - @backstage/core-plugin-api@1.0.6-next.1
28
+ - @backstage/plugin-catalog-react@1.1.4-next.1
29
+ - @backstage/plugin-permission-react@0.4.5-next.1
30
+
31
+ ## 1.6.0-next.0
32
+
33
+ ### Minor Changes
34
+
35
+ - 3424a8075d: Added support for `async` validation for the `next` version of the plugin
36
+ - 192d856495: Implementing review step for the scaffolder under `create/next`
37
+
38
+ ### Patch Changes
39
+
40
+ - 9ffb75616d: Fix bug with empty strings in `EntityPicker`
41
+ - 3f739be9d9: Minor API signatures cleanup
42
+ - 9097278df2: Updated dependency `json-schema-library` to `^7.0.0`.
43
+ - bf5e9030eb: Updated dependency `msw` to `^0.45.0`.
44
+ - Updated dependencies
45
+ - @backstage/core-plugin-api@1.0.6-next.0
46
+ - @backstage/core-components@0.11.1-next.0
47
+ - @backstage/catalog-client@1.0.5-next.0
48
+ - @backstage/integration-react@1.1.4-next.0
49
+ - @backstage/integration@1.3.1-next.0
50
+ - @backstage/plugin-scaffolder-common@1.2.0-next.0
51
+ - @backstage/plugin-catalog-react@1.1.4-next.0
52
+ - @backstage/plugin-permission-react@0.4.5-next.0
53
+ - @backstage/plugin-catalog-common@1.0.6-next.0
54
+
3
55
  ## 1.5.0
4
56
 
5
57
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder",
3
- "version": "1.5.0",
3
+ "version": "1.6.0-next.2",
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, Children, Component, Fragment } from 'react';
2
- import { useNavigate, Navigate, useOutlet, Routes, Route, useParams as useParams$1 } from 'react-router';
2
+ import { useNavigate, Navigate, useOutlet, Routes, Route } from 'react-router';
3
3
  import { ItemCardHeader, MarkdownContent, Button, ContentHeader, Progress, WarningPanel, Link as Link$1, 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
- import { useRouteRef, useApi, errorApiRef, featureFlagsApiRef, useApiHolder, alertApiRef, useElementFilter } from '@backstage/core-plugin-api';
4
+ import { useRouteRef, useApi, errorApiRef, featureFlagsApiRef, useApiHolder, useRouteRefParams, 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, 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 legacySelectedTemplateRouteRef, j as SecretsContextProvider, k as TaskPage } from './index-3b171258.esm.js';
6
+ import { s as selectedTemplateRouteRef, 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 legacySelectedTemplateRouteRef, j as SecretsContextProvider, k as TaskPage } from './index-6ab5f5ce.esm.js';
7
7
  import { RELATION_OWNED_BY, parseEntityRef, stringifyEntityRef } from '@backstage/catalog-model';
8
8
  import { makeStyles, useTheme, Card, CardMedia, CardContent, Box, Typography, Chip, CardActions, IconButton, Tooltip, Link, Stepper, Step, StepLabel, StepContent, Button as Button$1, Paper, LinearProgress, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Divider as Divider$1, FormControl, InputLabel, Select, MenuItem as MenuItem$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';
@@ -22,7 +22,6 @@ import Edit from '@material-ui/icons/Edit';
22
22
  import List from '@material-ui/icons/List';
23
23
  import MoreVert from '@material-ui/icons/MoreVert';
24
24
  import qs from 'qs';
25
- import { useParams } from 'react-router-dom';
26
25
  import useAsync from 'react-use/lib/useAsync';
27
26
  import { withTheme } from '@rjsf/core';
28
27
  import { Theme } from '@rjsf/material-ui';
@@ -66,7 +65,7 @@ import SettingsIcon from '@material-ui/icons/Settings';
66
65
  import AllIcon from '@material-ui/icons/FontDownload';
67
66
  import { DateTime, Interval } from 'luxon';
68
67
  import humanizeDuration from 'humanize-duration';
69
- import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-2a48fcb0.esm.js';
68
+ import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-7c2e7b25.esm.js';
70
69
  import '@backstage/errors';
71
70
  import 'zen-observable';
72
71
  import '@material-ui/core/FormControl';
@@ -397,7 +396,7 @@ function extractUiSchema(schema, uiSchema) {
397
396
  continue;
398
397
  }
399
398
  const innerUiSchema = {};
400
- uiSchema[propName] = innerUiSchema;
399
+ uiSchema[propName] = uiSchema[propName] || innerUiSchema;
401
400
  extractUiSchema(schemaNode, innerUiSchema);
402
401
  }
403
402
  }
@@ -693,7 +692,9 @@ const TemplatePage = ({
693
692
  const secretsContext = useContext(SecretsContext);
694
693
  const errorApi = useApi(errorApiRef);
695
694
  const scaffolderApi = useApi(scaffolderApiRef);
696
- const { templateName, namespace } = useParams();
695
+ const { templateName, namespace } = useRouteRefParams(
696
+ selectedTemplateRouteRef
697
+ );
697
698
  const templateRef = stringifyEntityRef({
698
699
  name: templateName,
699
700
  kind: "template",
@@ -2461,7 +2462,7 @@ const Router = (props) => {
2461
2462
  )
2462
2463
  ];
2463
2464
  const RedirectingComponent = () => {
2464
- const { templateName } = useParams$1();
2465
+ const { templateName } = useRouteRefParams(legacySelectedTemplateRouteRef);
2465
2466
  const newLink = useRouteRef(selectedTemplateRouteRef);
2466
2467
  useEffect(
2467
2468
  () => console.warn(
@@ -2474,14 +2475,16 @@ const Router = (props) => {
2474
2475
  });
2475
2476
  };
2476
2477
  return /* @__PURE__ */ React.createElement(Routes, null, /* @__PURE__ */ React.createElement(Route, {
2478
+ path: "/",
2477
2479
  element: /* @__PURE__ */ React.createElement(ScaffolderPage, {
2478
2480
  groups,
2479
2481
  TemplateCardComponent,
2480
2482
  contextMenu: props.contextMenu
2481
2483
  })
2482
2484
  }), /* @__PURE__ */ React.createElement(Route, {
2483
- path: legacySelectedTemplateRouteRef.path
2484
- }, /* @__PURE__ */ React.createElement(RedirectingComponent, null)), /* @__PURE__ */ React.createElement(Route, {
2485
+ path: legacySelectedTemplateRouteRef.path,
2486
+ element: /* @__PURE__ */ React.createElement(RedirectingComponent, null)
2487
+ }), /* @__PURE__ */ React.createElement(Route, {
2485
2488
  path: selectedTemplateRouteRef.path,
2486
2489
  element: /* @__PURE__ */ React.createElement(SecretsContextProvider, null, /* @__PURE__ */ React.createElement(TemplatePage, {
2487
2490
  customFieldExtensions: fieldExtensions
@@ -2510,4 +2513,4 @@ const Router = (props) => {
2510
2513
  };
2511
2514
 
2512
2515
  export { Router };
2513
- //# sourceMappingURL=Router-fa1fcf0c.esm.js.map
2516
+ //# sourceMappingURL=Router-72bec8f5.esm.js.map