@backstage/plugin-devtools 0.1.36-next.1 → 0.1.37-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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @backstage/plugin-devtools
2
2
 
3
+ ## 0.1.37-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/frontend-plugin-api@0.14.2-next.0
9
+ - @backstage/core-compat-api@0.5.9-next.0
10
+ - @backstage/core-components@0.18.8-next.0
11
+ - @backstage/core-plugin-api@1.12.4-next.0
12
+ - @backstage/errors@1.2.7
13
+ - @backstage/plugin-devtools-common@0.1.22
14
+ - @backstage/plugin-devtools-react@0.1.2-next.0
15
+ - @backstage/plugin-permission-react@0.4.41-next.0
16
+
17
+ ## 0.1.36
18
+
19
+ ### Patch Changes
20
+
21
+ - 018ca87: Added `title` and `icon` to the plugin definition for the new frontend system.
22
+ - f2612c2: Fixes an issue where a user lacking permission to schedule tasks can now easily see the issue through a custom icon + tooltip.
23
+ - a7e0d50: Updated `react-router-dom` peer dependency to `^6.30.2` and explicitly disabled v7 future flags to suppress deprecation warnings.
24
+ - Updated dependencies
25
+ - @backstage/core-components@0.18.7
26
+ - @backstage/core-compat-api@0.5.8
27
+ - @backstage/frontend-plugin-api@0.14.0
28
+ - @backstage/plugin-devtools-react@0.1.1
29
+ - @backstage/core-plugin-api@1.12.3
30
+ - @backstage/plugin-permission-react@0.4.40
31
+ - @backstage/plugin-devtools-common@0.1.22
32
+
3
33
  ## 0.1.36-next.1
4
34
 
5
35
  ### Patch Changes
@@ -53,6 +53,8 @@ const devToolsNavItem = NavItemBlueprint.make({
53
53
  });
54
54
  var plugin = createFrontendPlugin({
55
55
  pluginId: "devtools",
56
+ title: "DevTools",
57
+ icon: /* @__PURE__ */ jsx(BuildIcon, {}),
56
58
  info: { packageJson: () => import('../package.json.esm.js') },
57
59
  routes: {
58
60
  root: rootRouteRef
@@ -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 createExtensionInput,\n coreExtensionData,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../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.makeWithOverrides({\n inputs: {\n contents: createExtensionInput(\n [\n coreExtensionData.reactElement,\n coreExtensionData.routePath,\n coreExtensionData.routeRef.optional(),\n coreExtensionData.title,\n ],\n {\n optional: true,\n },\n ),\n },\n factory(originalFactory, { inputs }) {\n return originalFactory({\n path: '/devtools',\n routeRef: rootRouteRef,\n loader: () => {\n const contents = inputs.contents.map(content => ({\n path: content.get(coreExtensionData.routePath),\n title: content.get(coreExtensionData.title),\n children: content.get(coreExtensionData.reactElement),\n }));\n return import('../components/DevToolsPage').then(m => (\n <m.DevToolsPage contents={contents} />\n ));\n },\n });\n },\n});\n\n/** @alpha */\nexport const devToolsNavItem = NavItemBlueprint.make({\n params: {\n title: 'DevTools',\n routeRef: 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: rootRouteRef,\n },\n extensions: [devToolsApi, devToolsPage, devToolsNavItem],\n});\n"],"names":[],"mappings":";;;;;;;AAgCO,MAAM,WAAA,GAAc,aAAa,IAAA,CAAK;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,cAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAS,KACjC,IAAI,cAAA,CAAe,EAAE,YAAA,EAAc,QAAA,EAAU;AAAA,GAChD;AACL,CAAC;AAGM,MAAM,YAAA,GAAe,cAAc,iBAAA,CAAkB;AAAA,EAC1D,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU,oBAAA;AAAA,MACR;AAAA,QACE,iBAAA,CAAkB,YAAA;AAAA,QAClB,iBAAA,CAAkB,SAAA;AAAA,QAClB,iBAAA,CAAkB,SAAS,QAAA,EAAS;AAAA,QACpC,iBAAA,CAAkB;AAAA,OACpB;AAAA,MACA;AAAA,QACE,QAAA,EAAU;AAAA;AACZ;AACF,GACF;AAAA,EACA,OAAA,CAAQ,eAAA,EAAiB,EAAE,MAAA,EAAO,EAAG;AACnC,IAAA,OAAO,eAAA,CAAgB;AAAA,MACrB,IAAA,EAAM,WAAA;AAAA,MACN,QAAA,EAAU,YAAA;AAAA,MACV,QAAQ,MAAM;AACZ,QAAA,MAAM,QAAA,GAAW,MAAA,CAAO,QAAA,CAAS,GAAA,CAAI,CAAA,OAAA,MAAY;AAAA,UAC/C,IAAA,EAAM,OAAA,CAAQ,GAAA,CAAI,iBAAA,CAAkB,SAAS,CAAA;AAAA,UAC7C,KAAA,EAAO,OAAA,CAAQ,GAAA,CAAI,iBAAA,CAAkB,KAAK,CAAA;AAAA,UAC1C,QAAA,EAAU,OAAA,CAAQ,GAAA,CAAI,iBAAA,CAAkB,YAAY;AAAA,SACtD,CAAE,CAAA;AACF,QAAA,OAAO,OAAO,yCAA4B,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,yBAC9C,CAAA,CAAE,YAAA,EAAF,EAAe,QAAA,EAAoB,CACrC,CAAA;AAAA,MACH;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;AAGM,MAAM,eAAA,GAAkB,iBAAiB,IAAA,CAAK;AAAA,EACnD,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,UAAA;AAAA,IACP,QAAA,EAAU,YAAA;AAAA,IACV,IAAA,EAAM;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,UAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAE;AAAA,EACxD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,UAAA,EAAY,CAAC,WAAA,EAAa,YAAA,EAAc,eAAe;AACzD,CAAC,CAAA;;;;"}
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 createExtensionInput,\n coreExtensionData,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../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.makeWithOverrides({\n inputs: {\n contents: createExtensionInput(\n [\n coreExtensionData.reactElement,\n coreExtensionData.routePath,\n coreExtensionData.routeRef.optional(),\n coreExtensionData.title,\n ],\n {\n optional: true,\n },\n ),\n },\n factory(originalFactory, { inputs }) {\n return originalFactory({\n path: '/devtools',\n routeRef: rootRouteRef,\n loader: () => {\n const contents = inputs.contents.map(content => ({\n path: content.get(coreExtensionData.routePath),\n title: content.get(coreExtensionData.title),\n children: content.get(coreExtensionData.reactElement),\n }));\n return import('../components/DevToolsPage').then(m => (\n <m.DevToolsPage contents={contents} />\n ));\n },\n });\n },\n});\n\n/** @alpha */\nexport const devToolsNavItem = NavItemBlueprint.make({\n params: {\n title: 'DevTools',\n routeRef: rootRouteRef,\n icon: BuildIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'devtools',\n title: 'DevTools',\n icon: <BuildIcon />,\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n },\n extensions: [devToolsApi, devToolsPage, devToolsNavItem],\n});\n"],"names":[],"mappings":";;;;;;;AAgCO,MAAM,WAAA,GAAc,aAAa,IAAA,CAAK;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,cAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ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O,UAAA;AAAA,IACP,QAAA,EAAU,YAAA;AAAA,IACV,IAAA,EAAM;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,UAAA;AAAA,EACV,KAAA,EAAO,UAAA;AAAA,EACP,IAAA,sBAAO,SAAA,EAAA,EAAU,CAAA;AAAA,EACjB,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAE;AAAA,EACxD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,UAAA,EAAY,CAAC,WAAA,EAAa,YAAA,EAAc,eAAe;AACzD,CAAC,CAAA;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -35,14 +35,31 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
35
35
  "page:devtools": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
36
36
  config: {
37
37
  path: string | undefined;
38
+ title: string | undefined;
38
39
  };
39
40
  configInput: {
41
+ title?: string | undefined;
40
42
  path?: string | undefined;
41
43
  };
42
- 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", {
44
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
45
+ optional: true;
46
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
47
+ optional: true;
48
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
43
49
  optional: true;
44
50
  }>;
45
51
  inputs: {
52
+ pages: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
53
+ optional: true;
54
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
55
+ optional: true;
56
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
57
+ optional: true;
58
+ }>, {
59
+ singleton: false;
60
+ optional: false;
61
+ internal: false;
62
+ }>;
46
63
  contents: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
47
64
  optional: true;
48
65
  }>, {
@@ -56,8 +73,11 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
56
73
  params: {
57
74
  defaultPath?: [Error: `Use the 'path' param instead`];
58
75
  path: string;
59
- loader: () => Promise<JSX.Element>;
76
+ title?: string;
77
+ icon?: _backstage_frontend_plugin_api.IconElement;
78
+ loader?: () => Promise<react.JSX.Element>;
60
79
  routeRef?: _backstage_frontend_plugin_api.RouteRef;
80
+ noHeader?: boolean;
61
81
  };
62
82
  }>;
63
83
  }>;
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-devtools";
2
- var version = "0.1.36-next.1";
2
+ var version = "0.1.37-next.0";
3
3
  var backstage = {
4
4
  role: "frontend-plugin",
5
5
  pluginId: "devtools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-devtools",
3
- "version": "0.1.36-next.1",
3
+ "version": "0.1.37-next.0",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "devtools",
@@ -65,14 +65,14 @@
65
65
  "test": "backstage-cli package test"
66
66
  },
