@kyverno/backstage-plugin-policy-reporter 2.6.0 → 2.7.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 +12 -0
- package/dist/alpha/plugin.esm.js +77 -0
- package/dist/alpha/plugin.esm.js.map +1 -0
- package/dist/alpha.d.ts +147 -0
- package/dist/alpha.esm.js +2 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/package.json.esm.js +106 -0
- package/dist/package.json.esm.js.map +1 -0
- package/package.json +41 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @kyverno/backstage-plugin-policy-reporter
|
|
2
2
|
|
|
3
|
+
## 2.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4b09f8c: Backstage verion bump to v1.48.5
|
|
8
|
+
- c4e5ae4: Add initial support for the new Frontend System, this will be available under a `/alpha` route when importing packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [4b09f8c]
|
|
13
|
+
- @kyverno/backstage-plugin-policy-reporter-common@2.3.0
|
|
14
|
+
|
|
3
15
|
## 2.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ApiBlueprint, discoveryApiRef, fetchApiRef, PageBlueprint, SubPageBlueprint, createRouteRef, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { rootRouteRef } from '../routes.esm.js';
|
|
4
|
+
import { policyReporterApiRef } from '../api/PolicyReporterClient.esm.js';
|
|
5
|
+
import { DefaultApiClient } from '@kyverno/backstage-plugin-policy-reporter-common';
|
|
6
|
+
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
7
|
+
import { isPolicyReporterAvailable } from '../utils/annotations.esm.js';
|
|
8
|
+
import PolicyIcon from '@material-ui/icons/Policy';
|
|
9
|
+
|
|
10
|
+
const policyReporterApi = ApiBlueprint.make({
|
|
11
|
+
params: (defineParams) => defineParams({
|
|
12
|
+
api: policyReporterApiRef,
|
|
13
|
+
deps: {
|
|
14
|
+
discoveryApi: discoveryApiRef,
|
|
15
|
+
fetchApi: fetchApiRef
|
|
16
|
+
},
|
|
17
|
+
factory: ({ discoveryApi, fetchApi }) => new DefaultApiClient({ discoveryApi, fetchApi })
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
const policyReporterPage = PageBlueprint.make({
|
|
21
|
+
params: {
|
|
22
|
+
path: "/policy-reporter",
|
|
23
|
+
routeRef: rootRouteRef,
|
|
24
|
+
title: "Policy Reporter"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const policyReporterNamespacedPoliciesPage = SubPageBlueprint.make({
|
|
28
|
+
name: "namespaced-policy",
|
|
29
|
+
params: {
|
|
30
|
+
path: "namespaced-policies",
|
|
31
|
+
routeRef: createRouteRef(),
|
|
32
|
+
// TODO: Support configuration of the actual component
|
|
33
|
+
title: "Namespaced Policies",
|
|
34
|
+
loader: () => (
|
|
35
|
+
// TODO: Create dedicated PolicyReporterNamespacedPoliciesPage Component
|
|
36
|
+
import('../components/PolicyReportsPage/index.esm.js').then((m) => /* @__PURE__ */ jsx(m.PolicyReportsPage, {}))
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const policyReporterEntityContent = EntityContentBlueprint.make({
|
|
41
|
+
name: "policy-reporter",
|
|
42
|
+
params: {
|
|
43
|
+
path: "/policy-reporter",
|
|
44
|
+
title: "Policy Reporter",
|
|
45
|
+
// TODO: Support configuration of the actual component
|
|
46
|
+
filter: isPolicyReporterAvailable,
|
|
47
|
+
loader: () => (
|
|
48
|
+
// TODO: Create dedicated EntityPolicyReporterContent component as replacement for Kyverno and Custom content components
|
|
49
|
+
import('../components/EntityKyvernoPoliciesContent/index.esm.js').then((m) => /* @__PURE__ */ jsx(m.EntityKyvernoPoliciesContent, {}))
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const policyReporterNavItem = NavItemBlueprint.make({
|
|
54
|
+
params: {
|
|
55
|
+
title: "Policy Reporter",
|
|
56
|
+
icon: () => /* @__PURE__ */ jsx(PolicyIcon, {}),
|
|
57
|
+
routeRef: rootRouteRef
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var plugin = createFrontendPlugin({
|
|
61
|
+
pluginId: "policy-reporter",
|
|
62
|
+
title: "Policy Reporter",
|
|
63
|
+
info: { packageJson: () => import('../package.json.esm.js') },
|
|
64
|
+
routes: {
|
|
65
|
+
root: rootRouteRef
|
|
66
|
+
},
|
|
67
|
+
extensions: [
|
|
68
|
+
policyReporterApi,
|
|
69
|
+
policyReporterEntityContent,
|
|
70
|
+
policyReporterPage,
|
|
71
|
+
policyReporterNamespacedPoliciesPage,
|
|
72
|
+
policyReporterNavItem
|
|
73
|
+
]
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export { plugin as default, policyReporterApi, policyReporterNavItem };
|
|
77
|
+
//# sourceMappingURL=plugin.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["import {\n ApiBlueprint,\n createFrontendPlugin,\n createRouteRef,\n discoveryApiRef,\n fetchApiRef,\n NavItemBlueprint,\n PageBlueprint,\n SubPageBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport { rootRouteRef } from '../routes';\nimport { policyReporterApiRef } from '../api';\nimport { DefaultApiClient } from '@kyverno/backstage-plugin-policy-reporter-common';\n\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isPolicyReporterAvailable } from '../utils/annotations';\nimport PolicyIcon from '@material-ui/icons/Policy';\n\n/** @alpha */\nexport const policyReporterApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: policyReporterApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new DefaultApiClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nconst policyReporterPage = PageBlueprint.make({\n params: {\n path: '/policy-reporter',\n routeRef: rootRouteRef,\n title: 'Policy Reporter',\n },\n});\n\n/** @alpha */\nconst policyReporterNamespacedPoliciesPage = SubPageBlueprint.make({\n name: 'namespaced-policy',\n params: {\n path: 'namespaced-policies',\n routeRef: createRouteRef(),\n // TODO: Support configuration of the actual component\n title: 'Namespaced Policies',\n loader: () =>\n // TODO: Create dedicated PolicyReporterNamespacedPoliciesPage Component\n import('../components/PolicyReportsPage/').then(m => (\n <m.PolicyReportsPage /> // TODO: Update the PolicyReportsPage to be only used for old frontend system to mimic PageBlueprint from NFS\n )),\n },\n});\n\n/** @alpha */\nconst policyReporterEntityContent = EntityContentBlueprint.make({\n name: 'policy-reporter',\n params: {\n path: '/policy-reporter',\n title: 'Policy Reporter',\n // TODO: Support configuration of the actual component\n filter: isPolicyReporterAvailable,\n loader: () =>\n // TODO: Create dedicated EntityPolicyReporterContent component as replacement for Kyverno and Custom content components\n import('../components/EntityKyvernoPoliciesContent/').then(m => (\n <m.EntityKyvernoPoliciesContent />\n )),\n },\n});\n\n/** @alpha */\nexport const policyReporterNavItem = NavItemBlueprint.make({\n params: {\n title: 'Policy Reporter',\n icon: () => <PolicyIcon />,\n routeRef: rootRouteRef,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'policy-reporter',\n title: 'Policy Reporter',\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n },\n extensions: [\n policyReporterApi,\n policyReporterEntityContent,\n policyReporterPage,\n policyReporterNamespacedPoliciesPage,\n policyReporterNavItem,\n ],\n});\n"],"names":[],"mappings":";;;;;;;;;AAoBa,MAAA,iBAAA,GAAoB,aAAa,IAAK,CAAA;AAAA,EACjD,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,oBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,QAAA,EACxB,KAAA,IAAI,gBAAiB,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU;AAAA,GAClD;AACL,CAAC;AAGD,MAAM,kBAAA,GAAqB,cAAc,IAAK,CAAA;AAAA,EAC5C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,kBAAA;AAAA,IACN,QAAU,EAAA,YAAA;AAAA,IACV,KAAO,EAAA;AAAA;AAEX,CAAC,CAAA;AAGD,MAAM,oCAAA,GAAuC,iBAAiB,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,mBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,qBAAA;AAAA,IACN,UAAU,cAAe,EAAA;AAAA;AAAA,IAEzB,KAAO,EAAA,qBAAA;AAAA,IACP,MAAQ,EAAA;AAAA;AAAA,MAEN,OAAO,8CAAkC,CAAE,CAAA,IAAA,CAAK,uBAC7C,GAAA,CAAA,CAAA,CAAE,iBAAF,EAAA,EAAoB,CACtB;AAAA;AAAA;AAEP,CAAC,CAAA;AAGD,MAAM,2BAAA,GAA8B,uBAAuB,IAAK,CAAA;AAAA,EAC9D,IAAM,EAAA,iBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,kBAAA;AAAA,IACN,KAAO,EAAA,iBAAA;AAAA;AAAA,IAEP,MAAQ,EAAA,yBAAA;AAAA,IACR,MAAQ,EAAA;AAAA;AAAA,MAEN,OAAO,yDAA6C,CAAE,CAAA,IAAA,CAAK,uBACxD,GAAA,CAAA,CAAA,CAAE,4BAAF,EAAA,EAA+B,CACjC;AAAA;AAAA;AAEP,CAAC,CAAA;AAGY,MAAA,qBAAA,GAAwB,iBAAiB,IAAK,CAAA;AAAA,EACzD,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,iBAAA;AAAA,IACP,IAAA,EAAM,sBAAM,GAAA,CAAC,UAAW,EAAA,EAAA,CAAA;AAAA,IACxB,QAAU,EAAA;AAAA;AAEd,CAAC;AAGD,aAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,iBAAA;AAAA,EACV,KAAO,EAAA,iBAAA;AAAA,EACP,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAE,EAAA;AAAA,EACxD,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,UAAY,EAAA;AAAA,IACV,iBAAA;AAAA,IACA,2BAAA;AAAA,IACA,kBAAA;AAAA,IACA,oCAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
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_core_plugin_api from '@backstage/core-plugin-api';
|
|
5
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
6
|
+
|
|
7
|
+
/** @alpha */
|
|
8
|
+
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
9
|
+
root: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
10
|
+
}, {}, {
|
|
11
|
+
"api:policy-reporter": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
12
|
+
kind: "api";
|
|
13
|
+
name: undefined;
|
|
14
|
+
config: {};
|
|
15
|
+
configInput: {};
|
|
16
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
17
|
+
inputs: {};
|
|
18
|
+
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>;
|
|
19
|
+
}>;
|
|
20
|
+
"entity-content:policy-reporter/policy-reporter": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
21
|
+
kind: "entity-content";
|
|
22
|
+
name: "policy-reporter";
|
|
23
|
+
config: {
|
|
24
|
+
path: string | undefined;
|
|
25
|
+
title: string | undefined;
|
|
26
|
+
filter: _backstage_filter_predicates.FilterPredicate | undefined;
|
|
27
|
+
group: string | false | undefined;
|
|
28
|
+
icon: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
configInput: {
|
|
31
|
+
filter?: _backstage_filter_predicates.FilterPredicate | undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
path?: string | undefined;
|
|
34
|
+
group?: string | false | undefined;
|
|
35
|
+
icon?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
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", {
|
|
38
|
+
optional: true;
|
|
39
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
40
|
+
optional: true;
|
|
41
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
42
|
+
optional: true;
|
|
43
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
44
|
+
optional: true;
|
|
45
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string | react.ReactElement<any, string | react.JSXElementConstructor<any>>, "catalog.entity-content-icon", {
|
|
46
|
+
optional: true;
|
|
47
|
+
}>;
|
|
48
|
+
inputs: {};
|
|
49
|
+
params: {
|
|
50
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
51
|
+
path: string;
|
|
52
|
+
defaultTitle?: [Error: `Use the 'title' param instead`];
|
|
53
|
+
title: string;
|
|
54
|
+
defaultGroup?: [Error: `Use the 'group' param instead`];
|
|
55
|
+
group?: ("overview" | "documentation" | "development" | "deployment" | "operation" | "observability") | (string & {});
|
|
56
|
+
icon?: string | react.ReactElement;
|
|
57
|
+
loader: () => Promise<JSX.Element>;
|
|
58
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
59
|
+
filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
60
|
+
};
|
|
61
|
+
}>;
|
|
62
|
+
"nav-item:policy-reporter": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
63
|
+
kind: "nav-item";
|
|
64
|
+
name: undefined;
|
|
65
|
+
config: {};
|
|
66
|
+
configInput: {};
|
|
67
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
68
|
+
title: string;
|
|
69
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
70
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
71
|
+
}, "core.nav-item.target", {}>;
|
|
72
|
+
inputs: {};
|
|
73
|
+
params: {
|
|
74
|
+
title: string;
|
|
75
|
+
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
76
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
77
|
+
};
|
|
78
|
+
}>;
|
|
79
|
+
"page:policy-reporter": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
80
|
+
kind: "page";
|
|
81
|
+
name: undefined;
|
|
82
|
+
config: {
|
|
83
|
+
path: string | undefined;
|
|
84
|
+
title: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
configInput: {
|
|
87
|
+
title?: string | undefined;
|
|
88
|
+
path?: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
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", {
|
|
91
|
+
optional: true;
|
|
92
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {
|
|
93
|
+
optional: true;
|
|
94
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
|
|
95
|
+
optional: true;
|
|
96
|
+
}>;
|
|
97
|
+
inputs: {
|
|
98
|
+
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", {
|
|
99
|
+
optional: true;
|
|
100
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {
|
|
101
|
+
optional: true;
|
|
102
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
|
|
103
|
+
optional: true;
|
|
104
|
+
}>, {
|
|
105
|
+
singleton: false;
|
|
106
|
+
optional: false;
|
|
107
|
+
internal: false;
|
|
108
|
+
}>;
|
|
109
|
+
};
|
|
110
|
+
params: {
|
|
111
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
112
|
+
path: string;
|
|
113
|
+
title?: string;
|
|
114
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
115
|
+
loader?: () => Promise<react.JSX.Element>;
|
|
116
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
117
|
+
noHeader?: boolean;
|
|
118
|
+
};
|
|
119
|
+
}>;
|
|
120
|
+
"sub-page:policy-reporter/namespaced-policy": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
121
|
+
kind: "sub-page";
|
|
122
|
+
name: "namespaced-policy";
|
|
123
|
+
config: {
|
|
124
|
+
path: string | undefined;
|
|
125
|
+
title: string | undefined;
|
|
126
|
+
};
|
|
127
|
+
configInput: {
|
|
128
|
+
title?: string | undefined;
|
|
129
|
+
path?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
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", {
|
|
132
|
+
optional: true;
|
|
133
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
|
|
134
|
+
optional: true;
|
|
135
|
+
}>;
|
|
136
|
+
inputs: {};
|
|
137
|
+
params: {
|
|
138
|
+
path: string;
|
|
139
|
+
title: string;
|
|
140
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
141
|
+
loader: () => Promise<JSX.Element>;
|
|
142
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
143
|
+
};
|
|
144
|
+
}>;
|
|
145
|
+
}>;
|
|
146
|
+
|
|
147
|
+
export { _default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var name = "@kyverno/backstage-plugin-policy-reporter";
|
|
2
|
+
var version = "2.7.0";
|
|
3
|
+
var main = "src/index.ts";
|
|
4
|
+
var types = "src/index.ts";
|
|
5
|
+
var license = "Apache-2.0";
|
|
6
|
+
var keywords = [
|
|
7
|
+
"backstage",
|
|
8
|
+
"kyverno",
|
|
9
|
+
"policy-reporter"
|
|
10
|
+
];
|
|
11
|
+
var backstage = {
|
|
12
|
+
role: "frontend-plugin",
|
|
13
|
+
pluginId: "policy-reporter",
|
|
14
|
+
pluginPackages: [
|
|
15
|
+
"@kyverno/backstage-plugin-policy-reporter",
|
|
16
|
+
"@kyverno/backstage-plugin-policy-reporter-backend",
|
|
17
|
+
"@kyverno/backstage-plugin-policy-reporter-common"
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
var publishConfig = {
|
|
21
|
+
access: "public",
|
|
22
|
+
main: "dist/index.esm.js",
|
|
23
|
+
types: "dist/index.d.ts"
|
|
24
|
+
};
|
|
25
|
+
var exports = {
|
|
26
|
+
".": "./src/index.ts",
|
|
27
|
+
"./alpha": "./src/alpha.ts",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
};
|
|
30
|
+
var typesVersions = {
|
|
31
|
+
"*": {
|
|
32
|
+
alpha: [
|
|
33
|
+
"src/alpha.ts"
|
|
34
|
+
],
|
|
35
|
+
"package.json": [
|
|
36
|
+
"package.json"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var sideEffects = false;
|
|
41
|
+
var scripts = {
|
|
42
|
+
start: "backstage-cli package start",
|
|
43
|
+
build: "backstage-cli package build",
|
|
44
|
+
lint: "backstage-cli package lint",
|
|
45
|
+
test: "backstage-cli package test",
|
|
46
|
+
clean: "backstage-cli package clean",
|
|
47
|
+
prepack: "backstage-cli package prepack",
|
|
48
|
+
postpack: "backstage-cli package postpack"
|
|
49
|
+
};
|
|
50
|
+
var repository = {
|
|
51
|
+
type: "git",
|
|
52
|
+
url: "https://github.com/kyverno/backstage-policy-reporter-plugin",
|
|
53
|
+
directory: "plugins/policy-reporter"
|
|
54
|
+
};
|
|
55
|
+
var dependencies = {
|
|
56
|
+
"@backstage/catalog-client": "backstage:^",
|
|
57
|
+
"@backstage/catalog-model": "backstage:^",
|
|
58
|
+
"@backstage/core-components": "backstage:^",
|
|
59
|
+
"@backstage/core-plugin-api": "backstage:^",
|
|
60
|
+
"@backstage/frontend-plugin-api": "backstage:^",
|
|
61
|
+
"@backstage/plugin-catalog-react": "backstage:^",
|
|
62
|
+
"@backstage/theme": "backstage:^",
|
|
63
|
+
"@kyverno/backstage-plugin-policy-reporter-common": "workspace:^",
|
|
64
|
+
"@material-ui/core": "^4.12.4",
|
|
65
|
+
"@material-ui/icons": "^4.11.3",
|
|
66
|
+
"@material-ui/lab": "4.0.0-alpha.61",
|
|
67
|
+
"react-use": "^17.6.0"
|
|
68
|
+
};
|
|
69
|
+
var peerDependencies = {
|
|
70
|
+
react: "^16.13.1 || ^17.0.0 || ^18.0.0"
|
|
71
|
+
};
|
|
72
|
+
var devDependencies = {
|
|
73
|
+
"@backstage/cli": "backstage:^",
|
|
74
|
+
"@backstage/core-app-api": "backstage:^",
|
|
75
|
+
"@backstage/dev-utils": "backstage:^",
|
|
76
|
+
"@backstage/test-utils": "backstage:^",
|
|
77
|
+
"@testing-library/jest-dom": "^6.0.0",
|
|
78
|
+
"@testing-library/react": "^14.0.0",
|
|
79
|
+
"@testing-library/user-event": "^14.0.0",
|
|
80
|
+
msw: "^1.0.0"
|
|
81
|
+
};
|
|
82
|
+
var files = [
|
|
83
|
+
"dist"
|
|
84
|
+
];
|
|
85
|
+
var _package = {
|
|
86
|
+
name: name,
|
|
87
|
+
version: version,
|
|
88
|
+
main: main,
|
|
89
|
+
types: types,
|
|
90
|
+
license: license,
|
|
91
|
+
keywords: keywords,
|
|
92
|
+
backstage: backstage,
|
|
93
|
+
publishConfig: publishConfig,
|
|
94
|
+
exports: exports,
|
|
95
|
+
typesVersions: typesVersions,
|
|
96
|
+
sideEffects: sideEffects,
|
|
97
|
+
scripts: scripts,
|
|
98
|
+
repository: repository,
|
|
99
|
+
dependencies: dependencies,
|
|
100
|
+
peerDependencies: peerDependencies,
|
|
101
|
+
devDependencies: devDependencies,
|
|
102
|
+
files: files
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { backstage, _package as default, dependencies, devDependencies, exports, files, keywords, license, main, name, peerDependencies, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
106
|
+
//# 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyverno/backstage-plugin-policy-reporter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"main": "dist/index.esm.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,13 +16,40 @@
|
|
|
16
16
|
"@kyverno/backstage-plugin-policy-reporter",
|
|
17
17
|
"@kyverno/backstage-plugin-policy-reporter-backend",
|
|
18
18
|
"@kyverno/backstage-plugin-policy-reporter-common"
|
|
19
|
-
]
|
|
19
|
+
],
|
|
20
|
+
"features": {
|
|
21
|
+
"./alpha": "@backstage/FrontendPlugin"
|
|
22
|
+
}
|
|
20
23
|
},
|
|
21
24
|
"publishConfig": {
|
|
22
25
|
"access": "public",
|
|
23
26
|
"main": "dist/index.esm.js",
|
|
24
27
|
"types": "dist/index.d.ts"
|
|
25
28
|
},
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"import": "./dist/index.esm.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.esm.js"
|
|
34
|
+
},
|
|
35
|
+
"./alpha": {
|
|
36
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
37
|
+
"import": "./dist/alpha.esm.js",
|
|
38
|
+
"types": "./dist/alpha.d.ts",
|
|
39
|
+
"default": "./dist/alpha.esm.js"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
"typesVersions": {
|
|
44
|
+
"*": {
|
|
45
|
+
"alpha": [
|
|
46
|
+
"dist/alpha.d.ts"
|
|
47
|
+
],
|
|
48
|
+
"package.json": [
|
|
49
|
+
"package.json"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
26
53
|
"sideEffects": false,
|
|
27
54
|
"scripts": {
|
|
28
55
|
"start": "backstage-cli package start",
|
|
@@ -39,13 +66,14 @@
|
|
|
39
66
|
"directory": "plugins/policy-reporter"
|
|
40
67
|
},
|
|
41
68
|
"dependencies": {
|
|
42
|
-
"@backstage/catalog-client": "^1.
|
|
43
|
-
"@backstage/catalog-model": "^1.7.
|
|
44
|
-
"@backstage/core-components": "^0.18.
|
|
45
|
-
"@backstage/core-plugin-api": "^1.
|
|
46
|
-
"@backstage/plugin-
|
|
47
|
-
"@backstage/
|
|
48
|
-
"@
|
|
69
|
+
"@backstage/catalog-client": "^1.13.0",
|
|
70
|
+
"@backstage/catalog-model": "^1.7.6",
|
|
71
|
+
"@backstage/core-components": "^0.18.7",
|
|
72
|
+
"@backstage/core-plugin-api": "^1.12.3",
|
|
73
|
+
"@backstage/frontend-plugin-api": "^0.14.1",
|
|
74
|
+
"@backstage/plugin-catalog-react": "^2.0.0",
|
|
75
|
+
"@backstage/theme": "^0.7.2",
|
|
76
|
+
"@kyverno/backstage-plugin-policy-reporter-common": "^2.3.0",
|
|
49
77
|
"@material-ui/core": "^4.12.4",
|
|
50
78
|
"@material-ui/icons": "^4.11.3",
|
|
51
79
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -55,10 +83,10 @@
|
|
|
55
83
|
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
|
|
56
84
|
},
|
|
57
85
|
"devDependencies": {
|
|
58
|
-
"@backstage/cli": "^0.
|
|
59
|
-
"@backstage/core-app-api": "^1.19.
|
|
60
|
-
"@backstage/dev-utils": "^1.1.
|
|
61
|
-
"@backstage/test-utils": "^1.7.
|
|
86
|
+
"@backstage/cli": "^0.35.4",
|
|
87
|
+
"@backstage/core-app-api": "^1.19.5",
|
|
88
|
+
"@backstage/dev-utils": "^1.1.20",
|
|
89
|
+
"@backstage/test-utils": "^1.7.15",
|
|
62
90
|
"@testing-library/jest-dom": "^6.0.0",
|
|
63
91
|
"@testing-library/react": "^14.0.0",
|
|
64
92
|
"@testing-library/user-event": "^14.0.0",
|
|
@@ -67,12 +95,5 @@
|
|
|
67
95
|
"files": [
|
|
68
96
|
"dist"
|
|
69
97
|
],
|
|
70
|
-
"typesVersions": {
|
|
71
|
-
"*": {
|
|
72
|
-
"package.json": [
|
|
73
|
-
"package.json"
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
98
|
"module": "./dist/index.esm.js"
|
|
78
99
|
}
|