@backstage-community/plugin-splunk-on-call 0.18.0 → 0.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/README.md +6 -0
- package/dist/alpha/apis.esm.js +17 -0
- package/dist/alpha/apis.esm.js.map +1 -0
- package/dist/alpha/entityCard.esm.js +17 -0
- package/dist/alpha/entityCard.esm.js.map +1 -0
- package/dist/alpha/page.esm.js +17 -0
- package/dist/alpha/page.esm.js.map +1 -0
- package/dist/alpha.d.ts +71 -0
- package/dist/alpha.esm.js +17 -0
- package/dist/alpha.esm.js.map +1 -0
- package/package.json +34 -14
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -44,6 +44,12 @@ const overviewContent = (
|
|
|
44
44
|
</EntitySwitch>
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
### New frontend system
|
|
48
|
+
|
|
49
|
+
If you are using the new frontend system, import the plugin from
|
|
50
|
+
`@backstage-community/plugin-splunk-on-call/alpha` and add the
|
|
51
|
+
`splunkOnCallPage` and `entitySplunkOnCallCard` extensions to your app.
|
|
52
|
+
|
|
47
53
|
### `readOnly` mode
|
|
48
54
|
|
|
49
55
|
To suppress the rendering of the actionable create-acknowledge-resolve incident buttons and UI controls, the `EntitySplunkOnCallCard` can also be instantiated in `readOnly` mode:
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApiBlueprint, discoveryApiRef, configApiRef } from '@backstage/frontend-plugin-api';
|
|
2
|
+
import { splunkOnCallApiRef, SplunkOnCallClient } from '../api/client.esm.js';
|
|
3
|
+
|
|
4
|
+
const splunkOnCallApi = ApiBlueprint.make({
|
|
5
|
+
name: "splunk-on-call",
|
|
6
|
+
params: (defineParams) => defineParams({
|
|
7
|
+
api: splunkOnCallApiRef,
|
|
8
|
+
deps: {
|
|
9
|
+
discoveryApi: discoveryApiRef,
|
|
10
|
+
configApi: configApiRef
|
|
11
|
+
},
|
|
12
|
+
factory: ({ configApi, discoveryApi }) => SplunkOnCallClient.fromConfig(configApi, discoveryApi)
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { splunkOnCallApi };
|
|
17
|
+
//# sourceMappingURL=apis.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.ts"],"sourcesContent":["/*\n * Copyright 2025 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 ApiBlueprint,\n configApiRef,\n discoveryApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { SplunkOnCallClient, splunkOnCallApiRef } from '../api';\n\n/**\n * @alpha\n */\nexport const splunkOnCallApi = ApiBlueprint.make({\n name: 'splunk-on-call',\n params: defineParams =>\n defineParams({\n api: splunkOnCallApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n configApi: configApiRef,\n },\n factory: ({ configApi, discoveryApi }) =>\n SplunkOnCallClient.fromConfig(configApi, discoveryApi),\n }),\n});\n"],"names":[],"mappings":";;;AAyBa,MAAA,eAAA,GAAkB,aAAa,IAAK,CAAA;AAAA,EAC/C,IAAM,EAAA,gBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,kBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,SAAW,EAAA;AAAA,KACb;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,cACrB,KAAA,kBAAA,CAAmB,UAAW,CAAA,SAAA,EAAW,YAAY;AAAA,GACxD;AACL,CAAC;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { compatWrapper } from '@backstage/core-compat-api';
|
|
3
|
+
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
|
+
import { isSplunkOnCallAvailable } from '../components/EntitySplunkOnCallCard.esm.js';
|
|
5
|
+
|
|
6
|
+
const entitySplunkOnCallCard = EntityCardBlueprint.make({
|
|
7
|
+
name: "splunk-on-call",
|
|
8
|
+
params: {
|
|
9
|
+
filter: isSplunkOnCallAvailable,
|
|
10
|
+
loader: () => import('../components/EntitySplunkOnCallCard.esm.js').then(
|
|
11
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.EntitySplunkOnCallCard, {}))
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { entitySplunkOnCallCard };
|
|
17
|
+
//# sourceMappingURL=entityCard.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityCard.esm.js","sources":["../../src/alpha/entityCard.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isSplunkOnCallAvailable } from '../components';\n\n/**\n * @alpha\n */\nexport const entitySplunkOnCallCard = EntityCardBlueprint.make({\n name: 'splunk-on-call',\n params: {\n filter: isSplunkOnCallAvailable,\n loader: () =>\n import('../components/EntitySplunkOnCallCard').then(m =>\n compatWrapper(<m.EntitySplunkOnCallCard />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;AAsBa,MAAA,sBAAA,GAAyB,oBAAoB,IAAK,CAAA;AAAA,EAC7D,IAAM,EAAA,gBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,uBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,6CAAsC,CAAE,CAAA,IAAA;AAAA,MAAK,OAClD,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,sBAAA,EAAF,EAAyB,CAAE;AAAA;AAC5C;AAEN,CAAC;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
3
|
+
import { PageBlueprint } from '@backstage/frontend-plugin-api';
|
|
4
|
+
import { rootRouteRef } from '../plugin.esm.js';
|
|
5
|
+
|
|
6
|
+
const splunkOnCallPage = PageBlueprint.make({
|
|
7
|
+
params: {
|
|
8
|
+
path: "/splunk-on-call",
|
|
9
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
10
|
+
loader: () => import('../components/SplunkOnCallPage.esm.js').then(
|
|
11
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.SplunkOnCallPage, {}))
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { splunkOnCallPage };
|
|
17
|
+
//# sourceMappingURL=page.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.esm.js","sources":["../../src/alpha/page.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { PageBlueprint } from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from '../plugin';\n\n/**\n * @alpha\n */\nexport const splunkOnCallPage = PageBlueprint.make({\n params: {\n path: '/splunk-on-call',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/SplunkOnCallPage').then(m =>\n compatWrapper(<m.SplunkOnCallPage />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;AAyBa,MAAA,gBAAA,GAAmB,cAAc,IAAK,CAAA;AAAA,EACjD,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,iBAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,uCAAgC,CAAE,CAAA,IAAA;AAAA,MAAK,OAC5C,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,gBAAA,EAAF,EAAmB,CAAE;AAAA;AACtC;AAEN,CAAC;;;;"}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
5
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
11
|
+
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
12
|
+
}, {}, {
|
|
13
|
+
"api:splunk-on-call/splunk-on-call": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
14
|
+
kind: "api";
|
|
15
|
+
name: "splunk-on-call";
|
|
16
|
+
config: {};
|
|
17
|
+
configInput: {};
|
|
18
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
19
|
+
inputs: {};
|
|
20
|
+
params: <TApi, TImpl extends TApi, TDeps extends {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
}>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
23
|
+
}>;
|
|
24
|
+
"entity-card:splunk-on-call/splunk-on-call": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
25
|
+
kind: "entity-card";
|
|
26
|
+
name: "splunk-on-call";
|
|
27
|
+
config: {
|
|
28
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
29
|
+
type: "content" | "summary" | "info" | undefined;
|
|
30
|
+
};
|
|
31
|
+
configInput: {
|
|
32
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
33
|
+
type?: "content" | "summary" | "info" | undefined;
|
|
34
|
+
};
|
|
35
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
36
|
+
optional: true;
|
|
37
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
38
|
+
optional: true;
|
|
39
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
40
|
+
optional: true;
|
|
41
|
+
}>;
|
|
42
|
+
inputs: {};
|
|
43
|
+
params: {
|
|
44
|
+
loader: () => Promise<JSX.Element>;
|
|
45
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
|
|
46
|
+
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
"page:splunk-on-call": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
50
|
+
kind: "page";
|
|
51
|
+
name: undefined;
|
|
52
|
+
config: {
|
|
53
|
+
path: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
configInput: {
|
|
56
|
+
path?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
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", {
|
|
59
|
+
optional: true;
|
|
60
|
+
}>;
|
|
61
|
+
inputs: {};
|
|
62
|
+
params: {
|
|
63
|
+
defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
|
|
64
|
+
path: string;
|
|
65
|
+
loader: () => Promise<JSX.Element>;
|
|
66
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
69
|
+
}>;
|
|
70
|
+
|
|
71
|
+
export { _default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
|
+
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { splunkOnCallApi } from './alpha/apis.esm.js';
|
|
4
|
+
import { entitySplunkOnCallCard } from './alpha/entityCard.esm.js';
|
|
5
|
+
import { splunkOnCallPage } from './alpha/page.esm.js';
|
|
6
|
+
import { rootRouteRef } from './plugin.esm.js';
|
|
7
|
+
|
|
8
|
+
var alpha = createFrontendPlugin({
|
|
9
|
+
pluginId: "splunk-on-call",
|
|
10
|
+
routes: convertLegacyRouteRefs({
|
|
11
|
+
root: rootRouteRef
|
|
12
|
+
}),
|
|
13
|
+
extensions: [splunkOnCallApi, splunkOnCallPage, entitySplunkOnCallCard]
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { alpha as default };
|
|
17
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2025 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 {\n entitySplunkOnCallCard,\n splunkOnCallApi,\n splunkOnCallPage,\n} from './alpha/index';\nimport { rootRouteRef } from './plugin';\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'splunk-on-call',\n routes: convertLegacyRouteRefs({\n root: rootRouteRef,\n }),\n extensions: [splunkOnCallApi, splunkOnCallPage, entitySplunkOnCallCard],\n});\n"],"names":[],"mappings":";;;;;;;AA2BA,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,gBAAA;AAAA,EACV,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,IAAM,EAAA;AAAA,GACP,CAAA;AAAA,EACD,UAAY,EAAA,CAAC,eAAiB,EAAA,gBAAA,EAAkB,sBAAsB;AACxE,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-splunk-on-call",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Splunk On-Call",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
7
7
|
"pluginId": "splunk-on-call",
|
|
8
8
|
"pluginPackages": [
|
|
9
9
|
"@backstage-community/plugin-splunk-on-call"
|
|
10
|
-
]
|
|
10
|
+
],
|
|
11
|
+
"features": {
|
|
12
|
+
"./alpha": "@backstage/FrontendPlugin"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.esm.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.esm.js"
|
|
20
|
+
},
|
|
21
|
+
"./alpha": {
|
|
22
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
23
|
+
"import": "./dist/alpha.esm.js",
|
|
24
|
+
"types": "./dist/alpha.d.ts",
|
|
25
|
+
"default": "./dist/alpha.esm.js"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
"alpha": [
|
|
32
|
+
"dist/alpha.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"package.json": [
|
|
35
|
+
"package.json"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
11
38
|
},
|
|
12
39
|
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
14
|
-
"main": "dist/index.esm.js",
|
|
15
|
-
"types": "dist/index.d.ts"
|
|
40
|
+
"access": "public"
|
|
16
41
|
},
|
|
17
42
|
"keywords": [
|
|
18
43
|
"backstage",
|
|
@@ -26,8 +51,8 @@
|
|
|
26
51
|
},
|
|
27
52
|
"license": "Apache-2.0",
|
|
28
53
|
"sideEffects": false,
|
|
29
|
-
"main": "dist/index.esm.js",
|
|
30
|
-
"types": "dist/index.d.ts",
|
|
54
|
+
"main": "./dist/index.esm.js",
|
|
55
|
+
"types": "./dist/index.d.ts",
|
|
31
56
|
"files": [
|
|
32
57
|
"dist",
|
|
33
58
|
"config.d.ts"
|
|
@@ -43,8 +68,10 @@
|
|
|
43
68
|
},
|
|
44
69
|
"dependencies": {
|
|
45
70
|
"@backstage/catalog-model": "^1.7.6",
|
|
71
|
+
"@backstage/core-compat-api": "^0.5.7",
|
|
46
72
|
"@backstage/core-components": "^0.18.6",
|
|
47
73
|
"@backstage/core-plugin-api": "^1.12.2",
|
|
74
|
+
"@backstage/frontend-plugin-api": "^0.13.4",
|
|
48
75
|
"@backstage/plugin-catalog-react": "^1.21.6",
|
|
49
76
|
"@material-ui/core": "^4.12.2",
|
|
50
77
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -73,12 +100,5 @@
|
|
|
73
100
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
74
101
|
},
|
|
75
102
|
"configSchema": "config.d.ts",
|
|
76
|
-
"typesVersions": {
|
|
77
|
-
"*": {
|
|
78
|
-
"package.json": [
|
|
79
|
-
"package.json"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
103
|
"module": "./dist/index.esm.js"
|
|
84
104
|
}
|