@backstage-community/plugin-entity-feedback 0.2.18
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 +821 -0
- package/README.md +140 -0
- package/dist/esm/FeedbackRatingsTable-O2SrWgAE.esm.js +99 -0
- package/dist/esm/FeedbackRatingsTable-O2SrWgAE.esm.js.map +1 -0
- package/dist/esm/FeedbackResponseDialog-FxuGsr7u.esm.js +112 -0
- package/dist/esm/FeedbackResponseDialog-FxuGsr7u.esm.js.map +1 -0
- package/dist/esm/LikeDislikeButtons-D7M8hiAk.esm.js +109 -0
- package/dist/esm/LikeDislikeButtons-D7M8hiAk.esm.js.map +1 -0
- package/dist/esm/StarredRatingButtons-7kGQPIqk.esm.js +112 -0
- package/dist/esm/StarredRatingButtons-7kGQPIqk.esm.js.map +1 -0
- package/dist/esm/index-6WuZOQ2W.esm.js +51 -0
- package/dist/esm/index-6WuZOQ2W.esm.js.map +1 -0
- package/dist/esm/index-BNjpfNYP.esm.js +30 -0
- package/dist/esm/index-BNjpfNYP.esm.js.map +1 -0
- package/dist/esm/index-CV29yHQA.esm.js +33 -0
- package/dist/esm/index-CV29yHQA.esm.js.map +1 -0
- package/dist/esm/index-DKWcikxI.esm.js +25 -0
- package/dist/esm/index-DKWcikxI.esm.js.map +1 -0
- package/dist/esm/index-iIL-rmvF.esm.js +46 -0
- package/dist/esm/index-iIL-rmvF.esm.js.map +1 -0
- package/dist/esm/index-xB2VxWp7.esm.js +83 -0
- package/dist/esm/index-xB2VxWp7.esm.js.map +1 -0
- package/dist/index.d.ts +152 -0
- package/dist/index.esm.js +257 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { stringifyEntityRef } from '@backstage/catalog-model';
|
|
2
|
+
import { createApiRef, createRouteRef, createPlugin, createApiFactory, discoveryApiRef, fetchApiRef, createComponentExtension, createRoutableExtension } from '@backstage/core-plugin-api';
|
|
3
|
+
import { useAsyncEntity } from '@backstage/plugin-catalog-react';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { ResponseError } from '@backstage/errors';
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __publicField = (obj, key, value) => {
|
|
10
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
+
return value;
|
|
12
|
+
};
|
|
13
|
+
class EntityFeedbackClient {
|
|
14
|
+
constructor(options) {
|
|
15
|
+
__publicField(this, "discoveryApi");
|
|
16
|
+
__publicField(this, "fetchApi");
|
|
17
|
+
this.discoveryApi = options.discoveryApi;
|
|
18
|
+
this.fetchApi = options.fetchApi;
|
|
19
|
+
}
|
|
20
|
+
async getAllRatings() {
|
|
21
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
22
|
+
const resp = await this.fetchApi.fetch(`${baseUrl}/ratings`, {
|
|
23
|
+
method: "GET"
|
|
24
|
+
});
|
|
25
|
+
if (!resp.ok) {
|
|
26
|
+
throw await ResponseError.fromResponse(resp);
|
|
27
|
+
}
|
|
28
|
+
return resp.json();
|
|
29
|
+
}
|
|
30
|
+
async getOwnedRatings(ownerRef) {
|
|
31
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
32
|
+
const resp = await this.fetchApi.fetch(
|
|
33
|
+
`${baseUrl}/ratings?ownerRef=${encodeURIComponent(ownerRef)}`,
|
|
34
|
+
{
|
|
35
|
+
method: "GET"
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
if (!resp.ok) {
|
|
39
|
+
throw await ResponseError.fromResponse(resp);
|
|
40
|
+
}
|
|
41
|
+
return resp.json();
|
|
42
|
+
}
|
|
43
|
+
async recordRating(entityRef, rating) {
|
|
44
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
45
|
+
const resp = await this.fetchApi.fetch(
|
|
46
|
+
`${baseUrl}/ratings/${encodeURIComponent(entityRef)}`,
|
|
47
|
+
{
|
|
48
|
+
headers: { "Content-Type": "application/json" },
|
|
49
|
+
method: "POST",
|
|
50
|
+
body: JSON.stringify({ rating })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
if (!resp.ok) {
|
|
54
|
+
throw await ResponseError.fromResponse(resp);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async getRatings(entityRef) {
|
|
58
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
59
|
+
const resp = await this.fetchApi.fetch(
|
|
60
|
+
`${baseUrl}/ratings/${encodeURIComponent(entityRef)}`,
|
|
61
|
+
{
|
|
62
|
+
method: "GET"
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
if (!resp.ok) {
|
|
66
|
+
throw await ResponseError.fromResponse(resp);
|
|
67
|
+
}
|
|
68
|
+
return resp.json();
|
|
69
|
+
}
|
|
70
|
+
async getRatingAggregates(entityRef) {
|
|
71
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
72
|
+
const resp = await this.fetchApi.fetch(
|
|
73
|
+
`${baseUrl}/ratings/${encodeURIComponent(entityRef)}/aggregate`,
|
|
74
|
+
{
|
|
75
|
+
method: "GET"
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
if (!resp.ok) {
|
|
79
|
+
throw await ResponseError.fromResponse(resp);
|
|
80
|
+
}
|
|
81
|
+
return resp.json();
|
|
82
|
+
}
|
|
83
|
+
async recordResponse(entityRef, response) {
|
|
84
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
85
|
+
const resp = await this.fetchApi.fetch(
|
|
86
|
+
`${baseUrl}/responses/${encodeURIComponent(entityRef)}`,
|
|
87
|
+
{
|
|
88
|
+
headers: { "Content-Type": "application/json" },
|
|
89
|
+
method: "POST",
|
|
90
|
+
body: JSON.stringify(response)
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
if (!resp.ok) {
|
|
94
|
+
throw await ResponseError.fromResponse(resp);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
async getResponses(entityRef) {
|
|
98
|
+
const baseUrl = await this.discoveryApi.getBaseUrl("entity-feedback");
|
|
99
|
+
const resp = await this.fetchApi.fetch(
|
|
100
|
+
`${baseUrl}/responses/${encodeURIComponent(entityRef)}`,
|
|
101
|
+
{
|
|
102
|
+
method: "GET"
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
if (!resp.ok) {
|
|
106
|
+
throw await ResponseError.fromResponse(resp);
|
|
107
|
+
}
|
|
108
|
+
return resp.json();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const entityFeedbackApiRef = createApiRef({
|
|
113
|
+
id: "plugin.entity-feedback.service"
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
const rootRouteRef = createRouteRef({
|
|
117
|
+
id: "entity-feedback"
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
const entityFeedbackPlugin = createPlugin({
|
|
121
|
+
id: "entity-feedback",
|
|
122
|
+
routes: {
|
|
123
|
+
root: rootRouteRef
|
|
124
|
+
},
|
|
125
|
+
apis: [
|
|
126
|
+
createApiFactory({
|
|
127
|
+
api: entityFeedbackApiRef,
|
|
128
|
+
deps: {
|
|
129
|
+
discoveryApi: discoveryApiRef,
|
|
130
|
+
fetchApi: fetchApiRef
|
|
131
|
+
},
|
|
132
|
+
factory: ({ discoveryApi, fetchApi }) => new EntityFeedbackClient({ discoveryApi, fetchApi })
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
const LikeDislikeButtons = entityFeedbackPlugin.provide(
|
|
137
|
+
createComponentExtension({
|
|
138
|
+
name: "LikeDislikeButtons",
|
|
139
|
+
component: {
|
|
140
|
+
lazy: () => import('./esm/index-CV29yHQA.esm.js').then(
|
|
141
|
+
(m) => m.LikeDislikeButtons
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
);
|
|
146
|
+
const StarredRatingButtons = entityFeedbackPlugin.provide(
|
|
147
|
+
createComponentExtension({
|
|
148
|
+
name: "StarredRatingButtons",
|
|
149
|
+
component: {
|
|
150
|
+
lazy: () => import('./esm/index-BNjpfNYP.esm.js').then(
|
|
151
|
+
(m) => m.StarredRatingButtons
|
|
152
|
+
)
|
|
153
|
+
}
|
|
154
|
+
})
|
|
155
|
+
);
|
|
156
|
+
const FeedbackResponseDialog = entityFeedbackPlugin.provide(
|
|
157
|
+
createComponentExtension({
|
|
158
|
+
name: "FeedbackResponseDialog",
|
|
159
|
+
component: {
|
|
160
|
+
lazy: () => import('./esm/index-DKWcikxI.esm.js').then(
|
|
161
|
+
(m) => m.FeedbackResponseDialog
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
})
|
|
165
|
+
);
|
|
166
|
+
const EntityFeedbackResponseContent = entityFeedbackPlugin.provide(
|
|
167
|
+
createRoutableExtension({
|
|
168
|
+
name: "EntityFeedbackResponseContent",
|
|
169
|
+
mountPoint: rootRouteRef,
|
|
170
|
+
component: () => import('./esm/index-xB2VxWp7.esm.js').then(
|
|
171
|
+
({ FeedbackResponseTable: FeedbackResponseTable2 }) => {
|
|
172
|
+
return () => {
|
|
173
|
+
const { entity } = useAsyncEntity();
|
|
174
|
+
return /* @__PURE__ */ React.createElement(
|
|
175
|
+
FeedbackResponseTable2,
|
|
176
|
+
{
|
|
177
|
+
entityRef: entity ? stringifyEntityRef(entity) : ""
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
})
|
|
184
|
+
);
|
|
185
|
+
const FeedbackResponseTable = entityFeedbackPlugin.provide(
|
|
186
|
+
createComponentExtension({
|
|
187
|
+
name: "FeedbackResponseTable",
|
|
188
|
+
component: {
|
|
189
|
+
lazy: () => import('./esm/index-xB2VxWp7.esm.js').then(
|
|
190
|
+
(m) => m.FeedbackResponseTable
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
);
|
|
195
|
+
const EntityLikeDislikeRatingsCard = entityFeedbackPlugin.provide(
|
|
196
|
+
createComponentExtension({
|
|
197
|
+
name: "EntityLikeDislikeRatingsCard",
|
|
198
|
+
component: {
|
|
199
|
+
lazy: () => import('./esm/index-6WuZOQ2W.esm.js').then(
|
|
200
|
+
({ LikeDislikeRatingsTable: LikeDislikeRatingsTable2 }) => {
|
|
201
|
+
return () => {
|
|
202
|
+
const { entity } = useAsyncEntity();
|
|
203
|
+
return /* @__PURE__ */ React.createElement(
|
|
204
|
+
LikeDislikeRatingsTable2,
|
|
205
|
+
{
|
|
206
|
+
ownerRef: entity ? stringifyEntityRef(entity) : ""
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
}
|
|
213
|
+
})
|
|
214
|
+
);
|
|
215
|
+
const LikeDislikeRatingsTable = entityFeedbackPlugin.provide(
|
|
216
|
+
createComponentExtension({
|
|
217
|
+
name: "LikeDislikeRatingsTable",
|
|
218
|
+
component: {
|
|
219
|
+
lazy: () => import('./esm/index-6WuZOQ2W.esm.js').then(
|
|
220
|
+
(m) => m.LikeDislikeRatingsTable
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
})
|
|
224
|
+
);
|
|
225
|
+
const EntityStarredRatingsCard = entityFeedbackPlugin.provide(
|
|
226
|
+
createComponentExtension({
|
|
227
|
+
name: "EntityStarredRatingsCard",
|
|
228
|
+
component: {
|
|
229
|
+
lazy: () => import('./esm/index-iIL-rmvF.esm.js').then(
|
|
230
|
+
({ StarredRatingsTable: StarredRatingsTable2 }) => {
|
|
231
|
+
return () => {
|
|
232
|
+
const { entity } = useAsyncEntity();
|
|
233
|
+
return /* @__PURE__ */ React.createElement(
|
|
234
|
+
StarredRatingsTable2,
|
|
235
|
+
{
|
|
236
|
+
ownerRef: entity ? stringifyEntityRef(entity) : ""
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
}
|
|
243
|
+
})
|
|
244
|
+
);
|
|
245
|
+
const StarredRatingsTable = entityFeedbackPlugin.provide(
|
|
246
|
+
createComponentExtension({
|
|
247
|
+
name: "StarredRatingsTable",
|
|
248
|
+
component: {
|
|
249
|
+
lazy: () => import('./esm/index-iIL-rmvF.esm.js').then(
|
|
250
|
+
(m) => m.StarredRatingsTable
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
})
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
export { EntityFeedbackClient, EntityFeedbackResponseContent, EntityLikeDislikeRatingsCard, EntityStarredRatingsCard, FeedbackResponseDialog, FeedbackResponseTable, LikeDislikeButtons, LikeDislikeRatingsTable, StarredRatingButtons, StarredRatingsTable, entityFeedbackApiRef, entityFeedbackPlugin };
|
|
257
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/api/EntityFeedbackClient.ts","../src/api/EntityFeedbackApi.ts","../src/routes.ts","../src/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';\nimport { ResponseError } from '@backstage/errors';\nimport {\n EntityRatingsData,\n FeedbackResponse,\n Rating,\n Ratings,\n} from '@backstage-community/plugin-entity-feedback-common';\n\nimport { EntityFeedbackApi } from './EntityFeedbackApi';\n\n/**\n * @public\n */\nexport class EntityFeedbackClient implements EntityFeedbackApi {\n private readonly discoveryApi: DiscoveryApi;\n private readonly fetchApi: FetchApi;\n\n constructor(options: { discoveryApi: DiscoveryApi; fetchApi: FetchApi }) {\n this.discoveryApi = options.discoveryApi;\n this.fetchApi = options.fetchApi;\n }\n\n async getAllRatings(): Promise<EntityRatingsData[]> {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(`${baseUrl}/ratings`, {\n method: 'GET',\n });\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n\n return resp.json();\n }\n\n async getOwnedRatings(ownerRef: string): Promise<EntityRatingsData[]> {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(\n `${baseUrl}/ratings?ownerRef=${encodeURIComponent(ownerRef)}`,\n {\n method: 'GET',\n },\n );\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n\n return resp.json();\n }\n\n async recordRating(entityRef: string, rating: string) {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(\n `${baseUrl}/ratings/${encodeURIComponent(entityRef)}`,\n {\n headers: { 'Content-Type': 'application/json' },\n method: 'POST',\n body: JSON.stringify({ rating }),\n },\n );\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n }\n\n async getRatings(entityRef: string): Promise<Omit<Rating, 'entityRef'>[]> {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(\n `${baseUrl}/ratings/${encodeURIComponent(entityRef)}`,\n {\n method: 'GET',\n },\n );\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n\n return resp.json();\n }\n\n async getRatingAggregates(entityRef: string): Promise<Ratings> {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(\n `${baseUrl}/ratings/${encodeURIComponent(entityRef)}/aggregate`,\n {\n method: 'GET',\n },\n );\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n\n return resp.json();\n }\n\n async recordResponse(\n entityRef: string,\n response: Omit<FeedbackResponse, 'entityRef' | 'userRef'>,\n ) {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(\n `${baseUrl}/responses/${encodeURIComponent(entityRef)}`,\n {\n headers: { 'Content-Type': 'application/json' },\n method: 'POST',\n body: JSON.stringify(response),\n },\n );\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n }\n\n async getResponses(\n entityRef: string,\n ): Promise<Omit<FeedbackResponse, 'entityRef'>[]> {\n const baseUrl = await this.discoveryApi.getBaseUrl('entity-feedback');\n const resp = await this.fetchApi.fetch(\n `${baseUrl}/responses/${encodeURIComponent(entityRef)}`,\n {\n method: 'GET',\n },\n );\n\n if (!resp.ok) {\n throw await ResponseError.fromResponse(resp);\n }\n\n return resp.json();\n }\n}\n","/*\n * Copyright 2023 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 { createApiRef } from '@backstage/core-plugin-api';\nimport {\n EntityRatingsData,\n FeedbackResponse,\n Rating,\n Ratings,\n} from '@backstage-community/plugin-entity-feedback-common';\n\n/**\n * @public\n */\nexport const entityFeedbackApiRef = createApiRef<EntityFeedbackApi>({\n id: 'plugin.entity-feedback.service',\n});\n\n/**\n * @public\n */\nexport interface EntityFeedbackApi {\n getAllRatings(): Promise<EntityRatingsData[]>;\n\n getOwnedRatings(ownerRef: string): Promise<EntityRatingsData[]>;\n\n recordRating(entityRef: string, rating: string): Promise<void>;\n\n getRatings(entityRef: string): Promise<Omit<Rating, 'entityRef'>[]>;\n\n /**\n * Returns anonymized aggregated results for one entityRef\n */\n getRatingAggregates(entityRef: string): Promise<Ratings>;\n\n recordResponse(\n entityRef: string,\n response: Omit<FeedbackResponse, 'entityRef' | 'userRef'>,\n ): Promise<void>;\n\n getResponses(\n entityRef: string,\n ): Promise<Omit<FeedbackResponse, 'entityRef'>[]>;\n}\n","/*\n * Copyright 2023 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 { createRouteRef } from '@backstage/core-plugin-api';\n\nexport const rootRouteRef = createRouteRef({\n id: 'entity-feedback',\n});\n","/*\n * Copyright 2023 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 { stringifyEntityRef } from '@backstage/catalog-model';\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n createRoutableExtension,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport { useAsyncEntity } from '@backstage/plugin-catalog-react';\nimport React from 'react';\n\nimport { entityFeedbackApiRef, EntityFeedbackClient } from './api';\nimport { rootRouteRef } from './routes';\n\n/**\n * @public\n */\nexport const entityFeedbackPlugin = createPlugin({\n id: 'entity-feedback',\n routes: {\n root: rootRouteRef,\n },\n apis: [\n createApiFactory({\n api: entityFeedbackApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new EntityFeedbackClient({ discoveryApi, fetchApi }),\n }),\n ],\n});\n\n/**\n * @public\n */\nexport const LikeDislikeButtons = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'LikeDislikeButtons',\n component: {\n lazy: () =>\n import('./components/LikeDislikeButtons').then(\n m => m.LikeDislikeButtons,\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const StarredRatingButtons = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'StarredRatingButtons',\n component: {\n lazy: () =>\n import('./components/StarredRatingButtons').then(\n m => m.StarredRatingButtons,\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const FeedbackResponseDialog = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'FeedbackResponseDialog',\n component: {\n lazy: () =>\n import('./components/FeedbackResponseDialog').then(\n m => m.FeedbackResponseDialog,\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const EntityFeedbackResponseContent = entityFeedbackPlugin.provide(\n createRoutableExtension({\n name: 'EntityFeedbackResponseContent',\n mountPoint: rootRouteRef,\n component: () =>\n import('./components/FeedbackResponseTable').then(\n ({ FeedbackResponseTable }) => {\n return () => {\n const { entity } = useAsyncEntity();\n return (\n <FeedbackResponseTable\n entityRef={entity ? stringifyEntityRef(entity) : ''}\n />\n );\n };\n },\n ),\n }),\n);\n\n/**\n * @public\n */\nexport const FeedbackResponseTable = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'FeedbackResponseTable',\n component: {\n lazy: () =>\n import('./components/FeedbackResponseTable').then(\n m => m.FeedbackResponseTable,\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const EntityLikeDislikeRatingsCard = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'EntityLikeDislikeRatingsCard',\n component: {\n lazy: () =>\n import('./components/LikeDislikeRatingsTable').then(\n ({ LikeDislikeRatingsTable }) => {\n return () => {\n const { entity } = useAsyncEntity();\n return (\n <LikeDislikeRatingsTable\n ownerRef={entity ? stringifyEntityRef(entity) : ''}\n />\n );\n };\n },\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const LikeDislikeRatingsTable = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'LikeDislikeRatingsTable',\n component: {\n lazy: () =>\n import('./components/LikeDislikeRatingsTable').then(\n m => m.LikeDislikeRatingsTable,\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const EntityStarredRatingsCard = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'EntityStarredRatingsCard',\n component: {\n lazy: () =>\n import('./components/StarredRatingsTable').then(\n ({ StarredRatingsTable }) => {\n return () => {\n const { entity } = useAsyncEntity();\n return (\n <StarredRatingsTable\n ownerRef={entity ? stringifyEntityRef(entity) : ''}\n />\n );\n };\n },\n ),\n },\n }),\n);\n\n/**\n * @public\n */\nexport const StarredRatingsTable = entityFeedbackPlugin.provide(\n createComponentExtension({\n name: 'StarredRatingsTable',\n component: {\n lazy: () =>\n import('./components/StarredRatingsTable').then(\n m => m.StarredRatingsTable,\n ),\n },\n }),\n);\n"],"names":["FeedbackResponseTable","LikeDislikeRatingsTable","StarredRatingsTable"],"mappings":";;;;;;;;;;;;AA8BO,MAAM,oBAAkD,CAAA;AAAA,EAI7D,YAAY,OAA6D,EAAA;AAHzE,IAAiB,aAAA,CAAA,IAAA,EAAA,cAAA,CAAA,CAAA;AACjB,IAAiB,aAAA,CAAA,IAAA,EAAA,UAAA,CAAA,CAAA;AAGf,IAAA,IAAA,CAAK,eAAe,OAAQ,CAAA,YAAA,CAAA;AAC5B,IAAA,IAAA,CAAK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cAAA;AAAA,gBACC,QAAU,EAAA,MAAA,GAAS,kBAAmB,CAAA,MAAM,CAAI,GAAA,EAAA;AAAA,eAAA;AAAA,aAClD,CAAA;AAAA,WAEJ,CAAA;AAAA,SACF;AAAA,OACF;AAAA,KACJ;AAAA,GACD,CAAA;AACH,EAAA;AAKO,MAAM,sBAAsB,oBAAqB,CAAA,OAAA;AAAA,EACtD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,qBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MACJ,OAAO,6BAAkC,CAAE,CAAA,IAAA;AAAA,QACzC,OAAK,CAAE,CAAA,mBAAA;AAAA,OACT;AAAA,KACJ;AAAA,GACD,CAAA;AACH;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backstage-community/plugin-entity-feedback",
|
|
3
|
+
"version": "0.2.18",
|
|
4
|
+
"backstage": {
|
|
5
|
+
"role": "frontend-plugin"
|
|
6
|
+
},
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"main": "dist/index.esm.js",
|
|
10
|
+
"types": "dist/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://backstage.io",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/backstage/community-plugins",
|
|
16
|
+
"directory": "workspaces/entity-feedback/plugins/entity-feedback"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"main": "dist/index.esm.js",
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "backstage-cli package build",
|
|
27
|
+
"clean": "backstage-cli package clean",
|
|
28
|
+
"lint": "backstage-cli package lint",
|
|
29
|
+
"prepack": "backstage-cli package prepack",
|
|
30
|
+
"postpack": "backstage-cli package postpack",
|
|
31
|
+
"start": "backstage-cli package start",
|
|
32
|
+
"test": "backstage-cli package test"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@backstage-community/plugin-entity-feedback-common": "^0.1.4",
|
|
36
|
+
"@backstage/catalog-model": "^1.4.5",
|
|
37
|
+
"@backstage/core-components": "^0.14.4",
|
|
38
|
+
"@backstage/core-plugin-api": "^1.9.2",
|
|
39
|
+
"@backstage/errors": "^1.2.4",
|
|
40
|
+
"@backstage/plugin-catalog-react": "^1.11.3",
|
|
41
|
+
"@material-ui/core": "^4.9.13",
|
|
42
|
+
"@material-ui/icons": "^4.9.1",
|
|
43
|
+
"@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
44
|
+
"react-use": "^17.2.4"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@backstage/cli": "^0.26.3",
|
|
48
|
+
"@backstage/test-utils": "^1.5.4",
|
|
49
|
+
"@testing-library/dom": "^10.0.0",
|
|
50
|
+
"@testing-library/jest-dom": "^6.0.0",
|
|
51
|
+
"@testing-library/react": "^15.0.0",
|
|
52
|
+
"@testing-library/user-event": "^14.0.0",
|
|
53
|
+
"@types/react-dom": "^18.2.19",
|
|
54
|
+
"canvas": "^2.11.2",
|
|
55
|
+
"msw": "^1.0.0",
|
|
56
|
+
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
57
|
+
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
58
|
+
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
62
|
+
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
63
|
+
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
64
|
+
},
|
|
65
|
+
"module": "./dist/index.esm.js"
|
|
66
|
+
}
|