@backstage-community/plugin-dynatrace 10.18.0 → 10.19.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/apis.esm.js +21 -0
- package/dist/alpha/apis.esm.js.map +1 -0
- package/dist/alpha/entityContent.esm.js +21 -0
- package/dist/alpha/entityContent.esm.js.map +1 -0
- package/dist/alpha.d.ts +65 -0
- package/dist/alpha.esm.js +16 -0
- package/dist/alpha.esm.js.map +1 -0
- package/package.json +35 -14
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApiBlueprint } from '@backstage/frontend-plugin-api';
|
|
2
|
+
import { dynatraceApiRef } from '../api/DynatraceApi.esm.js';
|
|
3
|
+
import { DynatraceClient } from '../api/DynatraceClient.esm.js';
|
|
4
|
+
import { fetchApiRef, discoveryApiRef } from '@backstage/core-plugin-api';
|
|
5
|
+
|
|
6
|
+
const dynatraceApiExtension = ApiBlueprint.make({
|
|
7
|
+
params: (defineParams) => defineParams({
|
|
8
|
+
api: dynatraceApiRef,
|
|
9
|
+
deps: {
|
|
10
|
+
discoveryApi: discoveryApiRef,
|
|
11
|
+
fetchApi: fetchApiRef
|
|
12
|
+
},
|
|
13
|
+
factory: ({ discoveryApi, fetchApi }) => new DynatraceClient({
|
|
14
|
+
discoveryApi,
|
|
15
|
+
fetchApi
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export { dynatraceApiExtension };
|
|
21
|
+
//# sourceMappingURL=apis.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.ts"],"sourcesContent":["/*\n * Copyright 2026 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 */\nimport { ApiBlueprint } from '@backstage/frontend-plugin-api';\nimport { dynatraceApiRef, DynatraceClient } from '../api';\nimport { discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';\n\n/**\n * @alpha\n */\nexport const dynatraceApiExtension = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: dynatraceApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new DynatraceClient({\n discoveryApi,\n fetchApi,\n }),\n }),\n});\n"],"names":[],"mappings":";;;;;AAsBO,MAAM,qBAAA,GAAwB,aAAa,IAAA,CAAK;AAAA,EACrD,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,eAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,SAAS,CAAC,EAAE,cAAc,QAAA,EAAS,KACjC,IAAI,eAAA,CAAgB;AAAA,MAClB,YAAA;AAAA,MACA;AAAA,KACD;AAAA,GACJ;AACL,CAAC;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { compatWrapper, convertLegacyRouteRef } from '@backstage/core-compat-api';
|
|
3
|
+
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
|
+
import { rootRouteRef } from '../routes.esm.js';
|
|
5
|
+
import { isDynatraceAvailable } from '../plugin.esm.js';
|
|
6
|
+
|
|
7
|
+
const entityDynatraceContent = EntityContentBlueprint.make({
|
|
8
|
+
name: "entity",
|
|
9
|
+
params: {
|
|
10
|
+
path: "/dynatrace",
|
|
11
|
+
title: "Dynatrace",
|
|
12
|
+
filter: isDynatraceAvailable,
|
|
13
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
14
|
+
loader: () => import('../components/DynatraceTab/index.esm.js').then(
|
|
15
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.DynatraceTab, {}))
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export { entityDynatraceContent };
|
|
21
|
+
//# sourceMappingURL=entityContent.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["/*\n * Copyright 2026 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 */\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { rootRouteRef } from '../routes';\nimport { isDynatraceAvailable } from '../plugin';\n\n/**\n * @alpha\n */\nexport const entityDynatraceContent = EntityContentBlueprint.make({\n name: 'entity',\n params: {\n path: '/dynatrace',\n title: 'Dynatrace',\n filter: isDynatraceAvailable,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/DynatraceTab').then(m =>\n compatWrapper(<m.DynatraceTab />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;;AA0BO,MAAM,sBAAA,GAAyB,uBAAuB,IAAA,CAAK;AAAA,EAChE,IAAA,EAAM,QAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,YAAA;AAAA,IACN,KAAA,EAAO,WAAA;AAAA,IACP,MAAA,EAAQ,oBAAA;AAAA,IACR,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAA,EAAQ,MACN,OAAO,yCAA4B,CAAA,CAAE,IAAA;AAAA,MAAK,OACxC,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,YAAA,EAAF,EAAe,CAAE;AAAA;AAClC;AAEN,CAAC;;;;"}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import * as _backstage_filter_predicates from '@backstage/filter-predicates';
|
|
4
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
10
|
+
entityContent: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
11
|
+
}, {}, {
|
|
12
|
+
"api:dynatrace": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
13
|
+
kind: "api";
|
|
14
|
+
name: undefined;
|
|
15
|
+
config: {};
|
|
16
|
+
configInput: {};
|
|
17
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
18
|
+
inputs: {};
|
|
19
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
20
|
+
}>;
|
|
21
|
+
"entity-content:dynatrace/entity": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
22
|
+
kind: "entity-content";
|
|
23
|
+
name: "entity";
|
|
24
|
+
config: {
|
|
25
|
+
path: string | undefined;
|
|
26
|
+
title: string | undefined;
|
|
27
|
+
filter: _backstage_filter_predicates.FilterPredicate | undefined;
|
|
28
|
+
group: string | false | undefined;
|
|
29
|
+
icon: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
configInput: {
|
|
32
|
+
path?: string | undefined;
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
filter?: _backstage_filter_predicates.FilterPredicate | undefined;
|
|
35
|
+
group?: string | false | undefined;
|
|
36
|
+
icon?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _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", {
|
|
39
|
+
optional: true;
|
|
40
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
41
|
+
optional: true;
|
|
42
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
43
|
+
optional: true;
|
|
44
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
45
|
+
optional: true;
|
|
46
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string | react.ReactElement<any, string | react.JSXElementConstructor<any>>, "catalog.entity-content-icon", {
|
|
47
|
+
optional: true;
|
|
48
|
+
}>;
|
|
49
|
+
inputs: {};
|
|
50
|
+
params: {
|
|
51
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
52
|
+
path: string;
|
|
53
|
+
defaultTitle?: [Error: `Use the 'title' param instead`];
|
|
54
|
+
title: string;
|
|
55
|
+
defaultGroup?: [Error: `Use the 'group' param instead`];
|
|
56
|
+
group?: ("development" | "deployment" | "overview" | "documentation" | "operation" | "observability") | (string & {});
|
|
57
|
+
icon?: string | react.ReactElement;
|
|
58
|
+
loader: () => Promise<JSX.Element>;
|
|
59
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
60
|
+
filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
}>;
|
|
64
|
+
|
|
65
|
+
export { _default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
|
+
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { dynatraceApiExtension } from './alpha/apis.esm.js';
|
|
4
|
+
import { entityDynatraceContent } from './alpha/entityContent.esm.js';
|
|
5
|
+
import { rootRouteRef } from './routes.esm.js';
|
|
6
|
+
|
|
7
|
+
var alpha = createFrontendPlugin({
|
|
8
|
+
pluginId: "dynatrace",
|
|
9
|
+
routes: convertLegacyRouteRefs({
|
|
10
|
+
entityContent: rootRouteRef
|
|
11
|
+
}),
|
|
12
|
+
extensions: [dynatraceApiExtension, entityDynatraceContent]
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { alpha as default };
|
|
16
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2026 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 */\nimport { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { dynatraceApiExtension, entityDynatraceContent } from './alpha/index';\nimport { rootRouteRef } from './routes';\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'dynatrace',\n routes: convertLegacyRouteRefs({\n entityContent: rootRouteRef,\n }),\n extensions: [dynatraceApiExtension, entityDynatraceContent],\n});\n"],"names":[],"mappings":";;;;;;AAuBA,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,WAAA;AAAA,EACV,QAAQ,sBAAA,CAAuB;AAAA,IAC7B,aAAA,EAAe;AAAA,GAChB,CAAA;AAAA,EACD,UAAA,EAAY,CAAC,qBAAA,EAAuB,sBAAsB;AAC5D,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-dynatrace",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.19.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "dynatrace",
|
|
7
7
|
"pluginPackages": [
|
|
8
8
|
"@backstage-community/plugin-dynatrace"
|
|
9
|
-
]
|
|
9
|
+
],
|
|
10
|
+
"features": {
|
|
11
|
+
"./alpha": "@backstage/FrontendPlugin"
|
|
12
|
+
}
|
|
10
13
|
},
|
|
11
14
|
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/index.esm.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.esm.js"
|
|
22
|
+
},
|
|
23
|
+
"./alpha": {
|
|
24
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
25
|
+
"import": "./dist/alpha.esm.js",
|
|
26
|
+
"types": "./dist/alpha.d.ts",
|
|
27
|
+
"default": "./dist/alpha.esm.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"typesVersions": {
|
|
32
|
+
"*": {
|
|
33
|
+
"alpha": [
|
|
34
|
+
"dist/alpha.d.ts"
|
|
35
|
+
],
|
|
36
|
+
"package.json": [
|
|
37
|
+
"package.json"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
15
40
|
},
|
|
16
41
|
"homepage": "https://backstage.io",
|
|
17
42
|
"repository": {
|
|
@@ -21,8 +46,8 @@
|
|
|
21
46
|
},
|
|
22
47
|
"license": "Apache-2.0",
|
|
23
48
|
"sideEffects": false,
|
|
24
|
-
"main": "dist/index.esm.js",
|
|
25
|
-
"types": "dist/index.d.ts",
|
|
49
|
+
"main": "./dist/index.esm.js",
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
26
51
|
"files": [
|
|
27
52
|
"dist",
|
|
28
53
|
"config.d.ts"
|
|
@@ -38,9 +63,11 @@
|
|
|
38
63
|
},
|
|
39
64
|
"dependencies": {
|
|
40
65
|
"@backstage/catalog-model": "^1.8.0",
|
|
66
|
+
"@backstage/core-compat-api": "^0.5.10",
|
|
41
67
|
"@backstage/core-components": "^0.18.9",
|
|
42
68
|
"@backstage/core-plugin-api": "^1.12.5",
|
|
43
69
|
"@backstage/frontend-plugin-api": "^0.16.2",
|
|
70
|
+
"@backstage/plugin-catalog-react": "^2.1.4",
|
|
44
71
|
"@material-ui/core": "^4.12.2",
|
|
45
72
|
"@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
46
73
|
"react-use": "^17.2.4"
|
|
@@ -49,6 +76,7 @@
|
|
|
49
76
|
"@backstage/cli": "^0.36.1",
|
|
50
77
|
"@backstage/core-app-api": "^1.20.0",
|
|
51
78
|
"@backstage/dev-utils": "^1.1.22",
|
|
79
|
+
"@backstage/frontend-test-utils": "^0.5.2",
|
|
52
80
|
"@backstage/plugin-catalog-react": "^2.1.4",
|
|
53
81
|
"@backstage/test-utils": "^1.7.17",
|
|
54
82
|
"@testing-library/jest-dom": "^6.0.0",
|
|
@@ -65,12 +93,5 @@
|
|
|
65
93
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
66
94
|
},
|
|
67
95
|
"configSchema": "config.d.ts",
|
|
68
|
-
"typesVersions": {
|
|
69
|
-
"*": {
|
|
70
|
-
"package.json": [
|
|
71
|
-
"package.json"
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
96
|
"module": "./dist/index.esm.js"
|
|
76
97
|
}
|