@red-hat-developer-hub/backstage-plugin-mui5-test 0.3.0 → 0.4.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,11 @@
1
1
  # @red-hat-developer-hub/backstage-plugin-mui5-test
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0b7c442: Backstage version bump to v1.49.2
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/alpha.d.ts CHANGED
@@ -1,46 +1,47 @@
1
- /// <reference types="react" />
2
1
  import * as react from 'react';
3
2
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
- import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
5
3
 
6
4
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
7
- root: _backstage_core_plugin_api.RouteRef<undefined>;
5
+ root: _backstage_frontend_plugin_api.RouteRef<undefined>;
8
6
  }, {}, {
9
- "nav-item:mui5-test": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
10
- kind: "nav-item";
11
- name: undefined;
12
- config: {};
13
- configInput: {};
14
- output: _backstage_frontend_plugin_api.ExtensionDataRef<{
15
- title: string;
16
- icon: _backstage_frontend_plugin_api.IconComponent;
17
- routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
18
- }, "core.nav-item.target", {}>;
19
- inputs: {};
20
- params: {
21
- title: string;
22
- icon: _backstage_frontend_plugin_api.IconComponent;
23
- routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
24
- };
25
- }>;
26
7
  "page:mui5-test": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
27
8
  kind: "page";
28
9
  name: undefined;
29
10
  config: {
30
11
  path: string | undefined;
12
+ title: string | undefined;
31
13
  };
32
14
  configInput: {
15
+ title?: string | undefined;
33
16
  path?: string | undefined;
34
17
  };
35
- 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", {
18
+ 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", {
19
+ optional: true;
20
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
21
+ optional: true;
22
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
36
23
  optional: true;
37
24
  }>;
38
- inputs: {};
25
+ inputs: {
26
+ 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", {
27
+ optional: true;
28
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
29
+ optional: true;
30
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
31
+ optional: true;
32
+ }>, {
33
+ singleton: false;
34
+ optional: false;
35
+ internal: false;
36
+ }>;
37
+ };
39
38
  params: {
40
- defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
41
39
  path: string;
42
- loader: () => Promise<JSX.Element>;
43
- routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
40
+ title?: string;
41
+ icon?: _backstage_frontend_plugin_api.IconElement;
42
+ loader?: () => Promise<react.JSX.Element>;
43
+ routeRef?: _backstage_frontend_plugin_api.RouteRef;
44
+ noHeader?: boolean;
44
45
  };
45
46
  }>;
46
47
  }>;
