@backstage/plugin-user-settings 0.8.29-next.0 → 0.8.30-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 +34 -0
- package/dist/alpha.d.ts +9 -9
- package/dist/alpha.esm.js +11 -16
- package/dist/alpha.esm.js.map +1 -1
- package/dist/package.json.esm.js +1 -2
- package/dist/package.json.esm.js.map +1 -1
- package/package.json +13 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @backstage/plugin-user-settings
|
|
2
2
|
|
|
3
|
+
## 0.8.30-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/frontend-plugin-api@0.13.2-next.0
|
|
10
|
+
- @backstage/core-app-api@1.19.3-next.0
|
|
11
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
12
|
+
- @backstage/plugin-catalog-react@1.21.4-next.0
|
|
13
|
+
- @backstage/theme@0.7.1-next.0
|
|
14
|
+
- @backstage/core-components@0.18.4-next.0
|
|
15
|
+
- @backstage/plugin-signals-react@0.0.18-next.0
|
|
16
|
+
- @backstage/catalog-model@1.7.6
|
|
17
|
+
- @backstage/errors@1.2.7
|
|
18
|
+
- @backstage/types@1.2.2
|
|
19
|
+
- @backstage/plugin-user-settings-common@0.0.1
|
|
20
|
+
|
|
21
|
+
## 0.8.29
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 2b6fda3: Revert `storageApiRef` implementation
|
|
26
|
+
- 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/frontend-plugin-api@0.13.0
|
|
29
|
+
- @backstage/core-compat-api@0.5.4
|
|
30
|
+
- @backstage/plugin-catalog-react@1.21.3
|
|
31
|
+
- @backstage/core-components@0.18.3
|
|
32
|
+
- @backstage/core-plugin-api@1.12.0
|
|
33
|
+
- @backstage/core-app-api@1.19.2
|
|
34
|
+
- @backstage/catalog-model@1.7.6
|
|
35
|
+
- @backstage/plugin-signals-react@0.0.17
|
|
36
|
+
|
|
3
37
|
## 0.8.29-next.0
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
3
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
4
4
|
import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
|
|
5
5
|
|
|
6
6
|
/** @alpha */
|
|
@@ -58,20 +58,20 @@ declare const userSettingsTranslationRef: _backstage_core_plugin_api_alpha.Trans
|
|
|
58
58
|
}>;
|
|
59
59
|
|
|
60
60
|
/** @alpha */
|
|
61
|
-
declare const settingsNavItem: _backstage_frontend_plugin_api.
|
|
61
|
+
declare const settingsNavItem: _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
62
62
|
kind: "nav-item";
|
|
63
63
|
name: undefined;
|
|
64
64
|
config: {};
|
|
65
65
|
configInput: {};
|
|
66
66
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
67
67
|
title: string;
|
|
68
|
-
icon:
|
|
68
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
69
69
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
70
70
|
}, "core.nav-item.target", {}>;
|
|
71
71
|
inputs: {};
|
|
72
72
|
params: {
|
|
73
73
|
title: string;
|
|
74
|
-
icon:
|
|
74
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
75
75
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
@@ -79,26 +79,26 @@ declare const settingsNavItem: _backstage_frontend_plugin_api.ExtensionDefinitio
|
|
|
79
79
|
* @alpha
|
|
80
80
|
*/
|
|
81
81
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
82
|
-
root:
|
|
82
|
+
root: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
83
83
|
}, {}, {
|
|
84
|
-
"nav-item:user-settings": _backstage_frontend_plugin_api.
|
|
84
|
+
"nav-item:user-settings": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
85
85
|
kind: "nav-item";
|
|
86
86
|
name: undefined;
|
|
87
87
|
config: {};
|
|
88
88
|
configInput: {};
|
|
89
89
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
90
90
|
title: string;
|
|
91
|
-
icon:
|
|
91
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
92
92
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
93
93
|
}, "core.nav-item.target", {}>;
|
|
94
94
|
inputs: {};
|
|
95
95
|
params: {
|
|
96
96
|
title: string;
|
|
97
|
-
icon:
|
|
97
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
98
98
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
99
99
|
};
|
|
100
100
|
}>;
|
|
101
|
-
"page:user-settings": _backstage_frontend_plugin_api.
|
|
101
|
+
"page:user-settings": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
102
102
|
config: {
|
|
103
103
|
path: string | undefined;
|
|
104
104
|
};
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { PageBlueprint, createExtensionInput, coreExtensionData, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
-
import { convertLegacyRouteRef, compatWrapper, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
4
3
|
import SettingsIcon from '@material-ui/icons/Settings';
|
|
5
4
|
import { settingsRouteRef } from './plugin.esm.js';
|
|
6
5
|
export { userSettingsTranslationRef } from './translation.esm.js';
|
|
@@ -15,25 +14,21 @@ const userSettingsPage = PageBlueprint.makeWithOverrides({
|
|
|
15
14
|
factory(originalFactory, { inputs }) {
|
|
16
15
|
return originalFactory({
|
|
17
16
|
path: "/settings",
|
|
18
|
-
routeRef:
|
|
19
|
-
loader: () => import('./components/SettingsPage/index.esm.js').then(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
providerSettings: inputs.providerSettings?.get(
|
|
25
|
-
coreExtensionData.reactElement
|
|
26
|
-
)
|
|
27
|
-
}
|
|
17
|
+
routeRef: settingsRouteRef,
|
|
18
|
+
loader: () => import('./components/SettingsPage/index.esm.js').then((m) => /* @__PURE__ */ jsx(
|
|
19
|
+
m.SettingsPage,
|
|
20
|
+
{
|
|
21
|
+
providerSettings: inputs.providerSettings?.get(
|
|
22
|
+
coreExtensionData.reactElement
|
|
28
23
|
)
|
|
29
|
-
|
|
30
|
-
)
|
|
24
|
+
}
|
|
25
|
+
))
|
|
31
26
|
});
|
|
32
27
|
}
|
|
33
28
|
});
|
|
34
29
|
const settingsNavItem = NavItemBlueprint.make({
|
|
35
30
|
params: {
|
|
36
|
-
routeRef:
|
|
31
|
+
routeRef: settingsRouteRef,
|
|
37
32
|
title: "Settings",
|
|
38
33
|
icon: SettingsIcon
|
|
39
34
|
}
|
|
@@ -42,9 +37,9 @@ var alpha = createFrontendPlugin({
|
|
|
42
37
|
pluginId: "user-settings",
|
|
43
38
|
info: { packageJson: () => import('./package.json.esm.js') },
|
|
44
39
|
extensions: [userSettingsPage, settingsNavItem],
|
|
45
|
-
routes:
|
|
40
|
+
routes: {
|
|
46
41
|
root: settingsRouteRef
|
|
47
|
-
}
|
|
42
|
+
}
|
|
48
43
|
});
|
|
49
44
|
|
|
50
45
|
export { alpha as default, settingsNavItem };
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n coreExtensionData,\n createExtensionInput,\n createFrontendPlugin,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n coreExtensionData,\n createExtensionInput,\n createFrontendPlugin,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport SettingsIcon from '@material-ui/icons/Settings';\nimport { settingsRouteRef } from './plugin';\n\nexport * from './translation';\n\nconst userSettingsPage = PageBlueprint.makeWithOverrides({\n inputs: {\n providerSettings: createExtensionInput([coreExtensionData.reactElement], {\n singleton: true,\n optional: true,\n }),\n },\n factory(originalFactory, { inputs }) {\n return originalFactory({\n path: '/settings',\n routeRef: settingsRouteRef,\n loader: () =>\n import('./components/SettingsPage').then(m => (\n <m.SettingsPage\n providerSettings={inputs.providerSettings?.get(\n coreExtensionData.reactElement,\n )}\n />\n )),\n });\n },\n});\n\n/** @alpha */\nexport const settingsNavItem = NavItemBlueprint.make({\n params: {\n routeRef: settingsRouteRef,\n title: 'Settings',\n icon: SettingsIcon,\n },\n});\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'user-settings',\n info: { packageJson: () => import('../package.json') },\n extensions: [userSettingsPage, settingsNavItem],\n routes: {\n root: settingsRouteRef,\n },\n});\n"],"names":[],"mappings":";;;;;;AA2BA,MAAM,gBAAA,GAAmB,cAAc,iBAAA,CAAkB;AAAA,EACvD,MAAA,EAAQ;AAAA,IACN,gBAAA,EAAkB,oBAAA,CAAqB,CAAC,iBAAA,CAAkB,YAAY,CAAA,EAAG;AAAA,MACvE,SAAA,EAAW,IAAA;AAAA,MACX,QAAA,EAAU;AAAA,KACX;AAAA,GACH;AAAA,EACA,OAAA,CAAQ,eAAA,EAAiB,EAAE,MAAA,EAAO,EAAG;AACnC,IAAA,OAAO,eAAA,CAAgB;AAAA,MACrB,IAAA,EAAM,WAAA;AAAA,MACN,QAAA,EAAU,gBAAA;AAAA,MACV,QAAQ,MACN,OAAO,wCAA2B,CAAA,CAAE,KAAK,CAAA,CAAA,qBACvC,GAAA;AAAA,QAAC,CAAA,CAAE,YAAA;AAAA,QAAF;AAAA,UACC,gBAAA,EAAkB,OAAO,gBAAA,EAAkB,GAAA;AAAA,YACzC,iBAAA,CAAkB;AAAA;AACpB;AAAA,OAEH;AAAA,KACJ,CAAA;AAAA,EACH;AACF,CAAC,CAAA;AAGM,MAAM,eAAA,GAAkB,iBAAiB,IAAA,CAAK;AAAA,EACnD,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU,gBAAA;AAAA,IACV,KAAA,EAAO,UAAA;AAAA,IACP,IAAA,EAAM;AAAA;AAEV,CAAC;AAKD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,eAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAA,EAAE;AAAA,EACrD,UAAA,EAAY,CAAC,gBAAA,EAAkB,eAAe,CAAA;AAAA,EAC9C,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA;AAEV,CAAC,CAAA;;;;"}
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-user-settings";
|
|
2
|
-
var version = "0.8.
|
|
2
|
+
var version = "0.8.30-next.0";
|
|
3
3
|
var description = "A Backstage plugin that provides a settings page";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -56,7 +56,6 @@ var scripts = {
|
|
|
56
56
|
var dependencies = {
|
|
57
57
|
"@backstage/catalog-model": "workspace:^",
|
|
58
58
|
"@backstage/core-app-api": "workspace:^",
|
|
59
|
-
"@backstage/core-compat-api": "workspace:^",
|
|
60
59
|
"@backstage/core-components": "workspace:^",
|
|
61
60
|
"@backstage/core-plugin-api": "workspace:^",
|
|
62
61
|
"@backstage/errors": "workspace:^",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-user-settings",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.30-next.0",
|
|
4
4
|
"description": "A Backstage plugin that provides a settings page",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -67,17 +67,16 @@
|
|
|
67
67
|
"test": "backstage-cli package test"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@backstage/catalog-model": "1.7.6
|
|
71
|
-
"@backstage/core-app-api": "1.19.
|
|
72
|
-
"@backstage/core-
|
|
73
|
-
"@backstage/core-
|
|
74
|
-
"@backstage/core-plugin-api": "1.11.2-next.0",
|
|
70
|
+
"@backstage/catalog-model": "1.7.6",
|
|
71
|
+
"@backstage/core-app-api": "1.19.3-next.0",
|
|
72
|
+
"@backstage/core-components": "0.18.4-next.0",
|
|
73
|
+
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
75
74
|
"@backstage/errors": "1.2.7",
|
|
76
|
-
"@backstage/frontend-plugin-api": "0.
|
|
77
|
-
"@backstage/plugin-catalog-react": "1.21.
|
|
78
|
-
"@backstage/plugin-signals-react": "0.0.
|
|
75
|
+
"@backstage/frontend-plugin-api": "0.13.2-next.0",
|
|
76
|
+
"@backstage/plugin-catalog-react": "1.21.4-next.0",
|
|
77
|
+
"@backstage/plugin-signals-react": "0.0.18-next.0",
|
|
79
78
|
"@backstage/plugin-user-settings-common": "0.0.1",
|
|
80
|
-
"@backstage/theme": "0.7.0",
|
|
79
|
+
"@backstage/theme": "0.7.1-next.0",
|
|
81
80
|
"@backstage/types": "1.2.2",
|
|
82
81
|
"@material-ui/core": "^4.12.2",
|
|
83
82
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -86,10 +85,10 @@
|
|
|
86
85
|
"zen-observable": "^0.10.0"
|
|
87
86
|
},
|
|
88
87
|
"devDependencies": {
|
|
89
|
-
"@backstage/cli": "0.34.
|
|
90
|
-
"@backstage/dev-utils": "1.1.
|
|
91
|
-
"@backstage/plugin-catalog": "1.
|
|
92
|
-
"@backstage/test-utils": "1.7.
|
|
88
|
+
"@backstage/cli": "0.34.6-next.0",
|
|
89
|
+
"@backstage/dev-utils": "1.1.18-next.0",
|
|
90
|
+
"@backstage/plugin-catalog": "1.32.1-next.0",
|
|
91
|
+
"@backstage/test-utils": "1.7.14-next.0",
|
|
93
92
|
"@testing-library/dom": "^10.0.0",
|
|
94
93
|
"@testing-library/jest-dom": "^6.0.0",
|
|
95
94
|
"@testing-library/react": "^16.0.0",
|