@backstage/plugin-devtools 0.0.0-nightly-20260430032050 → 0.0.0-nightly-20260502031749
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,19 +1,20 @@
|
|
|
1
1
|
# @backstage/plugin-devtools
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20260502031749
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- b15ef55: Scheduled Tasks page now refreshes its table automatically after a task is triggered or cancelled, so the updated status is visible without reloading the browser.
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
- @backstage/
|
|
11
|
-
- @backstage/
|
|
12
|
-
- @backstage/
|
|
13
|
-
- @backstage/
|
|
14
|
-
- @backstage/core-
|
|
15
|
-
- @backstage/
|
|
16
|
-
- @backstage/plugin-
|
|
8
|
+
- 08c922e: Migrated `ConfigContent` component from Material UI to Backstage UI (BUI).
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/core-components@0.0.0-nightly-20260502031749
|
|
11
|
+
- @backstage/ui@0.0.0-nightly-20260502031749
|
|
12
|
+
- @backstage/errors@0.0.0-nightly-20260502031749
|
|
13
|
+
- @backstage/frontend-plugin-api@0.0.0-nightly-20260502031749
|
|
14
|
+
- @backstage/core-plugin-api@0.0.0-nightly-20260502031749
|
|
15
|
+
- @backstage/core-compat-api@0.0.0-nightly-20260502031749
|
|
16
|
+
- @backstage/plugin-permission-react@0.0.0-nightly-20260502031749
|
|
17
|
+
- @backstage/plugin-devtools-common@0.0.0-nightly-20260502031749
|
|
17
18
|
|
|
18
19
|
## 0.1.39-next.1
|
|
19
20
|
|
|
@@ -1,57 +1,49 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Progress, WarningPanel } from '@backstage/core-components';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useTheme, makeStyles, createStyles } from '@material-ui/core/styles';
|
|
7
|
-
import Alert from '@material-ui/lab/Alert';
|
|
3
|
+
import { useApi, appThemeApiRef } from '@backstage/core-plugin-api';
|
|
4
|
+
import { Alert, Box, Text } from '@backstage/ui';
|
|
5
|
+
import useObservable from 'react-use/esm/useObservable';
|
|
8
6
|
import ReactJson from 'react-json-view';
|
|
9
7
|
import { useConfig } from '../../../hooks/useConfig.esm.js';
|
|
10
8
|
import '../../../api/DevToolsApi.esm.js';
|
|
11
9
|
import '@backstage/errors';
|
|
12
|
-
import '@backstage/core-plugin-api';
|
|
13
10
|
import 'react-use/esm/useAsync';
|
|
14
11
|
import 'react-use/esm/useAsyncRetry';
|
|
15
12
|
import 'react';
|
|
16
13
|
|
|
17
|
-
const useStyles = makeStyles(
|
|
18
|
-
(theme) => createStyles({
|
|
19
|
-
warningStyle: {
|
|
20
|
-
paddingBottom: theme.spacing(2)
|
|
21
|
-
},
|
|
22
|
-
paperStyle: {
|
|
23
|
-
padding: theme.spacing(2)
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
);
|
|
27
14
|
const WarningContent = ({ error }) => {
|
|
28
15
|
if (!error.messages) {
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
+
return /* @__PURE__ */ jsx(Text, { as: "p", children: error.message });
|
|
30
17
|
}
|
|
31
18
|
const messages = error.messages;
|
|
32
|
-
return /* @__PURE__ */ jsx(Box, { children: messages.map((message) => /* @__PURE__ */ jsx(
|
|
19
|
+
return /* @__PURE__ */ jsx(Box, { children: messages.map((message) => /* @__PURE__ */ jsx(Text, { as: "p", children: message }, message)) });
|
|
33
20
|
};
|
|
34
21
|
const ConfigContent = () => {
|
|
35
|
-
const
|
|
36
|
-
const
|
|
22
|
+
const appThemeApi = useApi(appThemeApiRef);
|
|
23
|
+
const activeThemeId = useObservable(
|
|
24
|
+
appThemeApi.activeThemeId$(),
|
|
25
|
+
appThemeApi.getActiveThemeId()
|
|
26
|
+
);
|
|
27
|
+
const activeTheme = appThemeApi.getInstalledThemes().find((t) => t.id === activeThemeId);
|
|
28
|
+
const isDark = activeTheme?.variant === "dark";
|
|
37
29
|
const { configInfo, loading, error } = useConfig();
|
|
38
30
|
if (loading) {
|
|
39
31
|
return /* @__PURE__ */ jsx(Progress, {});
|
|
40
32
|
} else if (error) {
|
|
41
|
-
return /* @__PURE__ */ jsx(Alert, {
|
|
33
|
+
return /* @__PURE__ */ jsx(Alert, { status: "danger", description: error.message });
|
|
42
34
|
}
|
|
43
35
|
if (!configInfo) {
|
|
44
|
-
return /* @__PURE__ */ jsx(Alert, {
|
|
36
|
+
return /* @__PURE__ */ jsx(Alert, { status: "danger", description: "Unable to load config data" });
|
|
45
37
|
}
|
|
46
38
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
47
|
-
configInfo && configInfo.error && /* @__PURE__ */ jsx(Box, {
|
|
48
|
-
/* @__PURE__ */ jsx(
|
|
39
|
+
configInfo && configInfo.error && /* @__PURE__ */ jsx(Box, { pb: "2", children: /* @__PURE__ */ jsx(WarningPanel, { title: "Config validation failed", children: /* @__PURE__ */ jsx(WarningContent, { error: configInfo.error }) }) }),
|
|
40
|
+
/* @__PURE__ */ jsx(Box, { bg: "neutral", p: "4", children: /* @__PURE__ */ jsx(
|
|
49
41
|
ReactJson,
|
|
50
42
|
{
|
|
51
43
|
src: configInfo.config,
|
|
52
44
|
name: "config",
|
|
53
45
|
enableClipboard: false,
|
|
54
|
-
theme:
|
|
46
|
+
theme: isDark ? "chalk" : "rjv-default"
|
|
55
47
|
}
|
|
56
48
|
) })
|
|
57
49
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigContent.esm.js","sources":["../../../../src/components/Content/ConfigContent/ConfigContent.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 { Progress, WarningPanel } from '@backstage/core-components';\nimport
|
|
1
|
+
{"version":3,"file":"ConfigContent.esm.js","sources":["../../../../src/components/Content/ConfigContent/ConfigContent.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 { Progress, WarningPanel } from '@backstage/core-components';\nimport { appThemeApiRef, useApi } from '@backstage/core-plugin-api';\nimport { Alert, Box, Text } from '@backstage/ui';\nimport useObservable from 'react-use/esm/useObservable';\nimport ReactJson from 'react-json-view';\nimport { useConfig } from '../../../hooks';\nimport { ConfigError } from '@backstage/plugin-devtools-common';\n\nexport const WarningContent = ({ error }: { error: ConfigError }) => {\n if (!error.messages) {\n return <Text as=\"p\">{error.message}</Text>;\n }\n\n const messages = error.messages;\n\n return (\n <Box>\n {messages.map(message => (\n <Text as=\"p\" key={message}>\n {message}\n </Text>\n ))}\n </Box>\n );\n};\n\n/** @public */\nexport const ConfigContent = () => {\n const appThemeApi = useApi(appThemeApiRef);\n const activeThemeId = useObservable(\n appThemeApi.activeThemeId$(),\n appThemeApi.getActiveThemeId(),\n );\n const activeTheme = appThemeApi\n .getInstalledThemes()\n .find(t => t.id === activeThemeId);\n const isDark = activeTheme?.variant === 'dark';\n const { configInfo, loading, error } = useConfig();\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <Alert status=\"danger\" description={error.message} />;\n }\n\n if (!configInfo) {\n return <Alert status=\"danger\" description=\"Unable to load config data\" />;\n }\n\n return (\n <Box>\n {configInfo && configInfo.error && (\n <Box pb=\"2\">\n <WarningPanel title=\"Config validation failed\">\n <WarningContent error={configInfo.error} />\n </WarningPanel>\n </Box>\n )}\n <Box bg=\"neutral\" p=\"4\">\n <ReactJson\n src={configInfo.config as object}\n name=\"config\"\n enableClipboard={false}\n theme={isDark ? 'chalk' : 'rjv-default'}\n />\n </Box>\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;AAwBO,MAAM,cAAA,GAAiB,CAAC,EAAE,KAAA,EAAM,KAA8B;AACnE,EAAA,IAAI,CAAC,MAAM,QAAA,EAAU;AACnB,IAAA,uBAAO,GAAA,CAAC,IAAA,EAAA,EAAK,EAAA,EAAG,GAAA,EAAK,gBAAM,OAAA,EAAQ,CAAA;AAAA,EACrC;AAEA,EAAA,MAAM,WAAW,KAAA,CAAM,QAAA;AAEvB,EAAA,uBACE,GAAA,CAAC,GAAA,EAAA,EACE,QAAA,EAAA,QAAA,CAAS,GAAA,CAAI,CAAA,OAAA,qBACZ,GAAA,CAAC,IAAA,EAAA,EAAK,EAAA,EAAG,GAAA,EACN,QAAA,EAAA,OAAA,EAAA,EADe,OAElB,CACD,CAAA,EACH,CAAA;AAEJ;AAGO,MAAM,gBAAgB,MAAM;AACjC,EAAA,MAAM,WAAA,GAAc,OAAO,cAAc,CAAA;AACzC,EAAA,MAAM,aAAA,GAAgB,aAAA;AAAA,IACpB,YAAY,cAAA,EAAe;AAAA,IAC3B,YAAY,gBAAA;AAAiB,GAC/B;AACA,EAAA,MAAM,WAAA,GAAc,YACjB,kBAAA,EAAmB,CACnB,KAAK,CAAA,CAAA,KAAK,CAAA,CAAE,OAAO,aAAa,CAAA;AACnC,EAAA,MAAM,MAAA,GAAS,aAAa,OAAA,KAAY,MAAA;AACxC,EAAA,MAAM,EAAE,UAAA,EAAY,OAAA,EAAS,KAAA,KAAU,SAAA,EAAU;AAEjD,EAAA,IAAI,OAAA,EAAS;AACX,IAAA,2BAAQ,QAAA,EAAA,EAAS,CAAA;AAAA,EACnB,WAAW,KAAA,EAAO;AAChB,IAAA,2BAAQ,KAAA,EAAA,EAAM,MAAA,EAAO,QAAA,EAAS,WAAA,EAAa,MAAM,OAAA,EAAS,CAAA;AAAA,EAC5D;AAEA,EAAA,IAAI,CAAC,UAAA,EAAY;AACf,IAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAM,MAAA,EAAO,QAAA,EAAS,aAAY,4BAAA,EAA6B,CAAA;AAAA,EACzE;AAEA,EAAA,4BACG,GAAA,EAAA,EACE,QAAA,EAAA;AAAA,IAAA,UAAA,IAAc,WAAW,KAAA,oBACxB,GAAA,CAAC,GAAA,EAAA,EAAI,EAAA,EAAG,KACN,QAAA,kBAAA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAM,0BAAA,EAClB,8BAAC,cAAA,EAAA,EAAe,KAAA,EAAO,UAAA,CAAW,KAAA,EAAO,GAC3C,CAAA,EACF,CAAA;AAAA,oBAEF,GAAA,CAAC,GAAA,EAAA,EAAI,EAAA,EAAG,SAAA,EAAU,GAAE,GAAA,EAClB,QAAA,kBAAA,GAAA;AAAA,MAAC,SAAA;AAAA,MAAA;AAAA,QACC,KAAK,UAAA,CAAW,MAAA;AAAA,QAChB,IAAA,EAAK,QAAA;AAAA,QACL,eAAA,EAAiB,KAAA;AAAA,QACjB,KAAA,EAAO,SAAS,OAAA,GAAU;AAAA;AAAA,KAC5B,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
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.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20260502031749",
|
|
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.0.0-nightly-
|
|
69
|
-
"@backstage/core-components": "0.0.0-nightly-
|
|
70
|
-
"@backstage/core-plugin-api": "0.0.0-nightly-
|
|
71
|
-
"@backstage/errors": "0.0.0-nightly-
|
|
72
|
-
"@backstage/frontend-plugin-api": "0.0.0-nightly-
|
|
73
|
-
"@backstage/plugin-devtools-common": "0.0.0-nightly-
|
|
74
|
-
"@backstage/plugin-permission-react": "0.0.0-nightly-
|
|
75
|
-
"@backstage/ui": "0.0.0-nightly-
|
|
68
|
+
"@backstage/core-compat-api": "0.0.0-nightly-20260502031749",
|
|
69
|
+
"@backstage/core-components": "0.0.0-nightly-20260502031749",
|
|
70
|
+
"@backstage/core-plugin-api": "0.0.0-nightly-20260502031749",
|
|
71
|
+
"@backstage/errors": "0.0.0-nightly-20260502031749",
|
|
72
|
+
"@backstage/frontend-plugin-api": "0.0.0-nightly-20260502031749",
|
|
73
|
+
"@backstage/plugin-devtools-common": "0.0.0-nightly-20260502031749",
|
|
74
|
+
"@backstage/plugin-permission-react": "0.0.0-nightly-20260502031749",
|
|
75
|
+
"@backstage/ui": "0.0.0-nightly-20260502031749",
|
|
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.0.0-nightly-
|
|
85
|
-
"@backstage/dev-utils": "0.0.0-nightly-
|
|
84
|
+
"@backstage/cli": "0.0.0-nightly-20260502031749",
|
|
85
|
+
"@backstage/dev-utils": "0.0.0-nightly-20260502031749",
|
|
86
86
|
"@testing-library/jest-dom": "^6.0.0",
|
|
87
87
|
"@types/lodash": "^4.14.151",
|
|
88
88
|
"@types/react": "^18.0.0",
|