package/dist/alpha.esm.js CHANGED
@@ -1,27 +1,21 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
- import { rootRouteRef } from './routes.esm.js';
4
- import ExtensionIcon from '@material-ui/icons/Extension';
5
- import { MUI5TestPage } from './components/MUI5TestPage.esm.js';
2
+ import { createRouteRef, PageBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
+ import { RiPuzzleLine } from '@remixicon/react';
6
4
 
5
+ const rootRouteRef = createRouteRef();
7
6
  const mui5TestPage = PageBlueprint.make({
8
7
  params: {
9
- path: "/mui5-test",
10
- routeRef: rootRouteRef,
11
- loader: async () => /* @__PURE__ */ jsx(MUI5TestPage, {})
12
- }
13
- });
14
- const mui5TestNavItem = NavItemBlueprint.make({
15
- params: {
8
+ path: "/mui5-tests",
16
9
  title: "MUI v5 Tests",
10
+ icon: /* @__PURE__ */ jsx(RiPuzzleLine, {}),
17
11
  routeRef: rootRouteRef,
18
- icon: ExtensionIcon
12
+ loader: async () => import('./components/MUI5TestPage.esm.js').then((m) => /* @__PURE__ */ jsx(m.MUI5TestPage, {}))
19
13
  }
20
14
  });
21
15
  var index = createFrontendPlugin({
22
16
  pluginId: "mui5-test",
23
17
  info: { packageJson: () => import('./package.json.esm.js') },
24
- extensions: [mui5TestPage, mui5TestNavItem],
18
+ extensions: [mui5TestPage],
25
19
  routes: { root: rootRouteRef }
26
20
  });
27
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":["../src/alpha/index.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 NavItemBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from '../routes';\nimport ExtensionIcon from '@material-ui/icons/Extension';\nimport { MUI5TestPageComponent } from '..';\n\nconst mui5TestPage = PageBlueprint.make({\n params: {\n path: '/mui5-test',\n routeRef: rootRouteRef,\n loader: async () => <MUI5TestPageComponent />,\n },\n});\n\nconst mui5TestNavItem = NavItemBlueprint.make({\n params: {\n title: 'MUI v5 Tests',\n routeRef: rootRouteRef,\n icon: ExtensionIcon,\n },\n});\n\n/*\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'mui5-test',\n info: { packageJson: () => import('../../package.json') },\n extensions: [mui5TestPage, mui5TestNavItem],\n routes: { root: rootRouteRef },\n});\n"],"names":["MUI5TestPageComponent"],"mappings":";;;;;;AAyBA,MAAM,YAAA,GAAe,cAAc,IAAK,CAAA;AAAA,EACtC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,QAAU,EAAA,YAAA;AAAA,IACV,MAAA,EAAQ,4BAAY,GAAA,CAACA,YAAsB,EAAA,EAAA;AAAA;AAE/C,CAAC,CAAA;AAED,MAAM,eAAA,GAAkB,iBAAiB,IAAK,CAAA;AAAA,EAC5C,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,cAAA;AAAA,IACP,QAAU,EAAA,YAAA;AAAA,IACV,IAAM,EAAA;AAAA;AAEV,CAAC,CAAA;AAKD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,WAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAoB,CAAE,EAAA;AAAA,EACxD,UAAA,EAAY,CAAC,YAAA,EAAc,eAAe,CAAA;AAAA,EAC1C,MAAA,EAAQ,EAAE,IAAA,EAAM,YAAa;AAC/B,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":["../src/alpha/index.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 createRouteRef,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { RiPuzzleLine } from '@remixicon/react';\n\nconst rootRouteRef = createRouteRef();\n\nconst mui5TestPage = PageBlueprint.make({\n params: {\n path: '/mui5-tests',\n title: 'MUI v5 Tests',\n icon: <RiPuzzleLine />,\n routeRef: rootRouteRef,\n loader: async () =>\n import('../components/MUI5TestPage').then(m => <m.MUI5TestPage />),\n },\n});\n\n/*\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'mui5-test',\n info: { packageJson: () => import('../../package.json') },\n extensions: [mui5TestPage],\n routes: { root: rootRouteRef },\n});\n"],"names":[],"mappings":";;;;AAuBA,MAAM,eAAe,cAAe,EAAA;AAEpC,MAAM,YAAA,GAAe,cAAc,IAAK,CAAA;AAAA,EACtC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,aAAA;AAAA,IACN,KAAO,EAAA,cAAA;AAAA,IACP,IAAA,sBAAO,YAAa,EAAA,EAAA,CAAA;AAAA,IACpB,QAAU,EAAA,YAAA;AAAA,IACV,MAAA,EAAQ,YACN,OAAO,kCAA4B,CAAA,CAAE,IAAK,CAAA,CAAA,CAAA,qBAAM,GAAA,CAAA,CAAA,CAAE,YAAF,EAAA,EAAe,CAAE;AAAA;AAEvE,CAAC,CAAA;AAKD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,WAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAoB,CAAE,EAAA;AAAA,EACxD,UAAA,EAAY,CAAC,YAAY,CAAA;AAAA,EACzB,MAAA,EAAQ,EAAE,IAAA,EAAM,YAAa;AAC/B,CAAC,CAAA;;;;"}
package/dist/index.d.ts CHANGED
@@ -10,8 +10,6 @@ declare const mui5TestPlugin: _backstage_core_plugin_api.BackstagePlugin<{
10
10
  /**
11
11
  * @public
12
12
  */
13
- declare const MUI5TestPage$1: () => react_jsx_runtime.JSX.Element;
14
-
15
13
  declare const MUI5TestPage: () => react_jsx_runtime.JSX.Element;
16
14
 
17
- export { MUI5TestPage$1 as MUI5TestPage, MUI5TestPage as MUI5TestPageComponent, mui5TestPlugin };
15
+ export { MUI5TestPage, mui5TestPlugin };
package/dist/index.esm.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { unstable_ClassNameGenerator } from '@mui/material/className';
2
2
  export { MUI5TestPage, mui5TestPlugin } from './plugin.esm.js';
3
- export { MUI5TestPage as MUI5TestPageComponent } from './components/MUI5TestPage.esm.js';
4
3
 
5
4
  unstable_ClassNameGenerator.configure((componentName) => {
6
5
  return componentName.startsWith("v5-") ? componentName : `v5-${componentName}`;
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/className';\n\nClassNameGenerator.configure(componentName => {\n return componentName.startsWith('v5-')\n ? componentName\n : `v5-${componentName}`;\n});\n\nexport * from './plugin';\nexport { MUI5TestPage as MUI5TestPageComponent } from './components/MUI5TestPage';\n"],"names":["ClassNameGenerator"],"mappings":";;;;AAiBAA,2BAAA,CAAmB,UAAU,CAAiB,aAAA,KAAA;AAC5C,EAAA,OAAO,cAAc,UAAW,CAAA,KAAK,CACjC,GAAA,aAAA,GACA,MAAM,aAAa,CAAA,CAAA;AACzB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/className';\n\nClassNameGenerator.configure(componentName => {\n return componentName.startsWith('v5-')\n ? componentName\n : `v5-${componentName}`;\n});\n\nexport * from './plugin';\n"],"names":["ClassNameGenerator"],"mappings":";;;AAiBAA,2BAAA,CAAmB,UAAU,CAAiB,aAAA,KAAA;AAC5C,EAAA,OAAO,cAAc,UAAW,CAAA,KAAK,CACjC,GAAA,aAAA,GACA,MAAM,aAAa,CAAA,CAAA;AACzB,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  var name = "@red-hat-developer-hub/backstage-plugin-mui5-test";
2
- var version = "0.3.0";
2
+ var version = "0.4.0";
3
3
  var main = "src/index.ts";
4
4
  var types = "src/index.ts";
5
5
  var license = "Apache-2.0";
@@ -44,21 +44,21 @@ var scripts = {
44
44
  postpack: "backstage-cli package postpack"
45
45
  };
46
46
  var dependencies = {
47
- "@backstage/core-components": "^0.18.3",
48
- "@backstage/core-plugin-api": "^1.12.0",
49
- "@backstage/plugin-user-settings": "^0.8.29",
50
- "@mui/icons-material": "^5",
47
+ "@backstage/core-components": "^0.18.8",
48
+ "@backstage/core-plugin-api": "^1.12.4",
49
+ "@backstage/frontend-plugin-api": "^0.15.1",
50
+ "@backstage/plugin-user-settings": "^0.9.1",
51
51
  "@mui/material": "^5",
52
- "@mui/styles": "^5"
52
+ "@remixicon/react": "^4.9.0"
53
53
  };
54
54
  var peerDependencies = {
55
55
  react: "^16.13.1 || ^17.0.0 || ^18.0.0"
56
56
  };
57
57
  var devDependencies = {
58
- "@backstage/cli": "^0.34.5",
59
- "@backstage/core-app-api": "^1.19.2",
60
- "@backstage/dev-utils": "^1.1.17",
61
- "@backstage/test-utils": "^1.7.13",
58
+ "@backstage/cli": "^0.36.0",
59
+ "@backstage/core-app-api": "^1.19.6",
60
+ "@backstage/dev-utils": "^1.1.21",
61
+ "@backstage/test-utils": "^1.7.16",
62
62
  "@testing-library/jest-dom": "^6.0.0",
63
63
  "@testing-library/react": "^14.0.0",
64
64
  "@testing-library/user-event": "^14.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-mui5-test",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "main": "./dist/index.esm.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -57,21 +57,21 @@
57
57
  "postpack": "backstage-cli package postpack"
58
58
  },
59
59
  "dependencies": {
60
- "@backstage/core-components": "^0.18.3",
61
- "@backstage/core-plugin-api": "^1.12.0",
62
- "@backstage/plugin-user-settings": "^0.8.29",
63
- "@mui/icons-material": "^5",
60
+ "@backstage/core-components": "^0.18.8",
61
+ "@backstage/core-plugin-api": "^1.12.4",
62
+ "@backstage/frontend-plugin-api": "^0.15.1",
63
+ "@backstage/plugin-user-settings": "^0.9.1",
64
64
  "@mui/material": "^5",
65
- "@mui/styles": "^5"
65
+ "@remixicon/react": "^4.9.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^16.13.1 || ^17.0.0 || ^18.0.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@backstage/cli": "^0.34.5",
72
- "@backstage/core-app-api": "^1.19.2",
73
- "@backstage/dev-utils": "^1.1.17",
74
- "@backstage/test-utils": "^1.7.13",
71
+ "@backstage/cli": "^0.36.0",
72
+ "@backstage/core-app-api": "^1.19.6",
73
+ "@backstage/dev-utils": "^1.1.21",
74
+ "@backstage/test-utils": "^1.7.16",
75
75
  "@testing-library/jest-dom": "^6.0.0",
76
76
  "@testing-library/react": "^14.0.0",
77
77
  "@testing-library/user-event": "^14.0.0",