@backstage/plugin-user-settings 0.8.0 → 0.8.1-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 +16 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.esm.js +4 -4
- package/dist/alpha.esm.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-user-settings
|
|
2
2
|
|
|
3
|
+
## 0.8.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 912ca7b: Use `convertLegacyRouteRefs` to define routes in `/alpha` export plugin.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/core-compat-api@0.1.2-next.0
|
|
10
|
+
- @backstage/plugin-catalog-react@1.9.4-next.0
|
|
11
|
+
- @backstage/frontend-plugin-api@0.5.1-next.0
|
|
12
|
+
- @backstage/core-components@0.13.10
|
|
13
|
+
- @backstage/core-app-api@1.11.3
|
|
14
|
+
- @backstage/core-plugin-api@1.8.2
|
|
15
|
+
- @backstage/errors@1.2.3
|
|
16
|
+
- @backstage/theme@0.5.0
|
|
17
|
+
- @backstage/types@1.1.1
|
|
18
|
+
|
|
3
19
|
## 0.8.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPageExtension, createExtensionInput, coreExtensionData, createNavItemExtension, createPlugin } from '@backstage/frontend-plugin-api';
|
|
2
|
-
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
2
|
+
import { convertLegacyRouteRef, compatWrapper, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
3
3
|
import SettingsIcon from '@material-ui/icons/Settings';
|
|
4
4
|
import { s as settingsRouteRef } from './esm/translation-acb40bbc.esm.js';
|
|
5
5
|
export { a as userSettingsTranslationRef } from './esm/translation-acb40bbc.esm.js';
|
|
@@ -40,9 +40,9 @@ const settingsNavItem = createNavItemExtension({
|
|
|
40
40
|
var alpha = createPlugin({
|
|
41
41
|
id: "user-settings",
|
|
42
42
|
extensions: [userSettingsPage, settingsNavItem],
|
|
43
|
-
routes: {
|
|
44
|
-
root:
|
|
45
|
-
}
|
|
43
|
+
routes: convertLegacyRouteRefs({
|
|
44
|
+
root: settingsRouteRef
|
|
45
|
+
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
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 createNavItemExtension,\n createPageExtension,\n createPlugin,\n} from '@backstage/frontend-plugin-api';\nimport {\n convertLegacyRouteRef,\n compatWrapper,\n} from '@backstage/core-compat-api';\nimport SettingsIcon from '@material-ui/icons/Settings';\nimport { settingsRouteRef } from './plugin';\n\nimport React from 'react';\n\nexport * from './translation';\n\nconst userSettingsPage = createPageExtension({\n defaultPath: '/settings',\n routeRef: convertLegacyRouteRef(settingsRouteRef),\n inputs: {\n providerSettings: createExtensionInput(\n {\n element: coreExtensionData.reactElement,\n },\n { singleton: true, optional: true },\n ),\n },\n loader: ({ inputs }) =>\n import('./components/SettingsPage').then(m =>\n compatWrapper(\n <m.SettingsPage\n providerSettings={inputs.providerSettings?.output.element}\n />,\n ),\n ),\n});\n\n/** @alpha */\nexport const settingsNavItem = createNavItemExtension({\n routeRef: convertLegacyRouteRef(settingsRouteRef),\n title: 'Settings',\n icon: SettingsIcon,\n});\n\n/**\n * @alpha\n */\nexport default createPlugin({\n id: 'user-settings',\n extensions: [userSettingsPage, settingsNavItem],\n routes: {\n root:
|
|
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 createNavItemExtension,\n createPageExtension,\n createPlugin,\n} from '@backstage/frontend-plugin-api';\nimport {\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n compatWrapper,\n} from '@backstage/core-compat-api';\nimport SettingsIcon from '@material-ui/icons/Settings';\nimport { settingsRouteRef } from './plugin';\n\nimport React from 'react';\n\nexport * from './translation';\n\nconst userSettingsPage = createPageExtension({\n defaultPath: '/settings',\n routeRef: convertLegacyRouteRef(settingsRouteRef),\n inputs: {\n providerSettings: createExtensionInput(\n {\n element: coreExtensionData.reactElement,\n },\n { singleton: true, optional: true },\n ),\n },\n loader: ({ inputs }) =>\n import('./components/SettingsPage').then(m =>\n compatWrapper(\n <m.SettingsPage\n providerSettings={inputs.providerSettings?.output.element}\n />,\n ),\n ),\n});\n\n/** @alpha */\nexport const settingsNavItem = createNavItemExtension({\n routeRef: convertLegacyRouteRef(settingsRouteRef),\n title: 'Settings',\n icon: SettingsIcon,\n});\n\n/**\n * @alpha\n */\nexport default createPlugin({\n id: 'user-settings',\n extensions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CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-user-settings",
|
|
3
3
|
"description": "A Backstage plugin that provides a settings page",
|
|
4
|
-
"version": "0.8.0",
|
|
4
|
+
"version": "0.8.1-next.0",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@backstage/core-app-api": "^1.11.3",
|
|
48
|
-
"@backstage/core-compat-api": "^0.1.
|
|
48
|
+
"@backstage/core-compat-api": "^0.1.2-next.0",
|
|
49
49
|
"@backstage/core-components": "^0.13.10",
|
|
50
50
|
"@backstage/core-plugin-api": "^1.8.2",
|
|
51
51
|
"@backstage/errors": "^1.2.3",
|
|
52
|
-
"@backstage/frontend-plugin-api": "^0.5.0",
|
|
53
|
-
"@backstage/plugin-catalog-react": "^1.9.
|
|
52
|
+
"@backstage/frontend-plugin-api": "^0.5.1-next.0",
|
|
53
|
+
"@backstage/plugin-catalog-react": "^1.9.4-next.0",
|
|
54
54
|
"@backstage/theme": "^0.5.0",
|
|
55
55
|
"@backstage/types": "^1.1.1",
|
|
56
56
|
"@material-ui/core": "^4.12.2",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@backstage/cli": "^0.25.
|
|
70
|
-
"@backstage/dev-utils": "^1.0.
|
|
71
|
-
"@backstage/plugin-catalog": "^1.
|
|
72
|
-
"@backstage/test-utils": "^1.
|
|
69
|
+
"@backstage/cli": "^0.25.2-next.0",
|
|
70
|
+
"@backstage/dev-utils": "^1.0.27-next.0",
|
|
71
|
+
"@backstage/plugin-catalog": "^1.17.0-next.0",
|
|
72
|
+
"@backstage/test-utils": "^1.5.0-next.0",
|
|
73
73
|
"@testing-library/dom": "^9.0.0",
|
|
74
74
|
"@testing-library/jest-dom": "^6.0.0",
|
|
75
75
|
"@testing-library/react": "^14.0.0",
|