@backstage/plugin-devtools 0.1.30-next.1 → 0.1.30-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 +14 -0
- package/dist/alpha/plugin.esm.js +2 -2
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +5 -4
- package/dist/package.json.esm.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage/plugin-devtools
|
|
2
2
|
|
|
3
|
+
## 0.1.30-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e4ddf22: Internal update to align with new blueprint parameter naming in the new frontend system.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/frontend-plugin-api@0.11.0-next.1
|
|
10
|
+
- @backstage/core-compat-api@0.5.0-next.2
|
|
11
|
+
- @backstage/core-components@0.17.5-next.1
|
|
12
|
+
- @backstage/core-plugin-api@1.10.9
|
|
13
|
+
- @backstage/errors@1.2.7
|
|
14
|
+
- @backstage/plugin-devtools-common@0.1.17
|
|
15
|
+
- @backstage/plugin-permission-react@0.4.36
|
|
16
|
+
|
|
3
17
|
## 0.1.30-next.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ import BuildIcon from '@material-ui/icons/Build';
|
|
|
7
7
|
import { rootRouteRef } from '../routes.esm.js';
|
|
8
8
|
|
|
9
9
|
const devToolsApi = ApiBlueprint.make({
|
|
10
|
-
params: (
|
|
10
|
+
params: (defineParams) => defineParams({
|
|
11
11
|
api: devToolsApiRef,
|
|
12
12
|
deps: {
|
|
13
13
|
discoveryApi: discoveryApiRef,
|
|
@@ -18,7 +18,7 @@ const devToolsApi = ApiBlueprint.make({
|
|
|
18
18
|
});
|
|
19
19
|
const devToolsPage = PageBlueprint.make({
|
|
20
20
|
params: {
|
|
21
|
-
|
|
21
|
+
path: "/devtools",
|
|
22
22
|
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
23
23
|
loader: () => import('../components/DevToolsPage/index.esm.js').then(
|
|
24
24
|
(m) => compatWrapper(/* @__PURE__ */ jsx(m.DevToolsPage, {}))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.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 */\n\nimport {\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport BuildIcon from '@material-ui/icons/Build';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const devToolsApi = ApiBlueprint.make({\n params:
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.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 */\n\nimport {\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport BuildIcon from '@material-ui/icons/Build';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const devToolsApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: devToolsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new DevToolsClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport const devToolsPage = PageBlueprint.make({\n params: {\n path: '/devtools',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/DevToolsPage').then(m =>\n compatWrapper(<m.DevToolsPage />),\n ),\n },\n});\n\n/** @alpha */\nexport const devToolsNavItem = NavItemBlueprint.make({\n params: {\n title: 'DevTools',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n icon: BuildIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'devtools',\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: convertLegacyRouteRef(rootRouteRef),\n },\n extensions: [devToolsApi, devToolsPage, devToolsNavItem],\n});\n"],"names":[],"mappings":";;;;;;;;AAkCa,MAAA,WAAA,GAAc,aAAa,IAAK,CAAA;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,cAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,QAAA,EACxB,KAAA,IAAI,cAAe,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU;AAAA,GAChD;AACL,CAAC;AAGY,MAAA,YAAA,GAAe,cAAc,IAAK,CAAA;AAAA,EAC7C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,WAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,yCAA4B,CAAE,CAAA,IAAA;AAAA,MAAK,OACxC,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,YAAA,EAAF,EAAe,CAAE;AAAA;AAClC;AAEN,CAAC;AAGY,MAAA,eAAA,GAAkB,iBAAiB,IAAK,CAAA;AAAA,EACnD,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,UAAA;AAAA,IACP,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,IAAM,EAAA;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,UAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAE,EAAA;AAAA,EACxD,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,sBAAsB,YAAY;AAAA,GAC1C;AAAA,EACA,UAAY,EAAA,CAAC,WAAa,EAAA,YAAA,EAAc,eAAe;AACzD,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
11
11
|
name: undefined;
|
|
12
12
|
config: {};
|
|
13
13
|
configInput: {};
|
|
14
|
-
output: _backstage_frontend_plugin_api.
|
|
14
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
15
15
|
inputs: {};
|
|
16
16
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
17
17
|
}>;
|
|
@@ -20,7 +20,7 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
20
20
|
name: undefined;
|
|
21
21
|
config: {};
|
|
22
22
|
configInput: {};
|
|
23
|
-
output: _backstage_frontend_plugin_api.
|
|
23
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
24
24
|
title: string;
|
|
25
25
|
icon: _backstage_core_plugin_api.IconComponent;
|
|
26
26
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
@@ -41,12 +41,13 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
41
41
|
configInput: {
|
|
42
42
|
path?: string | undefined;
|
|
43
43
|
};
|
|
44
|
-
output: _backstage_frontend_plugin_api.
|
|
44
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
45
45
|
optional: true;
|
|
46
46
|
}>;
|
|
47
47
|
inputs: {};
|
|
48
48
|
params: {
|
|
49
|
-
defaultPath:
|
|
49
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
50
|
+
path: string;
|
|
50
51
|
loader: () => Promise<JSX.Element>;
|
|
51
52
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
52
53
|
};
|
package/dist/package.json.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-devtools",
|
|
3
|
-
"version": "0.1.30-next.
|
|
3
|
+
"version": "0.1.30-next.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "devtools",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"test": "backstage-cli package test"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@backstage/core-compat-api": "0.
|
|
67
|
-
"@backstage/core-components": "0.17.5-next.
|
|
66
|
+
"@backstage/core-compat-api": "0.5.0-next.2",
|
|
67
|
+
"@backstage/core-components": "0.17.5-next.1",
|
|
68
68
|
"@backstage/core-plugin-api": "1.10.9",
|
|
69
69
|
"@backstage/errors": "1.2.7",
|
|
70
|
-
"@backstage/frontend-plugin-api": "0.11.0-next.
|
|
70
|
+
"@backstage/frontend-plugin-api": "0.11.0-next.1",
|
|
71
71
|
"@backstage/plugin-devtools-common": "0.1.17",
|
|
72
72
|
"@backstage/plugin-permission-react": "0.4.36",
|
|
73
73
|
"@material-ui/core": "^4.9.13",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"react-use": "^17.2.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@backstage/cli": "0.
|
|
80
|
+
"@backstage/cli": "0.34.0-next.1",
|
|
81
81
|
"@backstage/dev-utils": "1.1.13-next.1",
|
|
82
82
|
"@testing-library/jest-dom": "^6.0.0",
|
|
83
83
|
"@types/react": "^18.0.0",
|