@red-hat-developer-hub/backstage-plugin-mui4-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 +6 -0
- package/dist/alpha.d.ts +28 -27
- package/dist/alpha.esm.js +9 -15
- package/dist/alpha.esm.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +0 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/package.json.esm.js +11 -11
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
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
|
-
declare const
|
|
7
|
-
root:
|
|
4
|
+
declare const plugin: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
5
|
+
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
8
6
|
}, {}, {
|
|
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
7
|
"page:mui4-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<
|
|
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
|
-
|
|
43
|
-
|
|
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
|
}>;
|
|
47
48
|
|
|
48
|
-
export {
|
|
49
|
+
export { plugin as default };
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import ExtensionIcon from '@material-ui/icons/Extension';
|
|
5
|
-
import { MUI4TestPage } from './components/MUI4TestPage.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 mui4TestPage = PageBlueprint.make({
|
|
8
7
|
params: {
|
|
9
|
-
path: "/mui4-
|
|
10
|
-
routeRef: rootRouteRef,
|
|
11
|
-
loader: async () => /* @__PURE__ */ jsx(MUI4TestPage, {})
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const mui4TestNavItem = NavItemBlueprint.make({
|
|
15
|
-
params: {
|
|
8
|
+
path: "/mui4-tests",
|
|
16
9
|
title: "MUI v4 Tests",
|
|
10
|
+
icon: /* @__PURE__ */ jsx(RiPuzzleLine, {}),
|
|
17
11
|
routeRef: rootRouteRef,
|
|
18
|
-
|
|
12
|
+
loader: async () => import('./components/MUI4TestPage.esm.js').then((m) => /* @__PURE__ */ jsx(m.MUI4TestPage, {}))
|
|
19
13
|
}
|
|
20
14
|
});
|
|
21
|
-
|
|
15
|
+
const plugin = createFrontendPlugin({
|
|
22
16
|
pluginId: "mui4-test",
|
|
23
17
|
info: { packageJson: () => import('./package.json.esm.js') },
|
|
24
|
-
extensions: [mui4TestPage
|
|
18
|
+
extensions: [mui4TestPage],
|
|
25
19
|
routes: { root: rootRouteRef }
|
|
26
20
|
});
|
|
27
21
|
|
|
28
|
-
export {
|
|
22
|
+
export { plugin as default };
|
|
29
23
|
//# sourceMappingURL=alpha.esm.js.map
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -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
|
|
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 createRouteRef,\n createFrontendPlugin,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { RiPuzzleLine } from '@remixicon/react';\n\nconst rootRouteRef = createRouteRef();\n\nconst mui4TestPage = PageBlueprint.make({\n params: {\n path: '/mui4-tests',\n title: 'MUI v4 Tests',\n icon: <RiPuzzleLine />,\n routeRef: rootRouteRef,\n loader: async () =>\n import('../components/MUI4TestPage').then(m => <m.MUI4TestPage />),\n },\n});\n\n/*\n * @alpha\n */\nconst plugin = createFrontendPlugin({\n pluginId: 'mui4-test',\n info: { packageJson: () => import('../../package.json') },\n extensions: [mui4TestPage],\n routes: { root: rootRouteRef },\n});\n\nexport default plugin;\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,MAAM,SAAS,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;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ 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
|
-
|
|
15
13
|
declare const MUI4TestPage: () => react_jsx_runtime.JSX.Element;
|
|
16
14
|
|
|
17
|
-
export { MUI4TestPage
|
|
15
|
+
export { MUI4TestPage, mui4TestPlugin };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
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';
|
|
4
3
|
|
|
5
4
|
unstable_ClassNameGenerator.configure((componentName) => {
|
|
6
5
|
return componentName.startsWith("v5-") ? componentName : `v5-${componentName}`;
|
package/dist/index.esm.js.map
CHANGED
|
@@ -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';\
|
|
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"}
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@red-hat-developer-hub/backstage-plugin-mui4-test";
|
|
2
|
-
var version = "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,22 +44,22 @@ var scripts = {
|
|
|
44
44
|
postpack: "backstage-cli package postpack"
|
|
45
45
|
};
|
|
46
46
|
var dependencies = {
|
|
47
|
-
"@backstage/core-components": "^0.18.
|
|
48
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
49
|
-
"@backstage/plugin-
|
|
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",
|
|
50
51
|
"@material-ui/core": "^4.9.13",
|
|
51
|
-
"@material
|
|
52
|
-
"@
|
|
53
|
-
"@mui/material": "^5"
|
|
52
|
+
"@mui/material": "^5",
|
|
53
|
+
"@remixicon/react": "^4.9.0"
|
|
54
54
|
};
|
|
55
55
|
var peerDependencies = {
|
|
56
56
|
react: "^16.13.1 || ^17.0.0 || ^18.0.0"
|
|
57
57
|
};
|
|
58
58
|
var devDependencies = {
|
|
59
|
-
"@backstage/cli": "^0.
|
|
60
|
-
"@backstage/core-app-api": "^1.19.
|
|
61
|
-
"@backstage/dev-utils": "^1.1.
|
|
62
|
-
"@backstage/test-utils": "^1.7.
|
|
59
|
+
"@backstage/cli": "^0.36.0",
|
|
60
|
+
"@backstage/core-app-api": "^1.19.6",
|
|
61
|
+
"@backstage/dev-utils": "^1.1.21",
|
|
62
|
+
"@backstage/test-utils": "^1.7.16",
|
|
63
63
|
"@testing-library/jest-dom": "^6.0.0",
|
|
64
64
|
"@testing-library/react": "^14.0.0",
|
|
65
65
|
"@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-mui4-test",
|
|
3
|
-
"version": "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,22 +57,22 @@
|
|
|
57
57
|
"postpack": "backstage-cli package postpack"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@backstage/core-components": "^0.18.
|
|
61
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
62
|
-
"@backstage/plugin-
|
|
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",
|
|
63
64
|
"@material-ui/core": "^4.9.13",
|
|
64
|
-
"@material
|
|
65
|
-
"@
|
|
66
|
-
"@mui/material": "^5"
|
|
65
|
+
"@mui/material": "^5",
|
|
66
|
+
"@remixicon/react": "^4.9.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@backstage/cli": "^0.
|
|
73
|
-
"@backstage/core-app-api": "^1.19.
|
|
74
|
-
"@backstage/dev-utils": "^1.1.
|
|
75
|
-
"@backstage/test-utils": "^1.7.
|
|
72
|
+
"@backstage/cli": "^0.36.0",
|
|
73
|
+
"@backstage/core-app-api": "^1.19.6",
|
|
74
|
+
"@backstage/dev-utils": "^1.1.21",
|
|
75
|
+
"@backstage/test-utils": "^1.7.16",
|
|
76
76
|
"@testing-library/jest-dom": "^6.0.0",
|
|
77
77
|
"@testing-library/react": "^14.0.0",
|
|
78
78
|
"@testing-library/user-event": "^14.0.0",
|