67
67
  "dependencies": {
68
- "@backstage/core-compat-api": "0.5.8-next.2",
69
- "@backstage/core-components": "0.18.7-next.2",
70
- "@backstage/core-plugin-api": "1.12.3-next.1",
68
+ "@backstage/core-compat-api": "0.5.9-next.0",
69
+ "@backstage/core-components": "0.18.8-next.0",
70
+ "@backstage/core-plugin-api": "1.12.4-next.0",
71
71
  "@backstage/errors": "1.2.7",
72
- "@backstage/frontend-plugin-api": "0.14.0-next.2",
73
- "@backstage/plugin-devtools-common": "0.1.22-next.0",
74
- "@backstage/plugin-devtools-react": "0.1.1-next.1",
75
- "@backstage/plugin-permission-react": "0.4.40-next.1",
72
+ "@backstage/frontend-plugin-api": "0.14.2-next.0",
73
+ "@backstage/plugin-devtools-common": "0.1.22",
74
+ "@backstage/plugin-devtools-react": "0.1.2-next.0",
75
+ "@backstage/plugin-permission-react": "0.4.41-next.0",
76
76
  "@material-ui/core": "^4.9.13",
77
77
  "@material-ui/icons": "^4.9.1",
78
78
  "@material-ui/lab": "^4.0.0-alpha.57",
@@ -81,8 +81,8 @@
81
81
  "react-use": "^17.2.4"
82
82
  },
83
83
  "devDependencies": {
84
- "@backstage/cli": "0.35.4-next.2",
85
- "@backstage/dev-utils": "1.1.20-next.2",
84
+ "@backstage/cli": "0.35.5-next.0",
85
+ "@backstage/dev-utils": "1.1.21-next.0",
86
86
  "@testing-library/jest-dom": "^6.0.0",
87
87
  "@types/lodash": "^4.14.151",
88
88
  "@types/react": "^18.0.0",