@red-hat-developer-hub/backstage-plugin-mui4-test 0.2.0 → 0.3.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-mui4-test
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9476d25: Added NFS support.
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,48 @@
1
+ /// <reference types="react" />
2
+ import * as react from 'react';
3
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
5
+
6
+ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
7
+ root: _backstage_core_plugin_api.RouteRef<undefined>;
8
+ }, {}, {
9
+ "nav-item:mui4-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
+ "page:mui4-test": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
27
+ kind: "page";
28
+ name: undefined;
29
+ config: {
30
+ path: string | undefined;
31
+ };
32
+ configInput: {
33
+ path?: string | undefined;
34
+ };
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", {
36
+ optional: true;
37
+ }>;
38
+ inputs: {};
39
+ params: {
40
+ defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
41
+ path: string;
42
+ loader: () => Promise<JSX.Element>;
43
+ routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
44
+ };
45
+ }>;
46
+ }>;
47
+
48
+ export { _default as default };
@@ -0,0 +1,29 @@
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 { MUI4TestPage } from './components/MUI4TestPage.esm.js';
6
+
7
+ const mui4TestPage = PageBlueprint.make({
8
+ params: {
9
+ path: "/mui4-test",
10
+ routeRef: rootRouteRef,
11
+ loader: async () => /* @__PURE__ */ jsx(MUI4TestPage, {})
12
+ }
13
+ });
14
+ const mui4TestNavItem = NavItemBlueprint.make({
15
+ params: {
16
+ title: "MUI v4 Tests",
17
+ routeRef: rootRouteRef,
18
+ icon: ExtensionIcon
19
+ }
20
+ });
21
+ var index = createFrontendPlugin({
22
+ pluginId: "mui4-test",
23
+ info: { packageJson: () => import('./package.json.esm.js') },
24
+ extensions: [mui4TestPage, mui4TestNavItem],
25
+ routes: { root: rootRouteRef }
26
+ });
27
+
28
+ export { index as default };
29
+ //# sourceMappingURL=alpha.esm.js.map
@@ -0,0 +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 { MUI4TestPageComponent } from '..';\n\nconst mui4TestPage = PageBlueprint.make({\n params: {\n path: '/mui4-test',\n routeRef: rootRouteRef,\n loader: async () => <MUI4TestPageComponent />,\n },\n});\n\nconst mui4TestNavItem = NavItemBlueprint.make({\n params: {\n title: 'MUI v4 Tests',\n routeRef: rootRouteRef,\n icon: ExtensionIcon,\n },\n});\n\nexport default createFrontendPlugin({\n pluginId: 'mui4-test',\n info: { packageJson: () => import('../../package.json') },\n extensions: [mui4TestPage, mui4TestNavItem],\n routes: { root: rootRouteRef },\n});\n"],"names":["MUI4TestPageComponent"],"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;AAED,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;;;;"}
package/dist/index.d.ts CHANGED
@@ -10,6 +10,8 @@ declare const mui4TestPlugin: _backstage_core_plugin_api.BackstagePlugin<{
10
10
  /**
11
11
  * @public
12
12
  */
13
+ declare const MUI4TestPage$1: () => react_jsx_runtime.JSX.Element;
14
+
13
15
  declare const MUI4TestPage: () => react_jsx_runtime.JSX.Element;
14
16
 
15
- export { MUI4TestPage, mui4TestPlugin };
17
+ export { MUI4TestPage$1 as MUI4TestPage, MUI4TestPage as MUI4TestPageComponent, mui4TestPlugin };
package/dist/index.esm.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { unstable_ClassNameGenerator } from '@mui/material/className';
2
2
  export { MUI4TestPage, mui4TestPlugin } from './plugin.esm.js';
3
+ export { MUI4TestPage as MUI4TestPageComponent } from './components/MUI4TestPage.esm.js';
3
4
 
4
5
  unstable_ClassNameGenerator.configure((componentName) => {
5
6
  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';\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';\nexport { MUI4TestPage as MUI4TestPageComponent } from './components/MUI4TestPage';\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"}
@@ -0,0 +1,92 @@
1
+ var name = "@red-hat-developer-hub/backstage-plugin-mui4-test";
2
+ var version = "0.3.0";
3
+ var main = "src/index.ts";
4
+ var types = "src/index.ts";
5
+ var license = "Apache-2.0";
6
+ var publishConfig = {
7
+ access: "public"
8
+ };
9
+ var repository = {
10
+ type: "git",
11
+ url: "https://github.com/redhat-developer/rhdh-plugins",
12
+ directory: "workspaces/theme/plugins/mui4-test"
13
+ };
14
+ var backstage = {
15
+ role: "frontend-plugin",
16
+ pluginId: "mui4-test",
17
+ pluginPackages: [
18
+ "@red-hat-developer-hub/backstage-plugin-mui4-test"
19
+ ]
20
+ };
21
+ var sideEffects = false;
22
+ var exports = {
23
+ ".": "./src/index.ts",
24
+ "./alpha": "./src/alpha/index.tsx",
25
+ "./package.json": "./package.json"
26
+ };
27
+ var typesVersions = {
28
+ "*": {
29
+ alpha: [
30
+ "src/alpha/index.tsx"
31
+ ],
32
+ "package.json": [
33
+ "package.json"
34
+ ]
35
+ }
36
+ };
37
+ var scripts = {
38
+ start: "backstage-cli package start",
39
+ build: "backstage-cli package build",
40
+ lint: "backstage-cli package lint",
41
+ test: "backstage-cli package test",
42
+ clean: "backstage-cli package clean",
43
+ prepack: "backstage-cli package prepack",
44
+ postpack: "backstage-cli package postpack"
45
+ };
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
+ "@material-ui/core": "^4.9.13",
51
+ "@material-ui/icons": "^4.9.1",
52
+ "@material-ui/lab": "^4.0.0-alpha.61",
53
+ "@mui/material": "^5"
54
+ };
55
+ var peerDependencies = {
56
+ react: "^16.13.1 || ^17.0.0 || ^18.0.0"
57
+ };
58
+ var devDependencies = {
59
+ "@backstage/cli": "^0.34.5",
60
+ "@backstage/core-app-api": "^1.19.2",
61
+ "@backstage/dev-utils": "^1.1.17",
62
+ "@backstage/test-utils": "^1.7.13",
63
+ "@testing-library/jest-dom": "^6.0.0",
64
+ "@testing-library/react": "^14.0.0",
65
+ "@testing-library/user-event": "^14.0.0",
66
+ msw: "^1.0.0",
67
+ react: "^16.13.1 || ^17.0.0 || ^18.0.0"
68
+ };
69
+ var files = [
70
+ "dist"
71
+ ];
72
+ var _package = {
73
+ name: name,
74
+ version: version,
75
+ main: main,
76
+ types: types,
77
+ license: license,
78
+ publishConfig: publishConfig,
79
+ repository: repository,
80
+ backstage: backstage,
81
+ sideEffects: sideEffects,
82
+ exports: exports,
83
+ typesVersions: typesVersions,
84
+ scripts: scripts,
85
+ dependencies: dependencies,
86
+ peerDependencies: peerDependencies,
87
+ devDependencies: devDependencies,
88
+ files: files
89
+ };
90
+
91
+ export { backstage, _package as default, dependencies, devDependencies, exports, files, license, main, name, peerDependencies, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
92
+ //# sourceMappingURL=package.json.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-mui4-test",
3
- "version": "0.2.0",
4
- "main": "dist/index.esm.js",
5
- "types": "dist/index.d.ts",
3
+ "version": "0.3.0",
4
+ "main": "./dist/index.esm.js",
5
+ "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
8
- "access": "public",
9
- "main": "dist/index.esm.js",
10
- "types": "dist/index.d.ts"
8
+ "access": "public"
11
9
  },
12
10
  "repository": {
13
11
  "type": "git",
@@ -19,9 +17,36 @@
19
17
  "pluginId": "mui4-test",
20
18
  "pluginPackages": [
21
19
  "@red-hat-developer-hub/backstage-plugin-mui4-test"
22
- ]
20
+ ],
21
+ "features": {
22
+ "./alpha": "@backstage/FrontendPlugin"
23
+ }
23
24
  },
24
25
  "sideEffects": false,
26
+ "exports": {
27
+ ".": {
28
+ "import": "./dist/index.esm.js",
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.esm.js"
31
+ },
32
+ "./alpha": {
33
+ "backstage": "@backstage/FrontendPlugin",
34
+ "import": "./dist/alpha.esm.js",
35
+ "types": "./dist/alpha.d.ts",
36
+ "default": "./dist/alpha.esm.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "typesVersions": {
41
+ "*": {
42
+ "alpha": [
43
+ "dist/alpha.d.ts"
44
+ ],
45
+ "package.json": [
46
+ "package.json"
47
+ ]
48
+ }
49
+ },
25
50
  "scripts": {
26
51
  "start": "backstage-cli package start",
27
52
  "build": "backstage-cli package build",
@@ -57,12 +82,5 @@
57
82
  "files": [
58
83
  "dist"
59
84
  ],
60
- "typesVersions": {
61
- "*": {
62
- "package.json": [
63
- "package.json"
64
- ]
65
- }
66
- },
67
85
  "module": "./dist/index.esm.js"
68
86
  }