@drodil/backstage-plugin-qeta 3.33.0 → 3.33.2
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/dist/alpha.d.ts +132 -0
- package/dist/alpha.esm.js +69 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/components/EntityCards/EntityPostsContainerCard.esm.js +13 -0
- package/dist/components/EntityCards/EntityPostsContainerCard.esm.js.map +1 -0
- package/dist/components/EntityCards/EntityPostsGridCard.esm.js +13 -0
- package/dist/components/EntityCards/EntityPostsGridCard.esm.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/package.json.esm.js +138 -0
- package/dist/package.json.esm.js.map +1 -0
- package/package.json +49 -29
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
4
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
5
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
6
|
+
export { qetaTranslationRef } from '@drodil/backstage-plugin-qeta-react';
|
|
7
|
+
|
|
8
|
+
/** @alpha */
|
|
9
|
+
declare const qetaNavItem: _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
10
|
+
kind: "nav-item";
|
|
11
|
+
name: undefined;
|
|
12
|
+
config: {};
|
|
13
|
+
configInput: {};
|
|
14
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
15
|
+
title: string;
|
|
16
|
+
icon: _backstage_core_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_core_plugin_api.IconComponent;
|
|
23
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Backstage frontend plugin.
|
|
28
|
+
*
|
|
29
|
+
* @alpha
|
|
30
|
+
*/
|
|
31
|
+
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
32
|
+
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
33
|
+
}, {}, {
|
|
34
|
+
"api:qeta": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
35
|
+
kind: "api";
|
|
36
|
+
name: undefined;
|
|
37
|
+
config: {};
|
|
38
|
+
configInput: {};
|
|
39
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
40
|
+
inputs: {};
|
|
41
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
|
|
42
|
+
}>;
|
|
43
|
+
"entity-card:qeta/entity-posts-container": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
44
|
+
kind: "entity-card";
|
|
45
|
+
name: "entity-posts-container";
|
|
46
|
+
config: {
|
|
47
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
48
|
+
type: "content" | "summary" | "info" | undefined;
|
|
49
|
+
};
|
|
50
|
+
configInput: {
|
|
51
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
52
|
+
type?: "content" | "summary" | "info" | undefined;
|
|
53
|
+
};
|
|
54
|
+
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", {
|
|
55
|
+
optional: true;
|
|
56
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
57
|
+
optional: true;
|
|
58
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
59
|
+
optional: true;
|
|
60
|
+
}>;
|
|
61
|
+
inputs: {};
|
|
62
|
+
params: {
|
|
63
|
+
loader: () => Promise<JSX.Element>;
|
|
64
|
+
filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
65
|
+
type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
"entity-card:qeta/entity-posts-grid": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
69
|
+
kind: "entity-card";
|
|
70
|
+
name: "entity-posts-grid";
|
|
71
|
+
config: {
|
|
72
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
73
|
+
type: "content" | "summary" | "info" | undefined;
|
|
74
|
+
};
|
|
75
|
+
configInput: {
|
|
76
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
77
|
+
type?: "content" | "summary" | "info" | undefined;
|
|
78
|
+
};
|
|
79
|
+
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", {
|
|
80
|
+
optional: true;
|
|
81
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
82
|
+
optional: true;
|
|
83
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
84
|
+
optional: true;
|
|
85
|
+
}>;
|
|
86
|
+
inputs: {};
|
|
87
|
+
params: {
|
|
88
|
+
loader: () => Promise<JSX.Element>;
|
|
89
|
+
filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
90
|
+
type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
93
|
+
"nav-item:qeta": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
94
|
+
kind: "nav-item";
|
|
95
|
+
name: undefined;
|
|
96
|
+
config: {};
|
|
97
|
+
configInput: {};
|
|
98
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
99
|
+
title: string;
|
|
100
|
+
icon: _backstage_core_plugin_api.IconComponent;
|
|
101
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
102
|
+
}, "core.nav-item.target", {}>;
|
|
103
|
+
inputs: {};
|
|
104
|
+
params: {
|
|
105
|
+
title: string;
|
|
106
|
+
icon: _backstage_core_plugin_api.IconComponent;
|
|
107
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
110
|
+
"page:qeta": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
111
|
+
kind: "page";
|
|
112
|
+
name: undefined;
|
|
113
|
+
config: {
|
|
114
|
+
path: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
configInput: {
|
|
117
|
+
path?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
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", {
|
|
120
|
+
optional: true;
|
|
121
|
+
}>;
|
|
122
|
+
inputs: {};
|
|
123
|
+
params: {
|
|
124
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
125
|
+
path: string;
|
|
126
|
+
loader: () => Promise<JSX.Element>;
|
|
127
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
128
|
+
};
|
|
129
|
+
}>;
|
|
130
|
+
}>;
|
|
131
|
+
|
|
132
|
+
export { _default as default, qetaNavItem };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ApiBlueprint, PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { convertLegacyRouteRef, compatWrapper, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
4
|
+
import { qetaApiRef, qetaRouteRef } from '@drodil/backstage-plugin-qeta-react';
|
|
5
|
+
export { qetaTranslationRef } from '@drodil/backstage-plugin-qeta-react';
|
|
6
|
+
import { discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';
|
|
7
|
+
import { QetaClient } from '@drodil/backstage-plugin-qeta-common';
|
|
8
|
+
import LiveHelpIcon from '@material-ui/icons/LiveHelp';
|
|
9
|
+
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
10
|
+
|
|
11
|
+
const qetaApi = ApiBlueprint.make({
|
|
12
|
+
params: (defineParams) => defineParams({
|
|
13
|
+
api: qetaApiRef,
|
|
14
|
+
deps: {
|
|
15
|
+
discoveryApi: discoveryApiRef,
|
|
16
|
+
fetchApi: fetchApiRef
|
|
17
|
+
},
|
|
18
|
+
factory({ discoveryApi, fetchApi }) {
|
|
19
|
+
return new QetaClient({ discoveryApi, fetchApi });
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
const qetaPage = PageBlueprint.make({
|
|
24
|
+
params: {
|
|
25
|
+
path: "/qeta",
|
|
26
|
+
routeRef: convertLegacyRouteRef(qetaRouteRef),
|
|
27
|
+
loader: () => import('./components/QetaPage/index.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.QetaPage, {})))
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const EntityPostsGridCard = EntityCardBlueprint.make({
|
|
31
|
+
name: "entity-posts-grid",
|
|
32
|
+
params: {
|
|
33
|
+
loader: async () => import('./components/EntityCards/EntityPostsGridCard.esm.js').then(
|
|
34
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.EntityPostsGridCard, {}))
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const EntityPostsContainerCard = EntityCardBlueprint.make({
|
|
39
|
+
name: "entity-posts-container",
|
|
40
|
+
params: {
|
|
41
|
+
loader: async () => import('./components/EntityCards/EntityPostsContainerCard.esm.js').then(
|
|
42
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.EntityPostsContainerCard, {}))
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const qetaNavItem = NavItemBlueprint.make({
|
|
47
|
+
params: {
|
|
48
|
+
title: "Q&A",
|
|
49
|
+
routeRef: convertLegacyRouteRef(qetaRouteRef),
|
|
50
|
+
icon: LiveHelpIcon
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
var alpha = createFrontendPlugin({
|
|
54
|
+
pluginId: "qeta",
|
|
55
|
+
info: { packageJson: () => import('./package.json.esm.js') },
|
|
56
|
+
routes: convertLegacyRouteRefs({
|
|
57
|
+
root: qetaRouteRef
|
|
58
|
+
}),
|
|
59
|
+
extensions: [
|
|
60
|
+
qetaApi,
|
|
61
|
+
qetaPage,
|
|
62
|
+
EntityPostsGridCard,
|
|
63
|
+
EntityPostsContainerCard,
|
|
64
|
+
qetaNavItem
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export { alpha as default, qetaNavItem };
|
|
69
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["import {\n ApiBlueprint,\n createFrontendPlugin,\n NavItemBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { qetaApiRef, qetaRouteRef } from '@drodil/backstage-plugin-qeta-react';\nimport { discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';\nimport { QetaClient } from '@drodil/backstage-plugin-qeta-common';\nimport LiveHelpIcon from '@material-ui/icons/LiveHelp';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\nconst qetaApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: qetaApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory({ discoveryApi, fetchApi }) {\n return new QetaClient({ discoveryApi, fetchApi });\n },\n }),\n});\n\nconst qetaPage = PageBlueprint.make({\n params: {\n path: '/qeta',\n routeRef: convertLegacyRouteRef(qetaRouteRef),\n loader: () =>\n import('./components/QetaPage').then(m => compatWrapper(<m.QetaPage />)),\n },\n});\n\nconst EntityPostsGridCard = EntityCardBlueprint.make({\n name: 'entity-posts-grid',\n params: {\n loader: async () =>\n import('./components/EntityCards/EntityPostsGridCard').then(m =>\n compatWrapper(<m.EntityPostsGridCard />),\n ),\n },\n});\n\nconst EntityPostsContainerCard = EntityCardBlueprint.make({\n name: 'entity-posts-container',\n params: {\n loader: async () =>\n import('./components/EntityCards/EntityPostsContainerCard').then(m =>\n compatWrapper(<m.EntityPostsContainerCard />),\n ),\n },\n});\n\n/** @alpha */\nexport const qetaNavItem = NavItemBlueprint.make({\n params: {\n title: 'Q&A',\n routeRef: convertLegacyRouteRef(qetaRouteRef),\n icon: LiveHelpIcon,\n },\n});\n\n/**\n * Backstage frontend plugin.\n *\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'qeta',\n info: { packageJson: () => import('../package.json') },\n routes: convertLegacyRouteRefs({\n root: qetaRouteRef,\n }),\n extensions: [\n qetaApi,\n qetaPage,\n EntityPostsGridCard,\n EntityPostsContainerCard,\n qetaNavItem,\n ],\n});\n\nexport { qetaTranslationRef } from '@drodil/backstage-plugin-qeta-react';\n"],"names":[],"mappings":";;;;;;;;;;AAiBA,MAAM,OAAA,GAAU,aAAa,IAAK,CAAA;AAAA,EAChC,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,UAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAQ,CAAA,EAAE,YAAc,EAAA,QAAA,EAAY,EAAA;AAClC,MAAA,OAAO,IAAI,UAAA,CAAW,EAAE,YAAA,EAAc,UAAU,CAAA;AAAA;AAClD,GACD;AACL,CAAC,CAAA;AAED,MAAM,QAAA,GAAW,cAAc,IAAK,CAAA;AAAA,EAClC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,OAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,oCAAuB,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,QAAF,EAAA,EAAW,CAAE,CAAC;AAAA;AAE7E,CAAC,CAAA;AAED,MAAM,mBAAA,GAAsB,oBAAoB,IAAK,CAAA;AAAA,EACnD,IAAM,EAAA,mBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,YACN,OAAO,qDAA8C,CAAE,CAAA,IAAA;AAAA,MAAK,OAC1D,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,mBAAA,EAAF,EAAsB,CAAE;AAAA;AACzC;AAEN,CAAC,CAAA;AAED,MAAM,wBAAA,GAA2B,oBAAoB,IAAK,CAAA;AAAA,EACxD,IAAM,EAAA,wBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,YACN,OAAO,0DAAmD,CAAE,CAAA,IAAA;AAAA,MAAK,OAC/D,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,wBAAA,EAAF,EAA2B,CAAE;AAAA;AAC9C;AAEN,CAAC,CAAA;AAGY,MAAA,WAAA,GAAc,iBAAiB,IAAK,CAAA;AAAA,EAC/C,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,KAAA;AAAA,IACP,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,IAAM,EAAA;AAAA;AAEV,CAAC;AAOD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,MAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,IAAM,EAAA;AAAA,GACP,CAAA;AAAA,EACD,UAAY,EAAA;AAAA,IACV,OAAA;AAAA,IACA,QAAA;AAAA,IACA,mBAAA;AAAA,IACA,wBAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useEntity } from '@backstage/plugin-catalog-react';
|
|
3
|
+
import { stringifyEntityRef } from '@backstage/catalog-model';
|
|
4
|
+
import { PostsContainer } from '@drodil/backstage-plugin-qeta-react';
|
|
5
|
+
import { InfoCard } from '@backstage/core-components';
|
|
6
|
+
|
|
7
|
+
const EntityPostsContainerCard = (props) => {
|
|
8
|
+
const { entity } = useEntity();
|
|
9
|
+
return /* @__PURE__ */ jsx(InfoCard, { children: /* @__PURE__ */ jsx(PostsContainer, { ...props, entity: stringifyEntityRef(entity) }) });
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { EntityPostsContainerCard };
|
|
13
|
+
//# sourceMappingURL=EntityPostsContainerCard.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityPostsContainerCard.esm.js","sources":["../../../src/components/EntityCards/EntityPostsContainerCard.tsx"],"sourcesContent":["import { useEntity } from '@backstage/plugin-catalog-react';\nimport { stringifyEntityRef } from '@backstage/catalog-model';\nimport {\n PostsContainer,\n PostsContainerProps,\n} from '@drodil/backstage-plugin-qeta-react';\nimport { InfoCard } from '@backstage/core-components';\n\nexport const EntityPostsContainerCard = (props: PostsContainerProps) => {\n const { entity } = useEntity();\n\n return (\n <InfoCard>\n <PostsContainer {...props} entity={stringifyEntityRef(entity)} />\n </InfoCard>\n );\n};\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,wBAAA,GAA2B,CAAC,KAA+B,KAAA;AACtE,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA;AAE7B,EACE,uBAAA,GAAA,CAAC,QACC,EAAA,EAAA,QAAA,kBAAA,GAAA,CAAC,cAAgB,EAAA,EAAA,GAAG,OAAO,MAAQ,EAAA,kBAAA,CAAmB,MAAM,CAAA,EAAG,CACjE,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useEntity } from '@backstage/plugin-catalog-react';
|
|
3
|
+
import { stringifyEntityRef } from '@backstage/catalog-model';
|
|
4
|
+
import { PostsGrid } from '@drodil/backstage-plugin-qeta-react';
|
|
5
|
+
import { InfoCard } from '@backstage/core-components';
|
|
6
|
+
|
|
7
|
+
const EntityPostsGridCard = (props) => {
|
|
8
|
+
const { entity } = useEntity();
|
|
9
|
+
return /* @__PURE__ */ jsx(InfoCard, { children: /* @__PURE__ */ jsx(PostsGrid, { ...props, entity: stringifyEntityRef(entity) }) });
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { EntityPostsGridCard };
|
|
13
|
+
//# sourceMappingURL=EntityPostsGridCard.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityPostsGridCard.esm.js","sources":["../../../src/components/EntityCards/EntityPostsGridCard.tsx"],"sourcesContent":["import { useEntity } from '@backstage/plugin-catalog-react';\nimport { stringifyEntityRef } from '@backstage/catalog-model';\nimport { PostGridProps, PostsGrid } from '@drodil/backstage-plugin-qeta-react';\nimport { InfoCard } from '@backstage/core-components';\n\nexport const EntityPostsGridCard = (props: PostGridProps) => {\n const { entity } = useEntity();\n\n return (\n <InfoCard>\n <PostsGrid {...props} entity={stringifyEntityRef(entity)} />\n </InfoCard>\n );\n};\n"],"names":[],"mappings":";;;;;;AAKa,MAAA,mBAAA,GAAsB,CAAC,KAAyB,KAAA;AAC3D,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA;AAE7B,EACE,uBAAA,GAAA,CAAC,QACC,EAAA,EAAA,QAAA,kBAAA,GAAA,CAAC,SAAW,EAAA,EAAA,GAAG,OAAO,MAAQ,EAAA,kBAAA,CAAmB,MAAM,CAAA,EAAG,CAC5D,EAAA,CAAA;AAEJ;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
5
5
|
import { PostType } from '@drodil/backstage-plugin-qeta-common';
|
|
6
6
|
import { IndexableDocument, ResultHighlight } from '@backstage/plugin-search-common';
|
|
7
|
+
import { PostsContainerProps, PostGridProps } from '@drodil/backstage-plugin-qeta-react';
|
|
7
8
|
|
|
8
9
|
type QetaSearchResultListItemProps = {
|
|
9
10
|
result?: IndexableDocument;
|
|
@@ -51,6 +52,10 @@ declare const Content: (props: {
|
|
|
51
52
|
postType?: PostType;
|
|
52
53
|
}) => react_jsx_runtime.JSX.Element;
|
|
53
54
|
|
|
55
|
+
declare const EntityPostsContainerCard: (props: PostsContainerProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const EntityPostsGridCard: (props: PostGridProps) => react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
54
59
|
declare const StatisticsPage: () => react_jsx_runtime.JSX.Element;
|
|
55
60
|
|
|
56
|
-
export { Content, PostsTableCard, QetaPage, QetaSearchResultListItem, type QetaSearchResultListItemProps, QuestionsTableCard, StatisticsPage, qetaPlugin };
|
|
61
|
+
export { Content, EntityPostsContainerCard, EntityPostsGridCard, PostsTableCard, QetaPage, QetaSearchResultListItem, type QetaSearchResultListItemProps, QuestionsTableCard, StatisticsPage, qetaPlugin };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { PostsTableCard, QetaPage, QetaSearchResultListItem, QuestionsTableCard, qetaPlugin } from './plugin.esm.js';
|
|
2
2
|
export { Content } from './components/PostsTableCard/Content.esm.js';
|
|
3
|
+
export { EntityPostsContainerCard } from './components/EntityCards/EntityPostsContainerCard.esm.js';
|
|
4
|
+
export { EntityPostsGridCard } from './components/EntityCards/EntityPostsGridCard.esm.js';
|
|
3
5
|
export { StatisticsPage } from './components/Statistics/StatisticsPage.esm.js';
|
|
4
6
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
var name = "@drodil/backstage-plugin-qeta";
|
|
2
|
+
var description = "Backstage.io Q&A plugin frontend";
|
|
3
|
+
var keywords = [
|
|
4
|
+
"backstage",
|
|
5
|
+
"plugin",
|
|
6
|
+
"frontend",
|
|
7
|
+
"backstage.io"
|
|
8
|
+
];
|
|
9
|
+
var version = "3.33.2";
|
|
10
|
+
var main = "src/index.ts";
|
|
11
|
+
var types = "src/index.ts";
|
|
12
|
+
var prepublishOnly = "yarn tsc && yarn build";
|
|
13
|
+
var license = "MIT";
|
|
14
|
+
var homepage = "https://github.com/drodil/backstage-plugin-qeta";
|
|
15
|
+
var bugs = {
|
|
16
|
+
url: "https://github.com/drodil/backstage-plugin-qeta/issues"
|
|
17
|
+
};
|
|
18
|
+
var exports = {
|
|
19
|
+
".": "./src/index.ts",
|
|
20
|
+
"./alpha": "./src/alpha.tsx",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
};
|
|
23
|
+
var typesVersions = {
|
|
24
|
+
"*": {
|
|
25
|
+
alpha: [
|
|
26
|
+
"src/alpha.tsx"
|
|
27
|
+
],
|
|
28
|
+
"package.json": [
|
|
29
|
+
"package.json"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var repository = {
|
|
34
|
+
type: "git",
|
|
35
|
+
url: "https://github.com/drodil/backstage-plugin-qeta.git"
|
|
36
|
+
};
|
|
37
|
+
var publishConfig = {
|
|
38
|
+
access: "public"
|
|
39
|
+
};
|
|
40
|
+
var backstage = {
|
|
41
|
+
role: "frontend-plugin",
|
|
42
|
+
pluginId: "qeta",
|
|
43
|
+
pluginPackages: [
|
|
44
|
+
"@drodil/backstage-plugin-qeta",
|
|
45
|
+
"@drodil/backstage-plugin-qeta-backend",
|
|
46
|
+
"@drodil/backstage-plugin-qeta-common",
|
|
47
|
+
"@drodil/backstage-plugin-qeta-node",
|
|
48
|
+
"@drodil/backstage-plugin-qeta-react"
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
var sideEffects = false;
|
|
52
|
+
var scripts = {
|
|
53
|
+
start: "backstage-cli package start",
|
|
54
|
+
build: "backstage-cli package build",
|
|
55
|
+
lint: "backstage-cli package lint",
|
|
56
|
+
test: "backstage-cli package test",
|
|
57
|
+
clean: "backstage-cli package clean",
|
|
58
|
+
prepack: "backstage-cli package prepack",
|
|
59
|
+
postpack: "backstage-cli package postpack",
|
|
60
|
+
tsc: "tsc"
|
|
61
|
+
};
|
|
62
|
+
var dependencies = {
|
|
63
|
+
"@backstage/catalog-model": "backstage:^",
|
|
64
|
+
"@backstage/core-compat-api": "backstage:^",
|
|
65
|
+
"@backstage/core-components": "backstage:^",
|
|
66
|
+
"@backstage/core-plugin-api": "backstage:^",
|
|
67
|
+
"@backstage/frontend-plugin-api": "backstage:^",
|
|
68
|
+
"@backstage/plugin-catalog-react": "backstage:^",
|
|
69
|
+
"@backstage/plugin-home-react": "backstage:^",
|
|
70
|
+
"@backstage/plugin-search-common": "backstage:^",
|
|
71
|
+
"@backstage/plugin-search-react": "backstage:^",
|
|
72
|
+
"@backstage/plugin-signals-react": "backstage:^",
|
|
73
|
+
"@drodil/backstage-plugin-qeta-common": "workspace:^",
|
|
74
|
+
"@drodil/backstage-plugin-qeta-react": "workspace:^",
|
|
75
|
+
"@material-ui/core": "^4.12.2",
|
|
76
|
+
"@material-ui/icons": "^4.11.3",
|
|
77
|
+
"@material-ui/lab": "4.0.0-alpha.61",
|
|
78
|
+
dompurify: "^3.2.4",
|
|
79
|
+
lodash: "^4.17.21",
|
|
80
|
+
luxon: "^3.5.0",
|
|
81
|
+
"react-use": "^17.4.0"
|
|
82
|
+
};
|
|
83
|
+
var peerDependencies = {
|
|
84
|
+
"@backstage/catalog-client": "^1.11.0",
|
|
85
|
+
react: " ^18.0.0 || ^19.0.0",
|
|
86
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
87
|
+
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
88
|
+
};
|
|
89
|
+
var resolutions = {
|
|
90
|
+
"react-markdown": "8.0.7"
|
|
91
|
+
};
|
|
92
|
+
var devDependencies = {
|
|
93
|
+
"@backstage/cli": "backstage:^",
|
|
94
|
+
"@backstage/dev-utils": "backstage:^",
|
|
95
|
+
"@backstage/plugin-catalog": "backstage:^",
|
|
96
|
+
"@backstage/plugin-home": "backstage:^",
|
|
97
|
+
"@backstage/plugin-notifications": "backstage:^",
|
|
98
|
+
"@backstage/plugin-search": "backstage:^",
|
|
99
|
+
"@backstage/plugin-search-react": "backstage:^",
|
|
100
|
+
"@backstage/plugin-signals": "backstage:^",
|
|
101
|
+
"@testing-library/jest-dom": "^6.1.3",
|
|
102
|
+
"@types/lodash": "^4.14.199",
|
|
103
|
+
"@types/luxon": "^3",
|
|
104
|
+
"cross-fetch": "^3.1.5"
|
|
105
|
+
};
|
|
106
|
+
var files = [
|
|
107
|
+
"dist",
|
|
108
|
+
"configSchema.d.ts"
|
|
109
|
+
];
|
|
110
|
+
var configSchema = "configSchema.d.ts";
|
|
111
|
+
var _package = {
|
|
112
|
+
name: name,
|
|
113
|
+
description: description,
|
|
114
|
+
keywords: keywords,
|
|
115
|
+
version: version,
|
|
116
|
+
main: main,
|
|
117
|
+
types: types,
|
|
118
|
+
prepublishOnly: prepublishOnly,
|
|
119
|
+
license: license,
|
|
120
|
+
homepage: homepage,
|
|
121
|
+
bugs: bugs,
|
|
122
|
+
exports: exports,
|
|
123
|
+
typesVersions: typesVersions,
|
|
124
|
+
repository: repository,
|
|
125
|
+
publishConfig: publishConfig,
|
|
126
|
+
backstage: backstage,
|
|
127
|
+
sideEffects: sideEffects,
|
|
128
|
+
scripts: scripts,
|
|
129
|
+
dependencies: dependencies,
|
|
130
|
+
peerDependencies: peerDependencies,
|
|
131
|
+
resolutions: resolutions,
|
|
132
|
+
devDependencies: devDependencies,
|
|
133
|
+
files: files,
|
|
134
|
+
configSchema: configSchema
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export { backstage, bugs, configSchema, _package as default, dependencies, description, devDependencies, exports, files, homepage, keywords, license, main, name, peerDependencies, prepublishOnly, publishConfig, repository, resolutions, scripts, sideEffects, types, typesVersions, version };
|
|
138
|
+
//# 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
|
@@ -7,23 +7,45 @@
|
|
|
7
7
|
"frontend",
|
|
8
8
|
"backstage.io"
|
|
9
9
|
],
|
|
10
|
-
"version": "3.33.
|
|
11
|
-
"main": "dist/index.esm.js",
|
|
12
|
-
"types": "dist/index.d.ts",
|
|
10
|
+
"version": "3.33.2",
|
|
11
|
+
"main": "./dist/index.esm.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
13
|
"prepublishOnly": "yarn tsc && yarn build",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"homepage": "https://github.com/drodil/backstage-plugin-qeta",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/drodil/backstage-plugin-qeta/issues"
|
|
18
18
|
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./dist/index.esm.js",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"default": "./dist/index.esm.js"
|
|
24
|
+
},
|
|
25
|
+
"./alpha": {
|
|
26
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
27
|
+
"import": "./dist/alpha.esm.js",
|
|
28
|
+
"types": "./dist/alpha.d.ts",
|
|
29
|
+
"default": "./dist/alpha.esm.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"typesVersions": {
|
|
34
|
+
"*": {
|
|
35
|
+
"alpha": [
|
|
36
|
+
"dist/alpha.d.ts"
|
|
37
|
+
],
|
|
38
|
+
"package.json": [
|
|
39
|
+
"package.json"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
19
43
|
"repository": {
|
|
20
44
|
"type": "git",
|
|
21
45
|
"url": "https://github.com/drodil/backstage-plugin-qeta.git"
|
|
22
46
|
},
|
|
23
47
|
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
"main": "dist/index.esm.js",
|
|
26
|
-
"types": "dist/index.d.ts"
|
|
48
|
+
"access": "public"
|
|
27
49
|
},
|
|
28
50
|
"backstage": {
|
|
29
51
|
"role": "frontend-plugin",
|
|
@@ -34,7 +56,10 @@
|
|
|
34
56
|
"@drodil/backstage-plugin-qeta-common",
|
|
35
57
|
"@drodil/backstage-plugin-qeta-node",
|
|
36
58
|
"@drodil/backstage-plugin-qeta-react"
|
|
37
|
-
]
|
|
59
|
+
],
|
|
60
|
+
"features": {
|
|
61
|
+
"./alpha": "@backstage/FrontendPlugin"
|
|
62
|
+
}
|
|
38
63
|
},
|
|
39
64
|
"sideEffects": false,
|
|
40
65
|
"scripts": {
|
|
@@ -49,15 +74,17 @@
|
|
|
49
74
|
},
|
|
50
75
|
"dependencies": {
|
|
51
76
|
"@backstage/catalog-model": "^1.7.5",
|
|
52
|
-
"@backstage/core-
|
|
77
|
+
"@backstage/core-compat-api": "^0.5.0",
|
|
78
|
+
"@backstage/core-components": "^0.17.5",
|
|
53
79
|
"@backstage/core-plugin-api": "^1.10.9",
|
|
54
|
-
"@backstage/plugin-
|
|
55
|
-
"@backstage/plugin-
|
|
80
|
+
"@backstage/frontend-plugin-api": "^0.11.0",
|
|
81
|
+
"@backstage/plugin-catalog-react": "^1.20.0",
|
|
82
|
+
"@backstage/plugin-home-react": "^0.1.29",
|
|
56
83
|
"@backstage/plugin-search-common": "^1.2.19",
|
|
57
|
-
"@backstage/plugin-search-react": "^1.9.
|
|
84
|
+
"@backstage/plugin-search-react": "^1.9.3",
|
|
58
85
|
"@backstage/plugin-signals-react": "^0.0.15",
|
|
59
|
-
"@drodil/backstage-plugin-qeta-common": "^3.33.
|
|
60
|
-
"@drodil/backstage-plugin-qeta-react": "^3.33.
|
|
86
|
+
"@drodil/backstage-plugin-qeta-common": "^3.33.2",
|
|
87
|
+
"@drodil/backstage-plugin-qeta-react": "^3.33.2",
|
|
61
88
|
"@material-ui/core": "^4.12.2",
|
|
62
89
|
"@material-ui/icons": "^4.11.3",
|
|
63
90
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -67,7 +94,7 @@
|
|
|
67
94
|
"react-use": "^17.4.0"
|
|
68
95
|
},
|
|
69
96
|
"peerDependencies": {
|
|
70
|
-
"@backstage/catalog-client": "^1.
|
|
97
|
+
"@backstage/catalog-client": "^1.11.0",
|
|
71
98
|
"react": " ^18.0.0 || ^19.0.0",
|
|
72
99
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
73
100
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
@@ -76,14 +103,14 @@
|
|
|
76
103
|
"react-markdown": "8.0.7"
|
|
77
104
|
},
|
|
78
105
|
"devDependencies": {
|
|
79
|
-
"@backstage/cli": "^0.
|
|
80
|
-
"@backstage/dev-utils": "^1.1.
|
|
81
|
-
"@backstage/plugin-catalog": "^1.31.
|
|
82
|
-
"@backstage/plugin-home": "^0.8.
|
|
83
|
-
"@backstage/plugin-notifications": "^0.5.
|
|
84
|
-
"@backstage/plugin-search": "^1.4.
|
|
85
|
-
"@backstage/plugin-search-react": "^1.9.
|
|
86
|
-
"@backstage/plugin-signals": "^0.0.
|
|
106
|
+
"@backstage/cli": "^0.34.0",
|
|
107
|
+
"@backstage/dev-utils": "^1.1.13",
|
|
108
|
+
"@backstage/plugin-catalog": "^1.31.2",
|
|
109
|
+
"@backstage/plugin-home": "^0.8.11",
|
|
110
|
+
"@backstage/plugin-notifications": "^0.5.8",
|
|
111
|
+
"@backstage/plugin-search": "^1.4.29",
|
|
112
|
+
"@backstage/plugin-search-react": "^1.9.3",
|
|
113
|
+
"@backstage/plugin-signals": "^0.0.22",
|
|
87
114
|
"@testing-library/jest-dom": "^6.1.3",
|
|
88
115
|
"@types/lodash": "^4.14.199",
|
|
89
116
|
"@types/luxon": "^3",
|
|
@@ -94,12 +121,5 @@
|
|
|
94
121
|
"configSchema.d.ts"
|
|
95
122
|
],
|
|
96
123
|
"configSchema": "configSchema.d.ts",
|
|
97
|
-
"typesVersions": {
|
|
98
|
-
"*": {
|
|
99
|
-
"package.json": [
|
|
100
|
-
"package.json"
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
124
|
"module": "./dist/index.esm.js"
|
|
105
125
|
}
|